Script Execute
Type: DEVRAMPS:SCRIPT:EXECUTE
Category: script
Version: 1.0.0
Description
Execute a custom script in the target AWS account.
Executes an arbitrary script from your repository in the target AWS account. The script runs in a secure environment with access to AWS credentials for the specified account. Useful for custom deployment logic, data migrations, or integration with external systems.
Parameters
Required Parameters
| Parameter | Type | Description |
|---|---|---|
script_path | string | Path to the script file relative to repository root. |
Optional Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
account_id | string | - | The AWS account ID to assume credentials for. Defaults to stage account. |
region | string | - | The AWS region. Defaults to stage region. |
params | array<string> | - | Command-line arguments to pass to the script. |
timeout | integer | 30 | Script execution timeout in minutes. |
working_directory | string | - | Working directory for script execution. |
environment_variables | object | - | Environment variables to set for the script. |
run_in_vpc | boolean | false | Whether to run the script within a VPC for private resource access. |
Example Usage
- type: DEVRAMPS:SCRIPT:EXECUTE
name: Run Migration Script
params:
script_path: ./scripts/migrate.sh
params:
- --environment
- production
working_directory: ./scripts
environment_variables:
DATABASE_URL: "${{ stage.secrets.DATABASE_URL }}"
timeout: 30