aws
EC2, IAM and S3 core AWS Services.
All AWS Services (incl Lambda, DynamoDB, RDS, etc) are supported by the awscc
(AWS Cloud Control API) provider in StackQL.
total methods: 780
total selectable resources: 250
See also:
[SHOW
] [DESCRIBE
] [REGISTRY
]
Installation
To pull the latest version of the aws
provider, run the following command:
REGISTRY PULL aws;
To view previous provider versions or to pull a specific provider version, see here.
Authentication
The following system environment variables are used for authentication by default:
AWS_ACCESS_KEY_ID
- AWS Access Key ID (see How to Create AWS Credentials)AWS_SECRET_ACCESS_KEY
- AWS Secret Access Key (see How to Create AWS Credentials)AWS_SESSION_TOKEN
- [OPTIONAL: only required if usingaws sts assume-role
] AWS Session Token (see Temporary security credentials in IAM)
These variables are sourced at runtime (from the local machine or as CI variables/secrets).
Using different environment variables
To use different environment variables (instead of the defaults), use the --auth
flag of the stackql
program. For example:
AUTH='{ "aws": { "type": "aws_signing_v4", "keyIDenvvar": "YOUR_ACCESS_KEY_ID_VAR", "credentialsenvvar": "YOUR_SECRET_KEY_VAR" }}'
stackql shell --auth="${AUTH}"
or using PowerShell:
$Auth = "{ 'aws': { 'type': 'aws_signing_v4', 'keyIDenvvar': 'YOUR_ACCESS_KEY_ID_VAR', 'credentialsenvvar': 'YOUR_SECRET_KEY_VAR' }}"
stackql.exe shell --auth=$Auth
Server Parameters
The following parameter is required for the aws
provider:
region
- AWS region (e.g.us-east-1
)
This parameter must be supplied to the WHERE
clause of each SELECT
statement.