Skip to content

Commit ccc18d5

Browse files
authored
feat: support custom platform version (#170)
1 parent cf0bec4 commit ccc18d5

File tree

4 files changed

+9
-0
lines changed

4 files changed

+9
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ allow_github_webhooks = true
234234
| ecs\_service\_deployment\_maximum\_percent | The upper limit (as a percentage of the service's desiredCount) of the number of running tasks that can be running in a service during a deployment | `number` | `200` | no |
235235
| ecs\_service\_deployment\_minimum\_healthy\_percent | The lower limit (as a percentage of the service's desiredCount) of the number of running tasks that must remain running and healthy in a service during a deployment | `number` | `50` | no |
236236
| ecs\_service\_desired\_count | The number of instances of the task definition to place and keep running | `number` | `1` | no |
237+
| ecs\_service\_platform\_version | The platform version on which to run your service | `string` | `"LATEST"` | no |
237238
| ecs\_task\_cpu | The number of cpu units used by the task | `number` | `256` | no |
238239
| ecs\_task\_memory | The amount (in MiB) of memory used by the task | `number` | `512` | no |
239240
| entrypoint | The entry point that is passed to the container | `list(string)` | `null` | no |

examples/github-complete/main.tf

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ module "atlantis" {
3535
public_subnets = ["10.20.101.0/24", "10.20.102.0/24", "10.20.103.0/24"]
3636

3737
# ECS
38+
ecs_service_platform_version = "LATEST"
3839
ecs_container_insights = true
3940
ecs_task_cpu = 512
4041
ecs_task_memory = 1024

main.tf

+1
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,7 @@ resource "aws_ecs_service" "atlantis" {
583583
)}"
584584
desired_count = var.ecs_service_desired_count
585585
launch_type = var.ecs_fargate_spot ? null : "FARGATE"
586+
platform_version = var.ecs_service_platform_version
586587
deployment_maximum_percent = var.ecs_service_deployment_maximum_percent
587588
deployment_minimum_healthy_percent = var.ecs_service_deployment_minimum_healthy_percent
588589

variables.tf

+6
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,12 @@ variable "ecs_service_desired_count" {
263263
default = 1
264264
}
265265

266+
variable "ecs_service_platform_version" {
267+
description = "The platform version on which to run your service"
268+
type = string
269+
default = "LATEST"
270+
}
271+
266272
variable "ecs_service_deployment_maximum_percent" {
267273
description = "The upper limit (as a percentage of the service's desiredCount) of the number of running tasks that can be running in a service during a deployment"
268274
type = number

0 commit comments

Comments
 (0)