(aws-certificatemanager): Ref intrinsic function should be used to implement attrId in the generated CfnCertificate construct instead of GetAtt #30650
Labels
bug
This issue is a bug.
closed-for-staleness
This issue was automatically closed because it hadn't received any attention in a while.
effort/small
Small work item – less than a day of effort
needs-cfn
This issue is waiting on changes to CloudFormation before it can be addressed.
p2
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
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
The text was updated successfully, but these errors were encountered: