aws-profile
A reference page for aws-profile resource
The AWS CLI resource reference. This resource will install the latest version of AWS CLI v3.
Parameters:
-
awsAccessKeyId: (string) The access key id from AWS to use for the profile. The aws-profile resource requires either
awsAccessKeyIdandawsSecretAccessKeyorcsvCredentialsto be specified. -
awsSecretAccessKey: (string) The secret access key to be added to the profile.
-
csvCredentials: (string) Instead of passing in credentials in plaintext, a
csvcredentials file path can be used instead. Both relative and absolute paths are supported. -
profile: (string, required) The profile to configure
Dependencies
The aws cli must be installed before aws-profile can be used.
Example usage:
[
{ "type": "aws-cli" },
{
"type": "aws-profile",
"profile": "sandbox",
"csvCredentials": "~/Documents/rootkey.csv"
},
{
"type": "aws-profile",
"profile": "production",
"awsAccessKeyId": "AKIA...",
"awsSecretAccessKey": "adADSjsada..."
}
]Setting up AWS CLI locally
Basic instructions for getting AWS CLI up and running locally using Codify.
IAM > Security credentialsCreate access key. Note that it is not
recommended to create access keys for the root account.Retrieve access key page, click Download .csv file.codify.jsonc file to install AWS CLI with that account
as the default profile.[
{ "type": "aws-cli" },
{
"type": "aws-profile",
"profile": "default",
"csvCredentials": "path/to/csv/file.csv"
}
]