Skip to content

Commit f969c45

Browse files
author
AWS
committed
AWS AppConfig Data Update: Fix FIPS Endpoints in aws-us-gov.
1 parent d782b26 commit f969c45

File tree

3 files changed

+52
-21
lines changed

3 files changed

+52
-21
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "AWS AppConfig Data",
4+
"contributor": "",
5+
"description": "Fix FIPS Endpoints in aws-us-gov."
6+
}

services/appconfigdata/src/main/resources/codegen-resources/endpoint-rule-set.json

Lines changed: 45 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
]
4141
}
4242
],
43-
"type": "tree",
4443
"rules": [
4544
{
4645
"conditions": [
@@ -83,7 +82,8 @@
8382
},
8483
"type": "endpoint"
8584
}
86-
]
85+
],
86+
"type": "tree"
8787
},
8888
{
8989
"conditions": [
@@ -96,7 +96,6 @@
9696
]
9797
}
9898
],
99-
"type": "tree",
10099
"rules": [
101100
{
102101
"conditions": [
@@ -110,7 +109,6 @@
110109
"assign": "PartitionResult"
111110
}
112111
],
113-
"type": "tree",
114112
"rules": [
115113
{
116114
"conditions": [
@@ -133,7 +131,6 @@
133131
]
134132
}
135133
],
136-
"type": "tree",
137134
"rules": [
138135
{
139136
"conditions": [
@@ -168,7 +165,6 @@
168165
]
169166
}
170167
],
171-
"type": "tree",
172168
"rules": [
173169
{
174170
"conditions": [],
@@ -179,14 +175,16 @@
179175
},
180176
"type": "endpoint"
181177
}
182-
]
178+
],
179+
"type": "tree"
183180
},
184181
{
185182
"conditions": [],
186183
"error": "FIPS and DualStack are enabled, but this partition does not support one or both",
187184
"type": "error"
188185
}
189-
]
186+
],
187+
"type": "tree"
190188
},
191189
{
192190
"conditions": [
@@ -200,14 +198,12 @@
200198
]
201199
}
202200
],
203-
"type": "tree",
204201
"rules": [
205202
{
206203
"conditions": [
207204
{
208205
"fn": "booleanEquals",
209206
"argv": [
210-
true,
211207
{
212208
"fn": "getAttr",
213209
"argv": [
@@ -216,12 +212,37 @@
216212
},
217213
"supportsFIPS"
218214
]
219-
}
215+
},
216+
true
220217
]
221218
}
222219
],
223-
"type": "tree",
224220
"rules": [
221+
{
222+
"conditions": [
223+
{
224+
"fn": "stringEquals",
225+
"argv": [
226+
{
227+
"fn": "getAttr",
228+
"argv": [
229+
{
230+
"ref": "PartitionResult"
231+
},
232+
"name"
233+
]
234+
},
235+
"aws-us-gov"
236+
]
237+
}
238+
],
239+
"endpoint": {
240+
"url": "https://appconfigdata.{Region}.amazonaws.com",
241+
"properties": {},
242+
"headers": {}
243+
},
244+
"type": "endpoint"
245+
},
225246
{
226247
"conditions": [],
227248
"endpoint": {
@@ -231,14 +252,16 @@
231252
},
232253
"type": "endpoint"
233254
}
234-
]
255+
],
256+
"type": "tree"
235257
},
236258
{
237259
"conditions": [],
238260
"error": "FIPS is enabled but this partition does not support FIPS",
239261
"type": "error"
240262
}
241-
]
263+
],
264+
"type": "tree"
242265
},
243266
{
244267
"conditions": [
@@ -252,7 +275,6 @@
252275
]
253276
}
254277
],
255-
"type": "tree",
256278
"rules": [
257279
{
258280
"conditions": [
@@ -272,7 +294,6 @@
272294
]
273295
}
274296
],
275-
"type": "tree",
276297
"rules": [
277298
{
278299
"conditions": [],
@@ -283,14 +304,16 @@
283304
},
284305
"type": "endpoint"
285306
}
286-
]
307+
],
308+
"type": "tree"
287309
},
288310
{
289311
"conditions": [],
290312
"error": "DualStack is enabled but this partition does not support DualStack",
291313
"type": "error"
292314
}
293-
]
315+
],
316+
"type": "tree"
294317
},
295318
{
296319
"conditions": [],
@@ -301,9 +324,11 @@
301324
},
302325
"type": "endpoint"
303326
}
304-
]
327+
],
328+
"type": "tree"
305329
}
306-
]
330+
],
331+
"type": "tree"
307332
},
308333
{
309334
"conditions": [],

services/appconfigdata/src/main/resources/codegen-resources/endpoint-tests.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@
420420
"documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled",
421421
"expect": {
422422
"endpoint": {
423-
"url": "https://appconfigdata-fips.us-gov-east-1.amazonaws.com"
423+
"url": "https://appconfigdata.us-gov-east-1.amazonaws.com"
424424
}
425425
},
426426
"params": {

0 commit comments

Comments
 (0)