You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm looking to write a CDK Aspect that will validate some naming constraints for specific resource types.
IAM roles in use by teams have boundary policies that restrict permissions to resource namespaces, so naming becomes important for teams when creating new resources.
However, when trying to evaluate these attributes in the aspect we just see a string "GetAtt" reference rather than the actual value.
For example,
import aws_cdk.aws_sns as sns
dlt = sns.Topic(self, "DLQ", topic_name="testname")
In the aspect, when running node.topic_name it does not resolve to testname but the cfn getatt representation referencing the logical id (e.g. Fn::GetAtt: [ logicalNameOfResource, attributeName ])
Is there a way to resolve these attributes to the actual synth time values in the aspect?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm looking to write a CDK Aspect that will validate some naming constraints for specific resource types.
IAM roles in use by teams have boundary policies that restrict permissions to resource namespaces, so naming becomes important for teams when creating new resources.
However, when trying to evaluate these attributes in the aspect we just see a string "GetAtt" reference rather than the actual value.
For example,
In the aspect, when running
node.topic_name
it does not resolve totestname
but the cfn getatt representation referencing the logical id (e.g.Fn::GetAtt: [ logicalNameOfResource, attributeName ]
)Is there a way to resolve these attributes to the actual synth time values in the aspect?
Beta Was this translation helpful? Give feedback.
All reactions