Closed moelasmar closed 2 months ago
Hey @moelasmar , thanks for reporting this.
I found this issue is quite similar to the one you have reported and @pahud also has filed an internal ticket with Cloudformation team - https://github.com/aws/aws-cdk/issues/30512#issuecomment-2166432024. However if you think, this issue is not addressed or different than the one in the mentioned internal ticket, please feel free to reach out.
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.
Comments on closed issues and PRs are hard for our team to see. If you need help, please open a new issue that references this one.
Describe the bug
In the generated
CfnCertificate
L1 construct,GetAtt
intrinsic function is used to implement theattrId
property, althoug as per CFN Docs, there is no support for GetAtt for this resource see hereExpected Behavior
I can use
attrId
without getting an error.Current Behavior
when I use
cfnCertificate.attrId
in my CDK implementation, and then try to deploy I got the following exceptionReproduction Steps
Possible Solution
attrId
property should be implemented using theRef
function.Workaround:
The workaround is to use
cfnCertificate.Ref
instead ofcfnCertificate.attrId
Additional Information/Context
No response
CDK CLI Version
2.147.0
Framework Version
No response
Node.js Version
22
OS
all
Language
TypeScript, Python, .NET, Java, Go
Language Version
No response
Other information
No response