github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/avd_docs/aws/ecs/AVD-AWS-0036/Terraform.md (about)

     1  
     2  Use secrets for the task definition
     3  
     4  ```hcl
     5   resource "aws_ecs_task_definition" "good_example" {
     6     container_definitions = <<EOF
     7   [
     8     {
     9       "name": "my_service",
    10       "essential": true,
    11       "memory": 256,
    12       "environment": [
    13         { "name": "ENVIRONMENT", "value": "development" }
    14       ]
    15     }
    16   ]
    17   EOF
    18   
    19   }
    20   
    21  ```
    22  
    23  #### Remediation Links
    24   - https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecs_task_definition
    25