Read this on the main serverless docs site¶
AWS - Config Credentials¶
Options¶
--provideror-pThe provider (in this caseaws). Required.--keyor-kTheaws_access_key_id. Required.--secretor-sTheaws_secret_access_key. Required.--profileor-nThe name of the profile which should be created.--overwriteor-oOverwrite the profile if it exists.
Provided lifecycle events¶
config:credentials:config
Examples¶
Configure the default profile¶
This example will configure the default profile with the aws_access_key_id of 1234 and the aws_secret_access_key of 5678.
Configure a custom profile¶
serverless config credentials \
--provider aws \
--key 1234 \
--secret 5678 \
--profile custom-profile
This example create and configure a custom-profile profile with the aws_access_key_id of 1234 and the aws_secret_access_key of 5678.
Update an existing profile¶
serverless config credentials \
--provider aws \
--key 1234 \
--secret 5678 \
--profile custom-profile \
--overwrite
This example overwrite custom-profile profile with the aws_access_key_id of 1234 and the aws_secret_access_key of 5678.
If the profile does not exist, it will be added anyway.