Can I Reference Existing AWS Resources in CloudFormation?

0
6
Asked By CoolCoder123 On

I have some AWS resources like VPC endpoints and a default EventBridge bus that were created outside of CloudFormation. I'm working on a new CloudFormation template and want to know if I can declare these existing resources in my template without creating new ones. The goal is to reference them within my CloudFormation setup. Is that possible?

1 Answer

Answered By ResourceWizard99 On

Yes, you can reference existing resources by importing them into your CloudFormation stack. Check out the AWS documentation about resource import for more details. Just ensure that the resource names match the existing ones exactly when you declare them in your template.

InquisitiveDev456 -

So, I need to keep the names identical for those resources that have names? And then I can just deploy the template?

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.