Skip to content

Commit 02b8f57

Browse files
committed
docs(credential-provider-ini): update readme
1 parent b90e15f commit 02b8f57

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

packages/credential-provider-ini/README.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ aws_access_key_id=foo4
8282
aws_secret_access_key=bar4
8383
```
8484

85-
### source profile with static credentials
85+
### profile with source profile
8686

8787
```ini
8888
[second]
@@ -94,6 +94,30 @@ source_profile=first
9494
role_arn=arn:aws:iam::123456789012:role/example-role-arn
9595
```
9696

97+
### profile with source provider
98+
99+
You can supply `credential_source` options to tell the SDK where to source
100+
credentials for the call to `AssumeRole`. The supported credential providers are
101+
listed bellow:
102+
103+
```ini
104+
[default]
105+
role_arn=arn:aws:iam::123456789012:role/example-role-arn
106+
credential_source = Ec2InstanceMetadata
107+
```
108+
109+
```ini
110+
[default]
111+
role_arn=arn:aws:iam::123456789012:role/example-role-arn
112+
credential_source = Environment
113+
```
114+
115+
```ini
116+
[default]
117+
role_arn=arn:aws:iam::123456789012:role/example-role-arn
118+
credential_source = EcsContainer
119+
```
120+
97121
### profile with web_identity_token_file
98122

99123
```ini

0 commit comments

Comments
 (0)