Build an appspec.yml
At NovaTech, you're setting up CodeDeploy for a Python web application on EC2. Use the appspec.yml builder to explore how the file is structured.
The builder lets you toggle sections on and off and see how the resulting appspec.yml changes. Experiment with different file mappings and lifecycle hooks to understand the relationship between the YAML structure and what CodeDeploy executes.
Pay attention to which lifecycle events are available for EC2 vs. Lambda deployments, and how the files section maps source paths to destinations.
Question: What are the four required sections in an EC2 appspec.yml file?
This exercise is part of the course
Automating Deployments on AWS
Hands-on interactive exercise
Turn theory into action with one of our interactive exercises
Start Exercise