A startup company wants to define and provision their AWS infrastructure, such as Amazon EC2 instances and Amazon RDS databases, using a declarative template file. Which AWS service should the company use to automate this provisioning process through Infrastructure as Code (IaC)?
- AWS CloudFormationAnswer
- BAWS Elastic Beanstalk
- CAmazon CloudWatch
- DAWS CloudTrail
Answer
AWS CloudFormation is the correct service because it provides a template-based mechanism to automate the creation and management of AWS infrastructure as code.
AWS CloudFormation is designed specifically for Infrastructure as Code (IaC), allowing users to define resources in JSON or YAML templates and automatically provision them in a predictable order.
Step-by-Step Solution
Key Concept
Infrastructure as Code (IaC) with AWS CloudFormation