-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Open
Labels
bugThis issue is a bug.This issue is a bug.cloudformation package-deploycustomizationIssues related to CLI customizations (located in /awscli/customizations)Issues related to CLI customizations (located in /awscli/customizations)p2This is a standard priority issueThis is a standard priority issue
Description
CloudFormation template
template.yml
Parameters:
Value7:
Type: String
Default: "077777777777"
Value8:
Type: String
Default: "088888888888"
Value9:
Type: String
Default: "099999999999"
Resources:
NestedStack:
Type: AWS::CloudFormation::Stack
Properties:
TemplateURL: ./template_child.ymltemplate_child.yml
# This template is not so important
Resources:
Dummy:
Type: Custom::Whatever
Properties:
ServiceToken: whatever
Value1: whateverCommands to reproduce
$ uname -a
Darwin xxxxxxx 18.2.0 Darwin Kernel Version 18.2.0: Thu Dec 20 20:46:53 PST 2018; root:xnu-4903.241.1~1/RELEASE_X86_64 x86_64
$ aws --version
aws-cli/1.16.110 Python/3.7.2 Darwin/18.2.0 botocore/1.12.100
$ aws cloudformation package --s3-bucket BUCKET_NAME --template-file template.yml
Uploading to 137ce8b72427772da39a43ddc087908a.template 101 / 101.0 (100.00%)
Parameters:
Value7:
Type: String
Default: '077777777777'
Value8:
Type: String
Default: 088888888888
Value9:
Type: String
Default: 099999999999
Resources:
NestedStack:
Type: AWS::CloudFormation::Stack
Properties:
TemplateURL: https://s3.amazonaws.com/BUCKET_NAME/137ce8b72427772da39a43ddc087908a.templateQuotes of Value8 and Value9 are removed after aws cloudformation package.
It seems that leads to the values interpreted as numbers during stack operation.
If I use the values for !Sub, values will be like 9.9999999999E10, which is unintended and cause errors.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugThis issue is a bug.This issue is a bug.cloudformation package-deploycustomizationIssues related to CLI customizations (located in /awscli/customizations)Issues related to CLI customizations (located in /awscli/customizations)p2This is a standard priority issueThis is a standard priority issue