Skill 1.3.2
Configuring build tools for generating artifacts (for example, CodeBuild, Lambda)
Key Concepts
In CodeBuild, the buildspec artifacts section lists the files to upload, with base-directory, discard-paths and secondary artifacts when one build produces several outputs. Packaging can also push to ECR (docker push) or publish to CodeArtifact (npm publish, twine upload). Tag artifacts with the commit ID or build number for traceability.
Lambda functions can generate or transform artifacts as part of a workflow, for example packaging configuration or invoking a build from an event. For serverless apps, sam build and sam package (or aws cloudformation package) upload code to S3 and rewrite templates to point to it.