ecs-no-environment-secrets
Checks if secrets are passed as container environment variables. The rule is NON_COMPLIANT if 1 or more environment variable key matches a key listed in the 'secretKeys
' parameter (excluding environmental variables from other locations such as Amazon S3).
Note
This rule only evaluates the latest active revision of an Amazon ECS task definition.
Identifier: ECS_NO_ENVIRONMENT_SECRETS
Resource Types: AWS::ECS::TaskDefinition
Trigger type: Configuration changes
Amazon Web Services Region: All supported Amazon regions except US ISO West, US ISO East, Asia Pacific (Malaysia), US ISOB East, Amazon GovCloud (US-East), Amazon GovCloud (US-West), Canada West (Calgary) Region
Parameters:
- secretKeys
- Type: CSV
-
Comma-separated list of key names to search for in the environment variables of container definitions within Task Definitions. Extra spaces will be removed.
Amazon CloudFormation template
To create Amazon Config managed rules with Amazon CloudFormation templates, see Creating Amazon Config Managed Rules With Amazon CloudFormation Templates.