Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
aws
GitHub Repository: aws/aws-cli
Path: blob/develop/tests/functional/configured_endpoint_urls/profile-tests.json
1567 views
1
{
2
"description": [
3
"These are test descriptions that describe how specific data should be loaded from a profile file based on a ",
4
"profile name."
5
],
6
7
"testSuites": [
8
{
9
"profiles": {
10
"default": {
11
"aws_access_key_id": "123",
12
"aws_secret_access_key": "456",
13
"region": "fake-region-10"
14
},
15
"service_localhost_global_only": {
16
"aws_access_key_id": "123",
17
"aws_secret_access_key": "456",
18
"region": "fake-region-10",
19
"endpoint_url": "http://localhost:1234"
20
},
21
"service_global_only": {
22
"aws_access_key_id": "123",
23
"aws_secret_access_key": "456",
24
"region": "fake-region-10",
25
"endpoint_url": "https://global.endpoint.aws"
26
},
27
"service_specific_s3": {
28
"aws_access_key_id": "123",
29
"aws_secret_access_key": "456",
30
"services": "service_specific_s3",
31
"region": "fake-region-10"
32
},
33
"global_and_service_specific_s3": {
34
"aws_access_key_id": "123",
35
"aws_secret_access_key": "456",
36
"endpoint_url": "https://global.endpoint.aws",
37
"services": "service_specific_s3",
38
"region": "fake-region-10"
39
},
40
"ignore_global_and_service_specific_s3": {
41
"aws_access_key_id": "123",
42
"aws_secret_access_key": "456",
43
"endpoint_url": "https://global.endpoint.aws",
44
"services": "service_specific_s3",
45
"region": "fake-region-10",
46
"ignore_configured_endpoint_urls": "true"
47
},
48
"service_specific_dynamodb_and_s3": {
49
"aws_access_key_id": "123",
50
"aws_secret_access_key": "456",
51
"services": "service_specific_dynamodb_and_s3",
52
"region": "fake-region-10"
53
}
54
},
55
56
"services": {
57
"service_specific_s3": {
58
"s3": {
59
"endpoint_url": "https://s3.endpoint.aws"
60
}
61
},
62
"service_specific_dynamodb_and_s3": {
63
"dynamodb": {
64
"endpoint_url": "https://dynamodb.endpoint.aws"
65
},
66
"s3": {
67
"endpoint_url": "https://s3.endpoint.aws"
68
}
69
}
70
},
71
72
"client_configs": {
73
"default": {},
74
"endpoint_url_provided":{
75
"endpoint_url": "https://client-config.endpoint.aws"
76
},
77
"ignore_configured_endpoint_urls": {
78
"ignore_configured_endpoint_urls": "true"
79
},
80
"provide_and_ignore_configured_endpoint_urls": {
81
"ignore_configured_endpoint_urls": "true",
82
"endpoint_url": "https://client-config.endpoint.aws"
83
}
84
},
85
86
"environments": {
87
"default": {},
88
"global_only": {
89
"AWS_ENDPOINT_URL": "https://global-from-envvar.endpoint.aws"
90
},
91
"service_specific_s3": {
92
"AWS_ENDPOINT_URL_S3": "https://s3-from-envvar.endpoint.aws"
93
},
94
"global_and_service_specific_s3": {
95
"AWS_ENDPOINT_URL": "https://global-from-envvar.endpoint.aws",
96
"AWS_ENDPOINT_URL_S3": "https://s3-from-envvar.endpoint.aws"
97
98
},
99
"ignore_global_and_service_specific_s3": {
100
"AWS_ENDPOINT_URL": "https://global-from-envvar.endpoint.aws",
101
"AWS_ENDPOINT_URL_S3": "https://s3-from-envvar.endpoint.aws",
102
"AWS_IGNORE_CONFIGURED_ENDPOINT_URLS": "true"
103
},
104
"service_specific_dynamodb_and_s3": {
105
"AWS_ENDPOINT_URL_DYNAMODB": "https://dynamodb-from-envvar.endpoint.aws",
106
"AWS_ENDPOINT_URL_S3": "https://s3-from-envvar.endpoint.aws"
107
}
108
},
109
110
"endpointUrlTests": [
111
{
112
"name": "Global endpoint url is read from services section and used for an S3 client.",
113
"profile": "service_global_only",
114
"client_config": "default",
115
"environment": "default",
116
"service": "s3",
117
"output": {
118
"endpointUrl": "https://global.endpoint.aws"
119
}
120
},
121
{
122
"name": "Service specific endpoint url is read from services section and used for an S3 client.",
123
"profile": "service_specific_s3",
124
"client_config": "default",
125
"environment": "default",
126
"service": "s3",
127
"output": {
128
"endpointUrl": "https://s3.endpoint.aws"
129
}
130
},
131
{
132
"name": "S3 Service-specific endpoint URL from configuration file takes precedence over global endpoint URL from configuration file.",
133
"profile": "global_and_service_specific_s3",
134
"client_config": "default",
135
"environment": "default",
136
"service": "s3",
137
"output": {
138
"endpointUrl": "https://s3.endpoint.aws"
139
}
140
},
141
{
142
"name": "Global endpoint url environment variable takes precedence over the value resolved by the SDK.",
143
"profile": "default",
144
"client_config": "default",
145
"environment": "global_only",
146
"service": "s3",
147
"output": {
148
"endpointUrl": "https://global-from-envvar.endpoint.aws"
149
}
150
},
151
{
152
"name": "Global endpoint url environment variable takes precendence over global endpoint configuration option.",
153
"profile": "service_global_only",
154
"client_config": "default",
155
"environment": "global_only",
156
"service": "s3",
157
"output": {
158
"endpointUrl": "https://global-from-envvar.endpoint.aws"
159
}
160
},
161
{
162
"name": "Global endpoint url environment variable takes precendence over service-specific endpoint configuration option.",
163
"profile": "service_specific_s3",
164
"client_config": "default",
165
"environment": "global_only",
166
"service": "s3",
167
"output": {
168
"endpointUrl": "https://global-from-envvar.endpoint.aws"
169
}
170
},
171
{
172
"name": "Global endpoint url environment variable takes precendence over global endpoint configuration option and service-specific endpoint configuration option.",
173
"profile": "global_and_service_specific_s3",
174
"client_config": "default",
175
"environment": "global_only",
176
"service": "s3",
177
"output": {
178
"endpointUrl": "https://global-from-envvar.endpoint.aws"
179
}
180
},
181
{
182
"name": "Service-specific endpoint url environment variable takes precedence over the value resolved by the SDK.",
183
"profile": "default",
184
"client_config": "default",
185
"environment": "service_specific_s3",
186
"service": "s3",
187
"output": {
188
"endpointUrl": "https://s3-from-envvar.endpoint.aws"
189
}
190
},
191
{
192
"name": "Service-specific endpoint url environment variable takes precedence over the global endpoint url configuration option.",
193
"profile": "service_global_only",
194
"client_config": "default",
195
"environment": "service_specific_s3",
196
"service": "s3",
197
"output": {
198
"endpointUrl": "https://s3-from-envvar.endpoint.aws"
199
}
200
},
201
{
202
"name": "Service-specific endpoint url environment variable takes precedence over the service-specific endpoint url configuration option.",
203
"profile": "service_specific_s3",
204
"client_config": "default",
205
"environment": "service_specific_s3",
206
"service": "s3",
207
"output": {
208
"endpointUrl": "https://s3-from-envvar.endpoint.aws"
209
}
210
},
211
{
212
"name": "Service-specific endpoint url environment variable takes precedence over the services-specific endpoint url configuration option and the global endpoint url configuration option.",
213
"profile": "global_and_service_specific_s3",
214
"client_config": "default",
215
"environment": "service_specific_s3",
216
"service": "s3",
217
"output": {
218
"endpointUrl": "https://s3-from-envvar.endpoint.aws"
219
}
220
},
221
{
222
"name": "Service-specific endpoint url environment variable takes precedence over the global endpoint url environment variable.",
223
"profile": "default",
224
"client_config": "default",
225
"environment": "global_and_service_specific_s3",
226
"service": "s3",
227
"output": {
228
"endpointUrl": "https://s3-from-envvar.endpoint.aws"
229
}
230
},
231
{
232
"name": "Service-specific endpoint url environment variable takes precedence over the global endpoint url environment variable and the global endpoint url configuration option.",
233
"profile": "service_global_only",
234
"client_config": "default",
235
"environment": "global_and_service_specific_s3",
236
"service": "s3",
237
"output": {
238
"endpointUrl": "https://s3-from-envvar.endpoint.aws"
239
}
240
},
241
{
242
"name": "Service-specific endpoint url environment variable takes precedence over the global endpoint url environment variable and the the service-specific endpoint url configuration option.",
243
"profile": "service_specific_s3",
244
"client_config": "default",
245
"environment": "global_and_service_specific_s3",
246
"service": "s3",
247
"output": {
248
"endpointUrl": "https://s3-from-envvar.endpoint.aws"
249
}
250
},
251
{
252
"name": "Service-specific endpoint url environment variable takes precedence over the global endpoint url environment variable, the service-specific endpoint URL configuration option, and the global endpoint URL configuration option.",
253
"profile": "global_and_service_specific_s3",
254
"client_config": "default",
255
"environment": "global_and_service_specific_s3",
256
"service": "s3",
257
"output": {
258
"endpointUrl": "https://s3-from-envvar.endpoint.aws"
259
}
260
},
261
{
262
"name": "Client configuration takes precedence over value provided by the SDK.",
263
"profile": "default",
264
"client_config": "endpoint_url_provided",
265
"environment": "default",
266
"service": "s3",
267
"output": {
268
"endpointUrl": "https://client-config.endpoint.aws"
269
}
270
},
271
{
272
"name": "Client configuration takes precedence over global endpoint url from services section and used for an S3 client.",
273
"profile": "service_global_only",
274
"client_config": "endpoint_url_provided",
275
"environment": "default",
276
"service": "s3",
277
"output": {
278
"endpointUrl": "https://client-config.endpoint.aws"
279
}
280
},
281
{
282
"name": "Client configuration takes precedence over service specific endpoint url from services section and used for an S3 client.",
283
"profile": "service_specific_s3",
284
"client_config": "endpoint_url_provided",
285
"environment": "default",
286
"service": "s3",
287
"output": {
288
"endpointUrl": "https://client-config.endpoint.aws"
289
}
290
},
291
{
292
"name": "Client configuration takes precedence over S3 Service-specific endpoint URL from configuration file and global endpoint URL from configuration file.",
293
"profile": "global_and_service_specific_s3",
294
"client_config": "endpoint_url_provided",
295
"environment": "default",
296
"service": "s3",
297
"output": {
298
"endpointUrl": "https://client-config.endpoint.aws"
299
}
300
},
301
{
302
"name": "Client configuration takes precedence over global endpoint url environment variable.",
303
"profile": "default",
304
"client_config": "endpoint_url_provided",
305
"environment": "global_only",
306
"service": "s3",
307
"output": {
308
"endpointUrl": "https://client-config.endpoint.aws"
309
}
310
},
311
{
312
"name": "Client configuration takes precedence over global endpoint url environment variable and global endpoint configuration option.",
313
"profile": "service_global_only",
314
"client_config": "endpoint_url_provided",
315
"environment": "global_only",
316
"service": "s3",
317
"output": {
318
"endpointUrl": "https://client-config.endpoint.aws"
319
}
320
},
321
{
322
"name": "Client configuration takes precedence over global endpoint url environment variable and service-specific endpoint configuration option.",
323
"profile": "service_specific_s3",
324
"client_config": "endpoint_url_provided",
325
"environment": "global_only",
326
"service": "s3",
327
"output": {
328
"endpointUrl": "https://client-config.endpoint.aws"
329
}
330
},
331
{
332
"name": "Client configuration takes precedence over global endpoint url environment variable, global endpoint configuration option, and service-specific endpoint configuration option.",
333
"profile": "global_and_service_specific_s3",
334
"client_config": "endpoint_url_provided",
335
"environment": "global_only",
336
"service": "s3",
337
"output": {
338
"endpointUrl": "https://client-config.endpoint.aws"
339
}
340
},
341
{
342
"name": "Client configuration takes precedence over service-specific endpoint url environment variable.",
343
"profile": "default",
344
"client_config": "endpoint_url_provided",
345
"environment": "service_specific_s3",
346
"service": "s3",
347
"output": {
348
"endpointUrl": "https://client-config.endpoint.aws"
349
}
350
},
351
{
352
"name": "Client configuration takes precedence over service-specific endpoint url environment variable and the global endpoint url configuration option.",
353
"profile": "service_global_only",
354
"client_config": "endpoint_url_provided",
355
"environment": "service_specific_s3",
356
"service": "s3",
357
"output": {
358
"endpointUrl": "https://client-config.endpoint.aws"
359
}
360
},
361
{
362
"name": "Client configuration takes precedence over service-specific endpoint url environment variable and the service-specific endpoint url configuration option.",
363
"profile": "service_specific_s3",
364
"client_config": "endpoint_url_provided",
365
"environment": "service_specific_s3",
366
"service": "s3",
367
"output": {
368
"endpointUrl": "https://client-config.endpoint.aws"
369
}
370
},
371
{
372
"name": "Client configuration takes precedence over service-specific endpoint url environment variable, the services-specific endpoint url configuration option, and the global endpoint url configuration option.",
373
"profile": "global_and_service_specific_s3",
374
"client_config": "endpoint_url_provided",
375
"environment": "service_specific_s3",
376
"service": "s3",
377
"output": {
378
"endpointUrl": "https://client-config.endpoint.aws"
379
}
380
},
381
{
382
"name": "Client configuration takes precedence over service-specific endpoint url environment variable and the global endpoint url environment variable.",
383
"profile": "default",
384
"client_config": "endpoint_url_provided",
385
"environment": "global_and_service_specific_s3",
386
"service": "s3",
387
"output": {
388
"endpointUrl": "https://client-config.endpoint.aws"
389
}
390
},
391
{
392
"name": "Client configuration takes precedence over service-specific endpoint url environment variable, the global endpoint url environment variable, and the global endpoint url configuration option.",
393
"profile": "service_global_only",
394
"client_config": "endpoint_url_provided",
395
"environment": "global_and_service_specific_s3",
396
"service": "s3",
397
"output": {
398
"endpointUrl": "https://client-config.endpoint.aws"
399
}
400
},
401
{
402
"name": "Client configuration takes precedence over service-specific endpoint url environment variable, the global endpoint url environment variable, and the service-specific endpoint url configuration option.",
403
"profile": "service_specific_s3",
404
"client_config": "endpoint_url_provided",
405
"environment": "global_and_service_specific_s3",
406
"service": "s3",
407
"output": {
408
"endpointUrl": "https://client-config.endpoint.aws"
409
}
410
},
411
{
412
"name": "Client configuration takes precedence over service-specific endpoint url environment variable, the global endpoint url environment variable, the service-specific endpoint URL configuration option, and the global endpoint URL configuration option.",
413
"profile": "global_and_service_specific_s3",
414
"client_config": "endpoint_url_provided",
415
"environment": "global_and_service_specific_s3",
416
"service": "s3",
417
"output": {
418
"endpointUrl": "https://client-config.endpoint.aws"
419
}
420
},
421
{
422
"name": "All configured endpoints ignored due to environment variable.",
423
"profile": "global_and_service_specific_s3",
424
"client_config": "default",
425
"environment": "ignore_global_and_service_specific_s3",
426
"service": "s3",
427
"output": {
428
"endpointUrl": "https://s3.fake-region-10.amazonaws.com"
429
}
430
},
431
{
432
"name": "All configured endpoints ignored due to shared config variable.",
433
"profile": "ignore_global_and_service_specific_s3",
434
"client_config": "default",
435
"environment": "global_and_service_specific_s3",
436
"service": "s3",
437
"output": {
438
"endpointUrl": "https://s3.fake-region-10.amazonaws.com"
439
}
440
},
441
{
442
"name": "All configured endpoints ignored due to ignore shared config variable.",
443
"profile": "global_and_service_specific_s3",
444
"client_config": "ignore_configured_endpoint_urls",
445
"environment": "global_and_service_specific_s3",
446
"service": "s3",
447
"output": {
448
"endpointUrl": "https://s3.fake-region-10.amazonaws.com"
449
}
450
},
451
{
452
"name": "Environment variable and shared config file configured endpoints ignored due to ignore shared config variable and client configured endpoint is used.",
453
"profile": "ignore_global_and_service_specific_s3",
454
"client_config": "endpoint_url_provided",
455
"environment": "global_and_service_specific_s3",
456
"service": "s3",
457
"output": {
458
"endpointUrl": "https://client-config.endpoint.aws"
459
}
460
},
461
{
462
"name": "Environment variable and shared config file configured endpoints ignored due to ignore environment variable and client configured endpoint is used.",
463
"profile": "global_and_service_specific_s3",
464
"client_config": "endpoint_url_provided",
465
"environment": "ignore_global_and_service_specific_s3",
466
"service": "s3",
467
"output": {
468
"endpointUrl": "https://client-config.endpoint.aws"
469
}
470
},
471
{
472
"name": "Environment variable and shared config file configured endpoints ignored due to ignore client config variable and client configured endpoint is used.",
473
"profile": "global_and_service_specific_s3",
474
"client_config": "provide_and_ignore_configured_endpoint_urls",
475
"environment": "global_and_service_specific_s3",
476
"service": "s3",
477
"output": {
478
"endpointUrl": "https://client-config.endpoint.aws"
479
}
480
},
481
{
482
"name": "DynamoDB service-specific endpoint url shared config variable is used when service-specific S3 shared config variable is also present.",
483
"profile": "service_specific_dynamodb_and_s3",
484
"client_config": "default",
485
"environment": "default",
486
"service": "dynamodb",
487
"output": {
488
"endpointUrl": "https://dynamodb.endpoint.aws"
489
}
490
},
491
{
492
"name": "DynamoDB service-specific endpoint url environment variable is used when service-specific S3 environment variable is also present.",
493
"profile": "default",
494
"client_config": "default",
495
"environment": "service_specific_dynamodb_and_s3",
496
"service": "dynamodb",
497
"output": {
498
"endpointUrl": "https://dynamodb-from-envvar.endpoint.aws"
499
}
500
}
501
502
]
503
}
504
]
505
}
506
507