You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
E3009: AWS::CloudFormation::Init commands entry without command is not reported #4874
E3009 validates Metadata/AWS::CloudFormation::Init against src/cfnlint/data/schemas/other/resources/cfn_init.json. In the commands definition, each entry is an object with additionalProperties: false and the properties command, cwd, env, ignoreErrors, test and waitAfterCompletion, but no required list, so an entry that leaves out command passes. CloudFormation does not validate Metadata, so the template deploys, and cfn-init then stops on the instance with 000_reload does not specify the 'command' attribute, which is required (cfnbootstrap/command_tool.py in aws-cfn-bootstrap). In the template below the instance reports that failure to a WaitCondition and the stack fails. #4801 is a different defect in the same definition (the type of command, array form reported).
Expected behavior
E3009 on Metadata/AWS::CloudFormation::Init/config/commands/000_reload. The AWS::CloudFormation::Init reference, Commands lists command as Required: "Either an array or a string specifying the command to run."
cfn-lint --regions us-east-1 -- template.yaml: no findings (exit 0).
CloudFormation, us-east-1, 2026-10-22: Wait CREATE_FAILED; WaitCondition received failed message: 'Error encountered during build of config: 000_reload does not specify the 'command' attribute, which is required'
Activity