Appearance
metaplay get aws-credentials ENVIRONMENT [flags]
Get AWS credentials for the target environment
Appearance
Get AWS credentials for the target environment
metaplay get aws-credentials ENVIRONMENT [flags] Get temporary AWS credentials for accessing resources in the target environment. These credentials can be used to authenticate AWS CLI commands or SDK calls.
The credentials include:
Two output formats are supported:
Expected arguments:
Related commands:
# Get credentials in human-readable text format (default)
metaplay get aws-credentials nimbly
# Get credentials in JSON format for scripting
metaplay get aws-credentials nimbly --format json
# Example of using the credentials with AWS CLI (bash):
eval $(metaplay get aws-credentials nimbly --format json | jq -r '
"export AWS_ACCESS_KEY_ID=\(.AccessKeyId)
export AWS_SECRET_ACCESS_KEY=\(.SecretAccessKey)
export AWS_SESSION_TOKEN=\(.SessionToken)"
')--format <string>: Output format (text or json) (default: text)--color <string>: Should the output be colored (yes/no/auto)? [env: METAPLAYCLI_COLOR] (default: auto)--project <string>: Path to the to project directory (where metaplay-project.yaml is located)--skip-version-check: Skip the check for a new CLI version being available--verbose: Enable verbose logging, useful for troubleshooting [env: METAPLAYCLI_VERBOSE]