Skip to content
This repository was archived by the owner on Feb 1, 2024. It is now read-only.

Commit dfa2cde

Browse files
zahorniakbryantbiggs
authored and
Mao-hsiang Lien
committed
feat: Add support for runtime_platform config block (terraform-aws-modules#279)
Co-authored-by: Bryant Biggs <[email protected]>
1 parent 8623a21 commit dfa2cde

File tree

7 files changed

+27
-6
lines changed

7 files changed

+27
-6
lines changed

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -228,14 +228,14 @@ allow_github_webhooks = true
228228
| Name | Version |
229229
|------|---------|
230230
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13.1 |
231-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.45 |
231+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.69 |
232232
| <a name="requirement_random"></a> [random](#requirement\_random) | >= 2.0 |
233233

234234
## Providers
235235

236236
| Name | Version |
237237
|------|---------|
238-
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 3.45 |
238+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 3.69 |
239239
| <a name="provider_random"></a> [random](#provider\_random) | >= 2.0 |
240240

241241
## Modules
@@ -390,6 +390,7 @@ allow_github_webhooks = true
390390
| <a name="input_route53_private_zone"></a> [route53\_private\_zone](#input\_route53\_private\_zone) | Enable to use a private Route53 zone | `bool` | `false` | no |
391391
| <a name="input_route53_record_name"></a> [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 |
392392
| <a name="input_route53_zone_name"></a> [route53\_zone\_name](#input\_route53\_zone\_name) | Route53 zone name to create ACM certificate in and main A-record, without trailing dot | `string` | `""` | no |
393+
| <a name="input_runtime_platform"></a> [runtime\_platform](#input\_runtime\_platform) | Configuration block for runtime\_platform that containers in your task may use. | `any` | `{}` | no |
393394
| <a name="input_security_group_ids"></a> [security\_group\_ids](#input\_security\_group\_ids) | List of one or more security groups to be added to the load balancer | `list(string)` | `[]` | no |
394395
| <a name="input_security_group_names"></a> [security\_group\_names](#input\_security\_group\_names) | List of one or more security groups to be added to the load balancer | `list(string)` | `[]` | no |
395396
| <a name="input_ssm_kms_key_arn"></a> [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 |

examples/github-complete/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ Go to https://eu-west-1.console.aws.amazon.com/ecs/home?region=eu-west-1#/settin
3030
| Name | Version |
3131
|------|---------|
3232
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13.1 |
33-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.45 |
33+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.69 |
3434
| <a name="requirement_github"></a> [github](#requirement\_github) | >= 4.8 |
3535

3636
## Providers
3737

3838
| Name | Version |
3939
|------|---------|
40-
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 3.45 |
40+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 3.69 |
4141

4242
## Modules
4343

examples/github-complete/main.tf

+5
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ module "atlantis" {
4949
container_cpu = 512
5050
container_memory = 1024
5151

52+
runtime_platform = {
53+
operating_system_family = "LINUX"
54+
cpu_architecture = "ARM64"
55+
}
56+
5257
entrypoint = ["docker-entrypoint.sh"]
5358
command = ["server"]
5459
working_directory = "/tmp"

examples/github-complete/versions.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = ">= 3.45"
7+
version = ">= 3.69"
88
}
99

1010
github = {

main.tf

+9
Original file line numberDiff line numberDiff line change
@@ -767,6 +767,15 @@ resource "aws_ecs_task_definition" "atlantis" {
767767

768768
container_definitions = local.container_definitions
769769

770+
dynamic "runtime_platform" {
771+
for_each = var.runtime_platform != null ? [var.runtime_platform] : []
772+
773+
content {
774+
operating_system_family = try(runtime_platform.value.operating_system_family, null)
775+
cpu_architecture = try(runtime_platform.value.cpu_architecture, null)
776+
}
777+
}
778+
770779
dynamic "ephemeral_storage" {
771780
for_each = var.enable_ephemeral_storage ? [1] : []
772781

variables.tf

+6
Original file line numberDiff line numberDiff line change
@@ -736,3 +736,9 @@ variable "create_route53_aaaa_record" {
736736
type = bool
737737
default = false
738738
}
739+
740+
variable "runtime_platform" {
741+
description = "Configuration block for runtime_platform that containers in your task may use."
742+
type = any
743+
default = {}
744+
}

versions.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = ">= 3.45"
7+
version = ">= 3.69"
88
}
99

1010
random = {

0 commit comments

Comments
 (0)