File tree Expand file tree Collapse file tree 1 file changed +25
-1
lines changed
packages/credential-provider-ini Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ aws_access_key_id=foo4
82
82
aws_secret_access_key =bar4
83
83
```
84
84
85
- ### source profile with static credentials
85
+ ### profile with source profile
86
86
87
87
``` ini
88
88
[second]
@@ -94,6 +94,30 @@ source_profile=first
94
94
role_arn =arn:aws:iam::123456789012:role/example-role-arn
95
95
```
96
96
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
+
97
121
### profile with web_identity_token_file
98
122
99
123
``` ini
You can’t perform that action at this time.
0 commit comments