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
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.
So, I need to keep the names identical for those resources that have names? And then I can just deploy the template?