File tree Expand file tree Collapse file tree 1 file changed +22
-2
lines changed Expand file tree Collapse file tree 1 file changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -53,8 +53,8 @@ git clone https://github.com/lamhaison/helpful-commandlines.git
5353echo "source /opt/lamhaison-tools/aws-cli-utils/main.sh" >> ~/.bashrc
5454```
5555
56- ## Setting on ~ /.aws/config
57-
56+ ## Setting AWS credentials
57+ ### The file ~ /.aws/config
5858```
5959
6060[profile PROFILE_NAME-dev]
@@ -75,6 +75,26 @@ region = region
7575role_arn = arn:aws:iam::ACCOUNT_NAME:role/PROFILE_NAME-prod
7676source_profile = SOURCE_PROFILE
7777mfa_serial = arn:aws:iam::ACCOUNT_NAME_MFA:mfa/ACCOUNT_NAME
78+
79+ # Add this for searching on the menu by Peco when using the tool.
80+ [lamhaison]
81+ region = region
82+
83+ ```
84+ ### The file ~ /.aws/credentials
85+
86+ ```
87+ # In case, just use AWS credential permanently. Please add it on the file ./aws/config.
88+ [lamhaison]
89+ aws_access_key_id=xxxxxx
90+ aws_secret_access_key=yyyyxxxxyyyy
91+
92+
93+ [SOURCE_PROFILE]
94+ region = region
95+ aws_access_key_id=xxxxxx
96+ aws_secret_access_key=yyyyxxxxyyyy
97+
7898```
7999
80100
You can’t perform that action at this time.
0 commit comments