-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
CfnInclude: Changes to Mappings are recognized by diff but not deployed by deploy #27591
Comments
Can you share the output of |
This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled. |
This is a git diff from a CloudFormation template with a different Mappings block but the issue is still the same. Mappings:
CoreAccountMap:
'123456789012': # dev
[-] cirrussubname: '*'
[+] cirrussubdetails: 'branch:*'
githubenv: 'dev'
cirrussubtype: 'branch'
'234567890123': # staging
[-] cirrussubname: 'master'
[+] cirrussubdetails: 'branch:master'
githubenv: 'staging'
cirrussubtype: 'branch'
'345678901234': # prod
[-] cirrussubname: '*'
[+] cirrussubdetails: 'branch:*:tag:v*'
githubenv: 'prod'
cirrussubtype: 'branch' Synth output in the {
"Mappings": {
"CoreAccountMap": {
"123456789012": {
"cirrussubdetails": "branch:*",
"githubenv": "dev"
},
"234567890123": {
"cirrussubdetails": "branch:master",
"githubenv": "staging"
},
"345678901234": {
"cirrussubdetails": "branch:*:tag:v*",
"githubenv": "prod"
}
}
},
// ... The |
Describe the bug
While deploying CloudFormation templates using CDK's CfnInclude module I noticed my changes were not deployed, although recognized by
cdk diff
. I see this happen if the only change between deployments is to theMappings
block, such as adding keys, updating values, etc.As mentioned above, I can see the changes being outputted by
cdk diff
but the subsequentcdk deploy
doesn't deploy changes and reportsNo changes
. If I deploy the changes through the AWS Console, everything works as expected.I tried with the
--method direct
and/or--force
flags but this leads to another problem - #23141Expected Behavior
I expect changes to
Mappings
to be deployed withcdk deploy
.Mappings
block in a CloudFormation templatecdk diff
(changes are outputted correctly)cdk deploy
(changes are deployed correctly)Current Behavior
Changes to
Mappings
are not deployed withcdk deploy
, although recognized bycdk diff
.Mappings
block in a CloudFormation template (e.g., add another key to a map in Mappings)cdk diff
(changes are outputted correctly)cdk deploy
(changes are NOT deployed)Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.101.1
Framework Version
No response
Node.js Version
20.8.0
OS
MacOS 14.0
Language
Python
Language Version
Python 3.11
Other information
No response
The text was updated successfully, but these errors were encountered: