Skip to content

CICD-263 · AWS S3 artifact storage ​

Encyclopedia · Cloud infrastructure integration · All snippets

Previous · CICD-262 · Next · CICD-264

1. Where it fits ​

  • Placement CI run step or authorized lab terminal.
  • Prerequisites provider CLI, scoped CI identity, test environment and provider configuration for named resource.
  • Platforms github-actions, cloud-cli.
  • Parameters ARTIFACT_BUCKET, RELEASE_SHA.

2. Copy the snippet ​

bash
aws s3 cp dist/package.tgz "s3://${ARTIFACT_BUCKET:?}/release/${RELEASE_SHA:?}/package.tgz" --sse aws:kms --only-show-errors

3. How it works ​

The copy transfers an artifact to or from the scoped object key. Verify the destination, encryption and digest independently.

4. Verify the result ​

Write to a scoped prefix and verify the same key with head-object under a read role.

Validation syntax-validated (Bash parse). Status definitions.