I am try to find resources and their arn which were created by cdk automatically ( like IAM roles and policies as dependent resources)
I can see in the cloudformation physical id there is physical id but there is hyperlink to it like other resources plus I am not able to find those resources by their physical id in the console.
2
Answers
Could you group the resources together by tagging them with a tag name in your CDK, and then you can find them by tag in the Console?
One other possibility is to use CloudTrail, which shows history of events in your account. The creation of the new resources should show up in CloudTrail.
I do not think AWS allows to search by arbitrary text and find proper resource associated with it.
What you can do is print list of resources created by given stack
and apply some post-processing to analyze ResourceType and create links for known types.
For example, script below detects IAM roles and EMR clusters and prints links to such kind of resources
However, it will require continuous maintenance for this script when you start creating more and more different ResourceTypes
Note,
aws cloudformation
has two similar commands –describe-stack-resources
andlist-stack-resources
. Former is limited, quote from their documentation