Skill 3.1.2
Organize files and a directory structure for application deployment
Key Concepts
Build and deployment specification files live at the root by default: buildspec.yml for CodeBuild, appspec.yml for CodeDeploy on EC2, and template.yaml for AWS SAM. Elastic Beanstalk source bundles keep configuration in .ebextensions/ and platform hooks in .platform/, and the bundle's top level must contain the application files, not a parent folder.
For Lambda, the handler path must match the file layout inside the package, and layer content must sit in runtime-specific folders such as python/ or nodejs/node_modules/ to be found on the path. A SAM project usually keeps each function's code in its own folder referenced by CodeUri.