Skip to content

Commit 4b93dee

Browse files
feat: Add support for runtime_platform config block (#279)
Co-authored-by: Bryant Biggs <bryantbiggs@gmail.com>
1 parent 8fc5c8b commit 4b93dee

File tree

7 files changed

+27
-6
lines changed

7 files changed

+27
-6
lines changed

README.md

Lines changed: 3 additions & 2 deletions
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
@@ -384,6 +384,7 @@ allow_github_webhooks = true
384384
| <a name="input_route53_private_zone"></a> [route53\_private\_zone](#input\_route53\_private\_zone) | Enable to use a private Route53 zone | `bool` | `false` | no |
385385
| <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 |
386386
| <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 |
387+
| <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 |
387388
| <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 |
388389
| <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 |
389390
| <a name="input_start_timeout"></a> [start\_timeout](#input\_start\_timeout) | Time duration (in seconds) to wait before giving up on resolving dependencies for a container | `number` | `30` | no |

examples/github-complete/README.md

Lines changed: 2 additions & 2 deletions
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

Lines changed: 5 additions & 0 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -707,6 +707,15 @@ resource "aws_ecs_task_definition" "atlantis" {
707707

708708
container_definitions = local.container_definitions
709709

710+
dynamic "runtime_platform" {
711+
for_each = var.runtime_platform != null ? [var.runtime_platform] : []
712+
713+
content {
714+
operating_system_family = try(runtime_platform.value.operating_system_family, null)
715+
cpu_architecture = try(runtime_platform.value.cpu_architecture, null)
716+
}
717+
}
718+
710719
dynamic "ephemeral_storage" {
711720
for_each = var.enable_ephemeral_storage ? [1] : []
712721

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -712,3 +712,9 @@ variable "create_route53_aaaa_record" {
712712
type = bool
713713
default = false
714714
}
715+
716+
variable "runtime_platform" {
717+
description = "Configuration block for runtime_platform that containers in your task may use."
718+
type = any
719+
default = {}
720+
}

versions.tf

Lines changed: 1 addition & 1 deletion
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)