Akshay
Akshay

Reputation: 121

How to deploy multiple stack with one template in cloudformation

Is their any way to deploy multiple stack such as (Network stack, ec2 stack, dbstack) with a single stack in cloudformation.

Upvotes: 0

Views: 2626

Answers (2)

karan sharma
karan sharma

Reputation: 483

If you want to write separate stack for each of the services like ec2, DB, VPC then you have to go with a configuration management tool like Ansible.

Writing up multiple plays and calling stack using cloud formation module. Example

Upvotes: 0

hephalump
hephalump

Reputation: 6164

CloudFormation supports “nested stacks”, which you can use you deploy multiple templates as you describe.

You can read more about nested stacks in the AWS CloudFormation documentation here.

Upvotes: 2

Related Questions