Skip to main content

Bundle Import

Stable

Type: DEVRAMPS:BUNDLE:IMPORT

Category: build

Version: 1.0.0


Description

Imports an external bundle file from S3.

Polls an external S3 bucket for a bundle file and copies it to DevRamps-managed S3 storage. This allows integration with external build systems or importing pre-built bundles from other AWS accounts.

The executor will poll the source S3 at ~30 second intervals until the object is found or the timeout is reached. Once found, the object is copied to the CI/CD account S3 (or directly to the stage account for per-stage artifacts).

Source expressions can reference trigger context (e.g., ${{ trigger.sha }}) or stage context (e.g., ${{ stage.name }}) for dynamic paths.

Parameters

Required Parameters

ParameterTypeDescription
source_s3_urlstringFull S3 URI of the source bundle (supports expressions like ${{ trigger.sha }})
source_accountstringAWS account ID where the source bundle resides
source_regionstringAWS region where the source bundle resides
timeout_minutesnumberMaximum time to wait for the bundle to be available

Example Usage

artifacts:
external-bundle:
type: DEVRAMPS:BUNDLE:IMPORT
per_stage: true
params:
source_account: "123456789012"
source_region: "us-west-2"
source_s3_url: s3://acme-builds/${{ stage.name }}/bundle-${{ trigger.sha }}.zip
timeout_minutes: 15