This function provides AWS's CLI version 2.7.18 and is based on the official AWS CLI image on Docker Hub. The following additional packages are installed:
functions:
- id: aws-cli
image: gcr.io/direktiv/functions/aws-cli:1.0
type: knative-workflow
- id: aws-cli
type: action
action:
function: aws-cli
secrets: ["awsAccess", "awsSecret", "awsRegion"]
input:
access-key: jq(.secrets.awsAccess)
secret-key: jq(.secrets.awsSecret)
region: jq(.secrets.awsRegion)
commands:
- command: aws ec2 describe-instances
- awsAccess: AWS access key (IAM)
- awsSecret: AWS secret key (IAM)
- awsRegion: AWS region where the commands run
Type | Description |
---|
io.direktiv.output.error | Template error for output generation of the service |
io.direktiv.ri.error | Can not create information object from request |
io.direktiv.command.error | Command execution failed |
Name | Type | Default | Description | Example |
---|
access-key | string | | AWS access key. | ABCABCABCDABCABCABCD |
secret-key | string | | AWS secret key. | Abcd45sa01234+ThIsIsSuPeRsEcReT |
region | string | us-east-1 | Region the commands should be executed in. | eu-central-1 |
files | array | | File to create before running commands. | |
commands | array | | Array of commands. | |
- Where to file issues:
- Container:
- gcr.io/direktiv/functions/aws-cli
- Maintained by:
- License: