You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Dramatically faster than base image with AWSCLI installed during each pipeline run
18
-
- Small size enables downloading in a fraction of the time of base images
19
-
- Doesn't require pip installation of the CLI and dependancies on each run
20
-
- Includes `bash` support for bash-specific CI scripts or commands
15
+
Image created to enable CI runners to execute AWS CLI commands
16
+
17
+
- Dramatically faster than downloading base image and installing AWS CLI for each execution
18
+
- Downloads fast due to its Small size (~80 MB)
19
+
- Executes fast as AWS CLI and dependancies are preinstalled
20
+
- Includes `bash` and `curl` commands for use in CI scripts
21
21
22
-
When using with CI runners, set Image Entrypoint as shown below as default Entrypoint is `aws`.
22
+
**Example `.gitlab-ci.yml` (GitLab CI)** using image to copy directory to S3
23
23
24
-
Example `.gitlab-ci.yml` (GitLab CI) that uses AWS CLI to copy `settings` folder to S3. (In this example, AWS Credentials are passed via environment variables set as Gitlab Secrets.)
24
+
- Set Entrypoint to override default of `aws`
25
+
- Pass AWS Credentials via environment variables set as CI Secrets
25
26
26
27
```yaml
27
28
image:
@@ -37,10 +38,10 @@ deploy:
37
38
38
39
## ALIAS USAGE
39
40
40
-
For local use create alias .bashrc that passes credentials:
41
+
For CLI use create an alias .bashrc that passes credentials using one of the methods below
41
42
42
43
```bash
43
-
#Share "~/.aws" credential and configuration directory
44
+
#Example alias that shares local host "~/.aws" directory
44
45
alias aws='docker run --rm -t -v ~/.aws:/root/.aws:ro $(tty &>/dev/null && echo "-i") robpco/awscli'
0 commit comments