Commit b0be9f4
committed
new configuration support for IMDSConfig
Add ClientConfiguration support for IMDS settings and update related classes
Fix: Shared pointer bug in AWSCredentialsProvider
allocator mismatch bug fix, change type using c_str()
new configuration support for IMDSConfig
Add ClientConfiguration support for IMDS settings and update related classes
Fix: Shared pointer bug in AWSCredentialsProvider
allocator mismatch bug fix, change type using c_str()
Fix shared pointer bug and update IMDS config structure
- Fix std::stol compilation error with Aws::String by using .c_str()
- Update IMDS configuration to use credentialProviderConfig.imdsConfig structure
- Add proper environment variable support for AWS_METADATA_SERVICE_TIMEOUT and AWS_METADATA_SERVICE_NUM_ATTEMPTS
Update IMDS configuration and credentials provider
fix: Remove duplicate IMDS config struct and fix comment syntax
feat: Add IMDS configuration support to credential provider chain
- Add CredentialProviderConfiguration struct with IMDS timeout and retry settings
- Add constructor to DefaultAWSCredentialsProviderChain accepting CredentialProviderConfiguration
- Add constructor to InstanceProfileCredentialsProvider accepting CredentialProviderConfiguration
- Add constructor to EC2InstanceProfileConfigLoader accepting CredentialProviderConfiguration
- Add constructor to EC2MetadataClient accepting CredentialProviderConfiguration with IMDS timeout/retry configuration
- Enable IMDS configuration to flow through: CredentialProviderConfiguration → InstanceProfileCredentialsProvider → EC2InstanceProfileConfigLoader → EC2MetadataClient
- Reduce object creation redundancy by passing configuration directly through the chain
fix disableImdsvV1 member
added new include
feat: Add IMDS configuration support for AWS_METADATA_SERVICE_TIMEOUT
Add support for AWS_METADATA_SERVICE_TIMEOUT and AWS_METADATA_SERVICE_NUM_ATTEMPTS
environment variables and config file settings to configure IMDS client behavior.
- Add imdsConfig struct to ClientConfiguration.credentialProviderConfig
- Support AWS_METADATA_SERVICE_TIMEOUT env var and metadata_service_timeout config
- Support AWS_METADATA_SERVICE_NUM_ATTEMPTS env var and metadata_service_num_attempts config
- Add InstanceProfileCredentialsProvider constructor accepting ClientConfiguration
- Add EC2InstanceProfileConfigLoader constructor accepting CredentialProviderConfiguration
- Update EC2MetadataClient to use configured timeout and retry values
- Use StringUtils::ConvertToInt32 for parsing instead of std::stol
Resolves customer request for configurable IMDS timeout settings.
fixed snake case
removed m_disableIMDSV1 and comment
recreated retry strategy during client configuration
updated forward declaration
fixed nip
New Max Attemp Retry Strategy
updated conflicts
updated conflicts
nit
DisableIMDSV11 parent bd9e3be commit b0be9f4
File tree
10 files changed
+110
-3
lines changed- src/aws-cpp-sdk-core
- include/aws/core
- auth
- client
- config
- internal
- source
- auth
- client
- config
- internal
10 files changed
+110
-3
lines changedLines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
25 | 29 | | |
26 | 30 | | |
27 | 31 | | |
| |||
212 | 216 | | |
213 | 217 | | |
214 | 218 | | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
215 | 224 | | |
216 | 225 | | |
217 | 226 | | |
| |||
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
497 | 497 | | |
498 | 498 | | |
499 | 499 | | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
500 | 522 | | |
501 | 523 | | |
502 | 524 | | |
| |||
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
37 | 42 | | |
38 | 43 | | |
39 | 44 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| 106 | + | |
106 | 107 | | |
107 | 108 | | |
108 | 109 | | |
| |||
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
242 | 243 | | |
243 | 244 | | |
244 | 245 | | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
245 | 252 | | |
246 | 253 | | |
247 | 254 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
125 | 126 | | |
126 | 127 | | |
127 | 128 | | |
128 | | - | |
| 129 | + | |
129 | 130 | | |
130 | 131 | | |
131 | 132 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
| 110 | + | |
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| |||
Lines changed: 35 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
44 | 48 | | |
45 | 49 | | |
46 | 50 | | |
| |||
280 | 284 | | |
281 | 285 | | |
282 | 286 | | |
| 287 | + | |
283 | 288 | | |
284 | 289 | | |
285 | 290 | | |
| |||
289 | 294 | | |
290 | 295 | | |
291 | 296 | | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
292 | 323 | | |
293 | 324 | | |
294 | 325 | | |
295 | 326 | | |
296 | 327 | | |
| 328 | + | |
297 | 329 | | |
298 | 330 | | |
299 | 331 | | |
| |||
320 | 352 | | |
321 | 353 | | |
322 | 354 | | |
| 355 | + | |
323 | 356 | | |
324 | 357 | | |
325 | 358 | | |
| |||
346 | 379 | | |
347 | 380 | | |
348 | 381 | | |
| 382 | + | |
349 | 383 | | |
350 | 384 | | |
351 | 385 | | |
| |||
395 | 429 | | |
396 | 430 | | |
397 | 431 | | |
| 432 | + | |
398 | 433 | | |
399 | 434 | | |
400 | 435 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
40 | 45 | | |
41 | 46 | | |
42 | 47 | | |
| |||
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
211 | 233 | | |
212 | 234 | | |
213 | 235 | | |
| |||
0 commit comments