-
-
Couldn't load subscription status.
- Fork 631
feat: Remove empty containers (map/list) from container definition #336
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| { | ||
| "cpu": 256, | ||
| "essential": true, | ||
| "image": "public.ecr.aws/aws-containers/ecsdemo-frontend:776fd50", | ||
| "interactive": false, | ||
| "linuxParameters": { | ||
| "initProcessEnabled": false | ||
| }, | ||
| "logConfiguration": { | ||
| "logDriver": "awslogs", | ||
| "options": { | ||
| "awslogs-group": "/aws/ecs", | ||
| "awslogs-region": "eu-west-1", | ||
| "awslogs-stream-prefix": "ecs" | ||
| } | ||
| }, | ||
| "memory": 512, | ||
| "portMappings": [ | ||
| { | ||
| "containerPort": 80, | ||
| "hostPort": 80, | ||
| "name": "app", | ||
| "protocol": "tcp" | ||
| } | ||
| ], | ||
| "privileged": false, | ||
| "pseudoTerminal": false, | ||
| "readonlyRootFilesystem": false, | ||
| "startTimeout": 30, | ||
| "stopTimeout": 120, | ||
| "versionConsistency": "disabled" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -89,8 +89,7 @@ variable "enable_execute_command" { | |
| variable "entrypoint" { | ||
| description = "The entry point that is passed to the container" | ||
| type = list(string) | ||
| default = [] | ||
| nullable = false | ||
| default = null | ||
| } | ||
|
|
||
| variable "environment" { | ||
|
|
@@ -99,8 +98,7 @@ variable "environment" { | |
| name = string | ||
| value = string | ||
| })) | ||
| default = [] | ||
| nullable = false | ||
| default = null | ||
| } | ||
|
|
||
| # tflint-ignore: terraform_naming_convention | ||
|
|
@@ -110,8 +108,7 @@ variable "environmentFiles" { | |
| value = string | ||
| type = string | ||
| })) | ||
| default = [] | ||
| nullable = false | ||
| default = null | ||
| } | ||
|
|
||
| variable "essential" { | ||
|
|
@@ -241,8 +238,7 @@ variable "mountPoints" { | |
| readOnly = optional(bool) | ||
| sourceVolume = optional(string) | ||
| })) | ||
| default = [] | ||
| nullable = false | ||
| default = null | ||
| } | ||
|
|
||
| variable "name" { | ||
|
|
@@ -311,13 +307,14 @@ variable "resourceRequirements" { | |
| variable "restartPolicy" { | ||
| description = "Container restart policy; helps overcome transient failures faster and maintain task availability" | ||
| type = object({ | ||
| enabled = optional(bool) | ||
| enabled = optional(bool, true) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we need to add this back for this logic to work https://github.com/terraform-aws-modules/terraform-aws-ecs/pull/336/files#diff-2495e85ca74f46479d907910afcb9c141838715fafd982408869e6e7a5e98bbcR71 |
||
| ignoredExitCodes = optional(list(number)) | ||
| restartAttemptPeriod = optional(number) | ||
| }) | ||
| default = { | ||
| enabled = true | ||
| } | ||
| nullable = false | ||
| } | ||
|
|
||
| variable "secrets" { | ||
|
|
@@ -350,8 +347,7 @@ variable "systemControls" { | |
| namespace = optional(string) | ||
| value = optional(string) | ||
| })) | ||
| default = [] | ||
| nullable = false | ||
| default = null | ||
| } | ||
|
|
||
| variable "ulimits" { | ||
|
|
@@ -385,8 +381,7 @@ variable "volumesFrom" { | |
| readOnly = optional(bool) | ||
| sourceContainer = optional(string) | ||
| })) | ||
| default = [] | ||
| nullable = false | ||
| default = null | ||
| } | ||
|
|
||
| # tflint-ignore: terraform_naming_convention | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if
enabled = falsethen we don't send any configs forrestartPolicyto the Task Definition API call