diff --git a/README.md b/README.md
index 547db4db..fbf1b9cd 100644
--- a/README.md
+++ b/README.md
@@ -228,14 +228,14 @@ allow_github_webhooks = true
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 0.13.1 |
-| [aws](#requirement\_aws) | >= 3.45 |
+| [aws](#requirement\_aws) | >= 3.69 |
| [random](#requirement\_random) | >= 2.0 |
## Providers
| Name | Version |
|------|---------|
-| [aws](#provider\_aws) | >= 3.45 |
+| [aws](#provider\_aws) | >= 3.69 |
| [random](#provider\_random) | >= 2.0 |
## Modules
@@ -384,6 +384,7 @@ allow_github_webhooks = true
| [route53\_private\_zone](#input\_route53\_private\_zone) | Enable to use a private Route53 zone | `bool` | `false` | no |
| [route53\_record\_name](#input\_route53\_record\_name) | Name of Route53 record to create ACM certificate in and main A-record. If null is specified, var.name is used instead. Provide empty string to point root domain name to ALB. | `string` | `null` | no |
| [route53\_zone\_name](#input\_route53\_zone\_name) | Route53 zone name to create ACM certificate in and main A-record, without trailing dot | `string` | `""` | no |
+| [runtime\_platform](#input\_runtime\_platform) | Configuration block for runtime\_platform that containers in your task may use. | `any` | `{}` | no |
| [security\_group\_ids](#input\_security\_group\_ids) | List of one or more security groups to be added to the load balancer | `list(string)` | `[]` | no |
| [ssm\_kms\_key\_arn](#input\_ssm\_kms\_key\_arn) | ARN of KMS key to use for encryption and decryption of SSM Parameters. Required only if your key uses a custom KMS key and not the default key | `string` | `""` | no |
| [start\_timeout](#input\_start\_timeout) | Time duration (in seconds) to wait before giving up on resolving dependencies for a container | `number` | `30` | no |
diff --git a/examples/github-complete/README.md b/examples/github-complete/README.md
index 6dd09a43..329e9011 100644
--- a/examples/github-complete/README.md
+++ b/examples/github-complete/README.md
@@ -30,14 +30,14 @@ Go to https://eu-west-1.console.aws.amazon.com/ecs/home?region=eu-west-1#/settin
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 0.13.1 |
-| [aws](#requirement\_aws) | >= 3.45 |
+| [aws](#requirement\_aws) | >= 3.69 |
| [github](#requirement\_github) | >= 4.8 |
## Providers
| Name | Version |
|------|---------|
-| [aws](#provider\_aws) | >= 3.45 |
+| [aws](#provider\_aws) | >= 3.69 |
## Modules
diff --git a/examples/github-complete/main.tf b/examples/github-complete/main.tf
index 23cc99d9..c5c2611f 100644
--- a/examples/github-complete/main.tf
+++ b/examples/github-complete/main.tf
@@ -49,6 +49,11 @@ module "atlantis" {
container_cpu = 512
container_memory = 1024
+ runtime_platform = {
+ operating_system_family = "LINUX"
+ cpu_architecture = "ARM64"
+ }
+
entrypoint = ["docker-entrypoint.sh"]
command = ["server"]
working_directory = "/tmp"
diff --git a/examples/github-complete/versions.tf b/examples/github-complete/versions.tf
index 28ce680e..54b8a5b5 100644
--- a/examples/github-complete/versions.tf
+++ b/examples/github-complete/versions.tf
@@ -4,7 +4,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
- version = ">= 3.45"
+ version = ">= 3.69"
}
github = {
diff --git a/main.tf b/main.tf
index cb545f75..5a8e5c1e 100644
--- a/main.tf
+++ b/main.tf
@@ -707,6 +707,15 @@ resource "aws_ecs_task_definition" "atlantis" {
container_definitions = local.container_definitions
+ dynamic "runtime_platform" {
+ for_each = var.runtime_platform != null ? [var.runtime_platform] : []
+
+ content {
+ operating_system_family = try(runtime_platform.value.operating_system_family, null)
+ cpu_architecture = try(runtime_platform.value.cpu_architecture, null)
+ }
+ }
+
dynamic "ephemeral_storage" {
for_each = var.enable_ephemeral_storage ? [1] : []
diff --git a/variables.tf b/variables.tf
index 8f8bb562..c052e9c4 100644
--- a/variables.tf
+++ b/variables.tf
@@ -712,3 +712,9 @@ variable "create_route53_aaaa_record" {
type = bool
default = false
}
+
+variable "runtime_platform" {
+ description = "Configuration block for runtime_platform that containers in your task may use."
+ type = any
+ default = {}
+}
diff --git a/versions.tf b/versions.tf
index 8009c97e..c3666f9a 100644
--- a/versions.tf
+++ b/versions.tf
@@ -4,7 +4,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
- version = ">= 3.45"
+ version = ">= 3.69"
}
random = {