|
| 1 | +{% unless include.minimal == false %} |
| 2 | +For a minimal configuration, add the following to your `.travis.yml`: |
| 3 | + |
| 4 | +```yaml |
| 5 | +deploy: |
| 6 | + provider: ecr |
| 7 | + access_key_id: <encrypted access_key_id> |
| 8 | + secret_access_key: <encrypted secret_access_key> |
| 9 | + source: <source> |
| 10 | + target: <target> |
| 11 | + edge: true # opt in to dpl v2 |
| 12 | +``` |
| 13 | +{: data-file=".travis.yml"} |
| 14 | +
|
| 15 | +
|
| 16 | +
|
| 17 | +{{ include.content }} |
| 18 | +{% endunless %} |
| 19 | +
|
| 20 | +## Status |
| 21 | +
|
| 22 | +Support for deployments to AWS ECR is in **alpha**. Please see [Maturity Levels](/user/deployment-v2#maturity-levels) for details. |
| 23 | +## Known options |
| 24 | +
|
| 25 | +Use the following options to further configure the deployment. |
| 26 | +
|
| 27 | +| `access_key_id` | AWS access key — **required**, **secret**, type: string | |
| 28 | +| `secret_access_key` | AWS secret access key — **required**, **secret**, type: string | |
| 29 | +| `account_id` | AWS Account ID — type: string, note: Required if the repository is owned by a different account than the IAM user | |
| 30 | +| `source` | Image to push — **required**, type: string, note: can be the id or the name and optional tag (e.g. mysql:5.6) | |
| 31 | +| `target` | Comma separated list of partial repository names to push to — **required**, type: string | |
| 32 | +| `region` | Comma separated list of regions to push to — type: string, default: `us-east-1` | |
| 33 | + |
| 34 | +### Shared options |
| 35 | + |
| 36 | +| `cleanup` | Clean up build artifacts from the Git working directory before the deployment — type: boolean | |
| 37 | +| `run` | Commands to execute after the deployment finished successfully — type: string or array of strings | |
| 38 | + |
| 39 | +## Environment variables |
| 40 | + |
| 41 | +All options can be given as environment variables if prefixed with `AWS_`. |
| 42 | + |
| 43 | +For example, `access_key_id` can be given as `AWS_ACCESS_KEY_ID=<access_key_id>`. |
| 44 | + |
| 45 | +{% include deploy/secrets.md name="access_key_id" env_name="AWS_ACCESS_KEY_ID" %} |
0 commit comments