Skip to content

Commit f62d1c5

Browse files
authored
Merge pull request #11 from lamhaison/develop
[Docs] - updates to documentation of readme file for using aws creden…
2 parents 06ae0d1 + c385750 commit f62d1c5

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

README.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ git clone https://github.com/lamhaison/helpful-commandlines.git
5353
echo "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
7575
role_arn = arn:aws:iam::ACCOUNT_NAME:role/PROFILE_NAME-prod
7676
source_profile = SOURCE_PROFILE
7777
mfa_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

0 commit comments

Comments
 (0)