-
Notifications
You must be signed in to change notification settings - Fork 4k
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
CfnTagAssociation: Multiple resources created by Synth #29756
Comments
My solution so far has been to remove and re-add the tag. Mutating the tag causes the above issue. |
Just noting that with this bug, creating new tables with Tags fails as well now. |
Thanks for reporting this @whatnick . Checking the API docs, its not clear as what might be causing the error. Please create an issue with Cloudformation coverage roadmap or try reaching out to Cloudformation team through AWS Premium Support. |
So the error seems to stem from both catalog and table keys being specified in the synthesized Cfn template from the sample code. The API from cloudformation creating the resource in Lake Formation cannot handle that specification after a given update and the whole thing gets stuck if there is an old template with the extra "Resource": {
"Catalog": {},
"Table": {
"CatalogId": {
"Ref": "AWS::AccountId"
},
"DatabaseName": {
"Ref": "SomeDB"
},
"Name": "some-table-name"
}
} The solution is to :
From a CDK perspective, I can suggest that Synth fails if :
|
Describe the bug
Adding LakeFormation Tags via Python CDK to Glue Tables results in this error :
Resource parameter must have exactly 1 resource specified but 2 were provided.
Expected Behavior
Tags are assigned correctly when CDK synthesizes the underlying cloudformation resource.
Current Behavior
Cloudformation Resource is synthesized with duplicate resources being attached to the LakeFormation TAG leading to failure in deployment.
Reproduction Steps
Create a tag association in a Stack using code similar to this. This results in a synthesized resource with 2 resources in the TAG which fails to deploy.
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.136.0 (build 94fd33b)
Framework Version
No response
Node.js Version
v18.14.2
OS
Ubuntu 22.04
Language
Python
Language Version
3.9.18
Other information
No response
The text was updated successfully, but these errors were encountered: