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 }}
This repository has been archived by the owner on Jan 4, 2024. It is now read-only.
When YAML parses that, it produces in terms of JSON:
{"mode": 256}
CloudFormation then turns that into the string '256'. Later, cfn-init parses that using, in Python, int(file['mode'], 8). cfn-init then happily sets the mode of that file to 256: writable by user=root, read-executable by group=root, read-writable by other. This problem became very clear to me when I tried to set the mode to 0444 (292), which isn't a valid octal.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The permission bits must be quoted. The problem is here:
ecs-refarch-cloudformation/infrastructure/ecs-cluster.yaml
Line 142 in ecacd7a
When YAML parses that, it produces in terms of JSON:
CloudFormation then turns that into the string
'256'
. Later,cfn-init
parses that using, in Python,int(file['mode'], 8)
. cfn-init then happily sets the mode of that file to 256: writable by user=root, read-executable by group=root, read-writable by other. This problem became very clear to me when I tried to set the mode to 0444 (292), which isn't a valid octal.The text was updated successfully, but these errors were encountered: