A deployment artifact is a packaged archive containing the code, scripts, configuration, and instructions required to release software. In AWS workflows, it is commonly a ZIP file stored in Amazon S3 and consumed by services such as Lambda or CodeDeploy. section 6.3.5 section 15.1
A typical deployment-artifact workflow has these steps:
- Assemble application code, dependencies, scripts, configuration, and deployment instructions into an archive. section 15.1
- Upload the archive to an S3 bucket and reference it from the deployment configuration. section 6.3.5 section 15.1
- Use SAM, CloudFormation, or CodeDeploy to distribute the archive and configure its target resources. section 6.3.5 section 15.1
- Let the target agent or service execute included instructions, copy application files, and report deployment status. section 15.1
Lambda package with SAM
Create an S3 bucket, package the Lambda template and deployment archive, then deploy the generated CloudFormation template. The resulting stack configures the function and its dependencies, including IAM and event resources. section 6.3.5
Package a SAM template and upload its deployment package to S3, producing an output template that references the uploaded artifact. section 6.3.5
Create a CodeDeploy deployment from a ZIP revision stored in S3, selecting the application and deployment group. section 15.1
Artifact size affects Lambda cold-start time because AWS must download and initialize the package. Keeping the archive small can reduce latency, while CodeDeploy artifacts can carry lifecycle hooks such as installation, startup, and validation scripts. section 6.4.1 section 15.1

