Score:1

Reference existing resources in cloud formation

dz flag

Is there a way to reference an existing resource in cloudformation. I am looking for something similar to terraform’s datasource facility where I can find a resource by tag, etc. and then use a property such as Id.

I have an existing security group with a consistent name across accounts. If I could look up this SG in the template I could use the ID.

Azure does this. terraform does this.

Tim avatar
gp flag
Tim
There's this but I'm not sure its quite what you're after. CloudFormation is good, but also somewhat basic https://aws.amazon.com/blogs/aws/new-import-existing-resources-into-a-cloudformation-stack/
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.