-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Sam Package strips quotes from account Ids #867
Comments
Sorry for the spam. I misread the results when I tried it in 0.9.0, the problem exists in the new release as well. |
This is an issue with PyYaml: yaml/pyyaml#98 only supporting 1.1. Note: AWS CloudFormation only supports YAML 1.1. We need to remain compatible with what AWS CloudFormation supports and therefore their isn't much we can do here. Closing |
So is this saying that AWS SAM is producing templates that are incompatible with CloudFormation, and this won't be fixed? My issue is that
|
@ecmonsen is there a workaround for this issue? |
Description
When I use the following mapping to provide configurations based on the AWS::AccountId
after running
sam package --template-file /PATH/TO/template.yaml --s3-bucket
, the quotes are stripped from the account ID in the cfn template that is generated. This only happens when the accountID starts with a 0 and does not contain any "8"s or "9"sSteps to reproduce
-create a mapping that has keys which start with a 0 and also contain an 8 or 9 (i.e. not valid Octal)
-execute
sam package
-inspect output template
Observed result
Expected result
I expected the quotes around string literals to remain in place
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
sam --version
: SAM CLI, version 0.8.1The text was updated successfully, but these errors were encountered: