@intentius/chant-lexicon-aws 0.124.52 → 0.124.55

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/dist/api/credential-chain.d.ts +3 -3
  2. package/dist/api/credential-chain.d.ts.map +1 -1
  3. package/dist/api/credential-chain.js +2 -2
  4. package/dist/api/read-client.d.ts +2 -2
  5. package/dist/api/read-client.d.ts.map +1 -1
  6. package/dist/api/read-client.js +2 -2
  7. package/dist/api/{sigv4.d.ts → signing.d.ts} +14 -34
  8. package/dist/api/signing.d.ts.map +1 -0
  9. package/dist/api/signing.js +95 -0
  10. package/dist/codegen/generate-lexicon.d.ts +2 -0
  11. package/dist/codegen/generate-lexicon.d.ts.map +1 -1
  12. package/dist/codegen/generate-lexicon.js +1 -0
  13. package/dist/components/__tests__/mock-cloud-executor.d.ts +4 -0
  14. package/dist/components/__tests__/mock-cloud-executor.d.ts.map +1 -1
  15. package/dist/components/__tests__/mock-cloud-executor.js +18 -1
  16. package/dist/components/apply.d.ts +46 -2
  17. package/dist/components/apply.d.ts.map +1 -1
  18. package/dist/components/apply.js +266 -30
  19. package/dist/components/cfn-adopt-run.d.ts +37 -0
  20. package/dist/components/cfn-adopt-run.d.ts.map +1 -0
  21. package/dist/components/cfn-adopt-run.js +104 -0
  22. package/dist/components/cfn-adopt.d.ts +99 -0
  23. package/dist/components/cfn-adopt.d.ts.map +1 -0
  24. package/dist/components/cfn-adopt.js +278 -0
  25. package/dist/components/cfn-imports.d.ts +84 -0
  26. package/dist/components/cfn-imports.d.ts.map +1 -0
  27. package/dist/components/cfn-imports.js +239 -0
  28. package/dist/components/cloud-executor.d.ts +38 -2
  29. package/dist/components/cloud-executor.d.ts.map +1 -1
  30. package/dist/components/cloud-executor.js +84 -2
  31. package/dist/health.js +1 -1
  32. package/dist/importable.d.ts +30 -0
  33. package/dist/importable.d.ts.map +1 -0
  34. package/dist/importable.js +72 -0
  35. package/dist/index-identity.d.ts +19 -0
  36. package/dist/index-identity.d.ts.map +1 -0
  37. package/dist/index-identity.js +79 -0
  38. package/dist/index-import.d.ts +25 -0
  39. package/dist/index-import.d.ts.map +1 -0
  40. package/dist/index-import.js +132 -0
  41. package/dist/index.d.ts +1 -1
  42. package/dist/index.d.ts.map +1 -1
  43. package/dist/index.js +1 -1
  44. package/dist/integrity.json +4 -4
  45. package/dist/listed-types.d.ts +11 -0
  46. package/dist/listed-types.d.ts.map +1 -0
  47. package/dist/listed-types.js +52 -0
  48. package/dist/manifest.json +1 -1
  49. package/dist/meta.json +13206 -1237
  50. package/dist/plugin.d.ts.map +1 -1
  51. package/dist/plugin.js +12 -3
  52. package/dist/reference-catalog.d.ts.map +1 -1
  53. package/dist/reference-catalog.js +62 -20
  54. package/dist/skills/chant-aws-carve-terraform.md +21 -14
  55. package/dist/spec/fetch.d.ts +5 -0
  56. package/dist/spec/fetch.d.ts.map +1 -1
  57. package/dist/spec/parse.d.ts +8 -0
  58. package/dist/spec/parse.d.ts.map +1 -1
  59. package/dist/spec/parse.js +3 -0
  60. package/package.json +2 -2
  61. package/src/api/credential-chain.ts +3 -3
  62. package/src/api/read-client.test.ts +2 -2
  63. package/src/api/read-client.ts +3 -3
  64. package/src/api/{sigv4.test.ts → signing.test.ts} +84 -96
  65. package/src/api/signing.ts +130 -0
  66. package/src/codegen/generate-lexicon.ts +3 -0
  67. package/src/components/__tests__/mock-cloud-executor.ts +20 -1
  68. package/src/components/apply.ts +288 -30
  69. package/src/components/cfn-adopt-run.test.ts +227 -0
  70. package/src/components/cfn-adopt-run.ts +141 -0
  71. package/src/components/cfn-adopt.test.ts +284 -0
  72. package/src/components/cfn-adopt.ts +340 -0
  73. package/src/components/cfn-exports-in-use.test.ts +146 -0
  74. package/src/components/cfn-imports-preview.test.ts +178 -0
  75. package/src/components/cfn-imports-three-stacks.test.ts +107 -0
  76. package/src/components/cfn-imports.test.ts +213 -0
  77. package/src/components/cfn-imports.ts +246 -0
  78. package/src/components/cfn-plan-shape-conformance.test.ts +83 -0
  79. package/src/components/cloud-executor.ts +127 -5
  80. package/src/components/demo-composed-stacks-floci.e2e.test.ts +235 -0
  81. package/src/derived-edges.test.ts +142 -0
  82. package/src/generated/lexicon-aws.json +13206 -1237
  83. package/src/health.ts +1 -1
  84. package/src/importable.test.ts +86 -0
  85. package/src/importable.ts +83 -0
  86. package/src/index-identity.test.ts +134 -0
  87. package/src/index-identity.ts +98 -0
  88. package/src/index-import.test.ts +257 -0
  89. package/src/index-import.ts +158 -0
  90. package/src/index-search.test.ts +87 -0
  91. package/src/index.ts +1 -1
  92. package/src/listed-types.test.ts +97 -0
  93. package/src/listed-types.ts +56 -0
  94. package/src/plugin.ts +13 -3
  95. package/src/reference-catalog.ts +63 -20
  96. package/src/skills/chant-aws-carve-terraform.md +21 -14
  97. package/src/spec/fetch.ts +5 -0
  98. package/src/spec/parse.test.ts +15 -0
  99. package/src/spec/parse.ts +12 -0
  100. package/src/testdata/indexed/identity.listing.json +65 -0
  101. package/src/testdata/indexed/import.listing.json +126 -0
  102. package/src/testdata/indexed/listing.json +69 -0
  103. package/src/testdata/indexed/topology.listing.json +350 -0
  104. package/src/testdata/three-cloud/dns.graph.json +336 -0
  105. package/src/three-cloud-parity.test.ts +49 -0
  106. package/dist/api/sigv4.d.ts.map +0 -1
  107. package/dist/api/sigv4.js +0 -185
  108. package/src/api/sigv4.ts +0 -243
@@ -0,0 +1,350 @@
1
+ {
2
+ "listing": "v1",
3
+ "source": {
4
+ "name": "behold-lister",
5
+ "version": "0.0.0-fixture"
6
+ },
7
+ "scope": {
8
+ "substrate": "aws",
9
+ "scopeId": "000000000000",
10
+ "locations": [
11
+ "us-east-1"
12
+ ],
13
+ "types": [
14
+ "AWS::EC2::Instance",
15
+ "AWS::EC2::InternetGateway",
16
+ "AWS::EC2::Route",
17
+ "AWS::EC2::RouteTable",
18
+ "AWS::EC2::SecurityGroup",
19
+ "AWS::EC2::Subnet",
20
+ "AWS::EC2::SubnetRouteTableAssociation",
21
+ "AWS::EC2::VPC",
22
+ "AWS::EC2::VPCGatewayAttachment",
23
+ "AWS::EKS::Cluster"
24
+ ]
25
+ },
26
+ "startedAt": "2026-10-26T09:00:00.000Z",
27
+ "completedAt": "2026-10-26T09:00:06.000Z",
28
+ "resources": [
29
+ {
30
+ "listedType": "AWS::EC2::VPC",
31
+ "location": "us-east-1",
32
+ "nativeId": "vpc-0a1",
33
+ "cloudIds": [
34
+ {
35
+ "kind": "import-id",
36
+ "value": "vpc-0a1"
37
+ }
38
+ ],
39
+ "tags": {},
40
+ "properties": {
41
+ "VpcId": "vpc-0a1",
42
+ "CidrBlock": "10.0.0.0/16"
43
+ },
44
+ "observedAt": "2026-10-26T09:00:01.000Z"
45
+ },
46
+ {
47
+ "listedType": "AWS::EC2::Subnet",
48
+ "location": "us-east-1",
49
+ "nativeId": "subnet-0pub",
50
+ "cloudIds": [
51
+ {
52
+ "kind": "import-id",
53
+ "value": "subnet-0pub"
54
+ }
55
+ ],
56
+ "tags": {
57
+ "kubernetes.io/cluster/shop": "shared"
58
+ },
59
+ "properties": {
60
+ "SubnetId": "subnet-0pub",
61
+ "VpcId": "vpc-0a1",
62
+ "CidrBlock": "10.0.1.0/24",
63
+ "AvailabilityZone": "us-east-1a",
64
+ "Tags": [
65
+ {
66
+ "Key": "kubernetes.io/cluster/shop",
67
+ "Value": "shared"
68
+ }
69
+ ]
70
+ },
71
+ "observedAt": "2026-10-26T09:00:01.000Z"
72
+ },
73
+ {
74
+ "listedType": "AWS::EC2::Subnet",
75
+ "location": "us-east-1",
76
+ "nativeId": "subnet-0priv",
77
+ "cloudIds": [
78
+ {
79
+ "kind": "import-id",
80
+ "value": "subnet-0priv"
81
+ }
82
+ ],
83
+ "tags": {},
84
+ "properties": {
85
+ "SubnetId": "subnet-0priv",
86
+ "VpcId": "vpc-0a1",
87
+ "CidrBlock": "10.0.2.0/24",
88
+ "AvailabilityZone": "us-east-1a"
89
+ },
90
+ "observedAt": "2026-10-26T09:00:01.000Z"
91
+ },
92
+ {
93
+ "listedType": "AWS::EC2::InternetGateway",
94
+ "location": "us-east-1",
95
+ "nativeId": "igw-0a1",
96
+ "cloudIds": [
97
+ {
98
+ "kind": "import-id",
99
+ "value": "igw-0a1"
100
+ }
101
+ ],
102
+ "tags": {},
103
+ "properties": {
104
+ "InternetGatewayId": "igw-0a1"
105
+ },
106
+ "observedAt": "2026-10-26T09:00:01.000Z"
107
+ },
108
+ {
109
+ "listedType": "AWS::EC2::VPCGatewayAttachment",
110
+ "location": "us-east-1",
111
+ "nativeId": "IGW|vpc-0a1",
112
+ "cloudIds": [
113
+ {
114
+ "kind": "import-id",
115
+ "value": "IGW|vpc-0a1"
116
+ }
117
+ ],
118
+ "tags": {},
119
+ "properties": {
120
+ "VpcId": "vpc-0a1",
121
+ "InternetGatewayId": "igw-0a1"
122
+ },
123
+ "observedAt": "2026-10-26T09:00:01.000Z"
124
+ },
125
+ {
126
+ "listedType": "AWS::EC2::RouteTable",
127
+ "location": "us-east-1",
128
+ "nativeId": "rtb-0pub",
129
+ "cloudIds": [
130
+ {
131
+ "kind": "import-id",
132
+ "value": "rtb-0pub"
133
+ }
134
+ ],
135
+ "tags": {},
136
+ "properties": {
137
+ "RouteTableId": "rtb-0pub",
138
+ "VpcId": "vpc-0a1"
139
+ },
140
+ "observedAt": "2026-10-26T09:00:01.000Z"
141
+ },
142
+ {
143
+ "listedType": "AWS::EC2::Route",
144
+ "location": "us-east-1",
145
+ "nativeId": "rtb-0pub|0.0.0.0/0",
146
+ "cloudIds": [
147
+ {
148
+ "kind": "import-id",
149
+ "value": "rtb-0pub|0.0.0.0/0"
150
+ }
151
+ ],
152
+ "tags": {},
153
+ "properties": {
154
+ "RouteTableId": "rtb-0pub",
155
+ "DestinationCidrBlock": "0.0.0.0/0",
156
+ "GatewayId": "igw-0a1"
157
+ },
158
+ "observedAt": "2026-10-26T09:00:01.000Z"
159
+ },
160
+ {
161
+ "listedType": "AWS::EC2::SubnetRouteTableAssociation",
162
+ "location": "us-east-1",
163
+ "nativeId": "rtbassoc-0pub",
164
+ "cloudIds": [
165
+ {
166
+ "kind": "import-id",
167
+ "value": "rtbassoc-0pub"
168
+ }
169
+ ],
170
+ "tags": {},
171
+ "properties": {
172
+ "Id": "rtbassoc-0pub",
173
+ "SubnetId": "subnet-0pub",
174
+ "RouteTableId": "rtb-0pub"
175
+ },
176
+ "observedAt": "2026-10-26T09:00:01.000Z"
177
+ },
178
+ {
179
+ "listedType": "AWS::EC2::SecurityGroup",
180
+ "location": "us-east-1",
181
+ "nativeId": "sg-0web",
182
+ "cloudIds": [
183
+ {
184
+ "kind": "import-id",
185
+ "value": "sg-0web"
186
+ }
187
+ ],
188
+ "tags": {},
189
+ "properties": {
190
+ "GroupId": "sg-0web",
191
+ "GroupName": "web",
192
+ "GroupDescription": "web",
193
+ "VpcId": "vpc-0a1",
194
+ "SecurityGroupIngress": [
195
+ {
196
+ "IpProtocol": "tcp",
197
+ "FromPort": 22,
198
+ "ToPort": 22,
199
+ "CidrIp": "0.0.0.0/0"
200
+ }
201
+ ]
202
+ },
203
+ "observedAt": "2026-10-26T09:00:01.000Z"
204
+ },
205
+ {
206
+ "listedType": "AWS::EC2::SecurityGroup",
207
+ "location": "us-east-1",
208
+ "nativeId": "sg-0db",
209
+ "cloudIds": [
210
+ {
211
+ "kind": "import-id",
212
+ "value": "sg-0db"
213
+ }
214
+ ],
215
+ "tags": {},
216
+ "properties": {
217
+ "GroupId": "sg-0db",
218
+ "GroupName": "db",
219
+ "GroupDescription": "db",
220
+ "VpcId": "vpc-0a1",
221
+ "SecurityGroupIngress": [
222
+ {
223
+ "IpProtocol": "tcp",
224
+ "FromPort": 5432,
225
+ "ToPort": 5432,
226
+ "SourceSecurityGroupId": "sg-0web"
227
+ }
228
+ ]
229
+ },
230
+ "observedAt": "2026-10-26T09:00:01.000Z"
231
+ },
232
+ {
233
+ "listedType": "AWS::EC2::Instance",
234
+ "location": "us-east-1",
235
+ "nativeId": "i-0web",
236
+ "cloudIds": [
237
+ {
238
+ "kind": "import-id",
239
+ "value": "i-0web"
240
+ }
241
+ ],
242
+ "tags": {},
243
+ "properties": {
244
+ "InstanceId": "i-0web",
245
+ "ImageId": "ami-0abc",
246
+ "InstanceType": "t3.micro",
247
+ "SubnetId": "subnet-0pub",
248
+ "SecurityGroupIds": [
249
+ "sg-0web"
250
+ ]
251
+ },
252
+ "observedAt": "2026-10-26T09:00:01.000Z"
253
+ },
254
+ {
255
+ "listedType": "AWS::EC2::Instance",
256
+ "location": "us-east-1",
257
+ "nativeId": "i-0batch",
258
+ "cloudIds": [
259
+ {
260
+ "kind": "import-id",
261
+ "value": "i-0batch"
262
+ }
263
+ ],
264
+ "tags": {},
265
+ "properties": {
266
+ "InstanceId": "i-0batch",
267
+ "ImageId": "ami-0abc",
268
+ "InstanceType": "t3.micro",
269
+ "SubnetId": "subnet-0priv",
270
+ "SecurityGroupIds": [
271
+ "sg-0web"
272
+ ]
273
+ },
274
+ "observedAt": "2026-10-26T09:00:01.000Z"
275
+ },
276
+ {
277
+ "listedType": "AWS::EKS::Cluster",
278
+ "location": "us-east-1",
279
+ "nativeId": "shop",
280
+ "cloudIds": [
281
+ {
282
+ "kind": "arn",
283
+ "value": "arn:aws:eks:us-east-1:000000000000:cluster/shop"
284
+ },
285
+ {
286
+ "kind": "import-id",
287
+ "value": "shop"
288
+ }
289
+ ],
290
+ "tags": {},
291
+ "properties": {
292
+ "Name": "shop"
293
+ },
294
+ "observedAt": "2026-10-26T09:00:01.000Z"
295
+ }
296
+ ],
297
+ "coverage": [
298
+ {
299
+ "listedType": "AWS::EC2::Instance",
300
+ "location": "us-east-1",
301
+ "verdict": "listed"
302
+ },
303
+ {
304
+ "listedType": "AWS::EC2::InternetGateway",
305
+ "location": "us-east-1",
306
+ "verdict": "listed"
307
+ },
308
+ {
309
+ "listedType": "AWS::EC2::Route",
310
+ "location": "us-east-1",
311
+ "verdict": "listed"
312
+ },
313
+ {
314
+ "listedType": "AWS::EC2::RouteTable",
315
+ "location": "us-east-1",
316
+ "verdict": "listed"
317
+ },
318
+ {
319
+ "listedType": "AWS::EC2::SecurityGroup",
320
+ "location": "us-east-1",
321
+ "verdict": "listed"
322
+ },
323
+ {
324
+ "listedType": "AWS::EC2::Subnet",
325
+ "location": "us-east-1",
326
+ "verdict": "listed"
327
+ },
328
+ {
329
+ "listedType": "AWS::EC2::SubnetRouteTableAssociation",
330
+ "location": "us-east-1",
331
+ "verdict": "listed"
332
+ },
333
+ {
334
+ "listedType": "AWS::EC2::VPC",
335
+ "location": "us-east-1",
336
+ "verdict": "listed"
337
+ },
338
+ {
339
+ "listedType": "AWS::EC2::VPCGatewayAttachment",
340
+ "location": "us-east-1",
341
+ "verdict": "listed"
342
+ },
343
+ {
344
+ "listedType": "AWS::EKS::Cluster",
345
+ "location": "us-east-1",
346
+ "verdict": "listed"
347
+ }
348
+ ],
349
+ "notes": []
350
+ }
@@ -0,0 +1,336 @@
1
+ {
2
+ "$comment": "The dns member of behold origin/integration/consolidation-graph example-three-cloud, read with chant on integration/consolidation-graph (#4535): chant graph src --format ir --detail 3, ids prefixed with the member as behold composes them.",
3
+ "nodes": [
4
+ {
5
+ "id": "dns/awsCheck",
6
+ "kind": "AWS::Route53::HealthCheck",
7
+ "lexicon": "aws",
8
+ "attrs": {
9
+ "HealthCheckId": {
10
+ "$ref": "awsCheck.HealthCheckId"
11
+ },
12
+ "HealthCheckConfig": {
13
+ "Type": "HTTP",
14
+ "FullyQualifiedDomainName": {
15
+ "$ref": "awsEndpoint"
16
+ },
17
+ "ResourcePath": "/",
18
+ "RequestInterval": 10,
19
+ "FailureThreshold": 1
20
+ }
21
+ }
22
+ },
23
+ {
24
+ "id": "dns/awsEndpoint",
25
+ "kind": "AWS::CloudFormation::Parameter",
26
+ "lexicon": "aws",
27
+ "attrs": {
28
+ "parameterType": "String",
29
+ "description": "The aws member's load balancer hostname"
30
+ }
31
+ },
32
+ {
33
+ "id": "dns/awsRecord",
34
+ "kind": "AWS::Route53::RecordSet",
35
+ "lexicon": "aws",
36
+ "attrs": {
37
+ "HostedZoneId": {
38
+ "$ref": "zone.Id"
39
+ },
40
+ "Name": "www.three-cloud.example.",
41
+ "Type": "CNAME",
42
+ "TTL": "60",
43
+ "SetIdentifier": "aws",
44
+ "Region": "us-east-1",
45
+ "ResourceRecords": [
46
+ {
47
+ "$ref": "awsEndpoint"
48
+ }
49
+ ],
50
+ "HealthCheckId": {
51
+ "$ref": "awsCheck.HealthCheckId"
52
+ }
53
+ }
54
+ },
55
+ {
56
+ "id": "dns/azureCheck",
57
+ "kind": "AWS::Route53::HealthCheck",
58
+ "lexicon": "aws",
59
+ "attrs": {
60
+ "HealthCheckId": {
61
+ "$ref": "azureCheck.HealthCheckId"
62
+ },
63
+ "HealthCheckConfig": {
64
+ "Type": "HTTP",
65
+ "FullyQualifiedDomainName": {
66
+ "$ref": "azureEndpoint"
67
+ },
68
+ "ResourcePath": "/",
69
+ "RequestInterval": 10,
70
+ "FailureThreshold": 1
71
+ }
72
+ }
73
+ },
74
+ {
75
+ "id": "dns/azureEndpoint",
76
+ "kind": "AWS::CloudFormation::Parameter",
77
+ "lexicon": "aws",
78
+ "attrs": {
79
+ "parameterType": "String",
80
+ "description": "The azure member's Container App hostname"
81
+ }
82
+ },
83
+ {
84
+ "id": "dns/azureRecord",
85
+ "kind": "AWS::Route53::RecordSet",
86
+ "lexicon": "aws",
87
+ "attrs": {
88
+ "HostedZoneId": {
89
+ "$ref": "zone.Id"
90
+ },
91
+ "Name": "www.three-cloud.example.",
92
+ "Type": "CNAME",
93
+ "TTL": "60",
94
+ "SetIdentifier": "azure",
95
+ "Region": "eu-west-1",
96
+ "ResourceRecords": [
97
+ {
98
+ "$ref": "azureEndpoint"
99
+ }
100
+ ],
101
+ "HealthCheckId": {
102
+ "$ref": "azureCheck.HealthCheckId"
103
+ }
104
+ }
105
+ },
106
+ {
107
+ "id": "dns/front-door",
108
+ "kind": "Chant::Op",
109
+ "lexicon": "chant",
110
+ "attrs": {
111
+ "name": "front-door",
112
+ "overview": "Apply dns, aws, azure and gcp to the emulators, turn Azure off, wait for its health check to fail, export the page to ../export",
113
+ "phases": [
114
+ {
115
+ "name": "Apply",
116
+ "steps": [
117
+ {
118
+ "kind": "activity",
119
+ "fn": "shellCmd",
120
+ "args": {
121
+ "cmd": "cd .. && ./node_modules/.bin/tsx scripts/front-door.ts apply"
122
+ },
123
+ "profile": "atMostOnce",
124
+ "timeout": "15m"
125
+ }
126
+ ]
127
+ },
128
+ {
129
+ "name": "Turn Azure off",
130
+ "steps": [
131
+ {
132
+ "kind": "activity",
133
+ "fn": "shellCmd",
134
+ "args": {
135
+ "cmd": "cd .. && ./node_modules/.bin/tsx scripts/front-door.ts azure-off"
136
+ },
137
+ "profile": "atMostOnce",
138
+ "timeout": "15m"
139
+ }
140
+ ]
141
+ },
142
+ {
143
+ "name": "Wait for Route 53",
144
+ "steps": [
145
+ {
146
+ "kind": "activity",
147
+ "fn": "shellCmd",
148
+ "args": {
149
+ "cmd": "cd .. && ./node_modules/.bin/tsx scripts/front-door.ts wait"
150
+ },
151
+ "profile": "atMostOnce",
152
+ "timeout": "15m"
153
+ }
154
+ ]
155
+ },
156
+ {
157
+ "name": "Export",
158
+ "steps": [
159
+ {
160
+ "kind": "activity",
161
+ "fn": "shellCmd",
162
+ "args": {
163
+ "cmd": "cd .. && ./node_modules/.bin/tsx scripts/front-door.ts export --out export"
164
+ },
165
+ "profile": "atMostOnce",
166
+ "timeout": "15m"
167
+ }
168
+ ]
169
+ }
170
+ ]
171
+ }
172
+ },
173
+ {
174
+ "id": "dns/gcpCheck",
175
+ "kind": "AWS::Route53::HealthCheck",
176
+ "lexicon": "aws",
177
+ "attrs": {
178
+ "HealthCheckId": {
179
+ "$ref": "gcpCheck.HealthCheckId"
180
+ },
181
+ "HealthCheckConfig": {
182
+ "Type": "HTTP",
183
+ "IPAddress": {
184
+ "$ref": "gcpEndpoint"
185
+ },
186
+ "Port": 80,
187
+ "ResourcePath": "/",
188
+ "RequestInterval": 10,
189
+ "FailureThreshold": 1
190
+ }
191
+ }
192
+ },
193
+ {
194
+ "id": "dns/gcpEndpoint",
195
+ "kind": "AWS::CloudFormation::Parameter",
196
+ "lexicon": "aws",
197
+ "attrs": {
198
+ "parameterType": "String",
199
+ "description": "The gcp member's load balancer IP address"
200
+ }
201
+ },
202
+ {
203
+ "id": "dns/gcpOrigin",
204
+ "kind": "AWS::Route53::RecordSet",
205
+ "lexicon": "aws",
206
+ "attrs": {
207
+ "HostedZoneId": {
208
+ "$ref": "zone.Id"
209
+ },
210
+ "Name": "gcp.three-cloud.example.",
211
+ "Type": "A",
212
+ "TTL": "60",
213
+ "ResourceRecords": [
214
+ {
215
+ "$ref": "gcpEndpoint"
216
+ }
217
+ ]
218
+ }
219
+ },
220
+ {
221
+ "id": "dns/gcpRecord",
222
+ "kind": "AWS::Route53::RecordSet",
223
+ "lexicon": "aws",
224
+ "attrs": {
225
+ "HostedZoneId": {
226
+ "$ref": "zone.Id"
227
+ },
228
+ "Name": "www.three-cloud.example.",
229
+ "Type": "CNAME",
230
+ "TTL": "60",
231
+ "SetIdentifier": "gcp",
232
+ "Region": "ap-northeast-1",
233
+ "ResourceRecords": [
234
+ "gcp.three-cloud.example."
235
+ ],
236
+ "HealthCheckId": {
237
+ "$ref": "gcpCheck.HealthCheckId"
238
+ }
239
+ }
240
+ },
241
+ {
242
+ "id": "dns/zone",
243
+ "kind": "AWS::Route53::HostedZone",
244
+ "lexicon": "aws",
245
+ "attrs": {
246
+ "Id": {
247
+ "$ref": "zone.Id"
248
+ },
249
+ "NameServers": {
250
+ "$ref": "zone.NameServers"
251
+ },
252
+ "Name": "three-cloud.example."
253
+ }
254
+ }
255
+ ],
256
+ "edges": [
257
+ {
258
+ "from": "dns/awsCheck",
259
+ "to": "dns/awsEndpoint",
260
+ "kind": "ref",
261
+ "viaAttr": "HealthCheckConfig"
262
+ },
263
+ {
264
+ "from": "dns/awsRecord",
265
+ "to": "dns/awsCheck",
266
+ "kind": "ref",
267
+ "viaAttr": "HealthCheckId"
268
+ },
269
+ {
270
+ "from": "dns/awsRecord",
271
+ "to": "dns/awsEndpoint",
272
+ "kind": "ref",
273
+ "viaAttr": "ResourceRecords"
274
+ },
275
+ {
276
+ "from": "dns/awsRecord",
277
+ "to": "dns/zone",
278
+ "kind": "ref",
279
+ "viaAttr": "HostedZoneId"
280
+ },
281
+ {
282
+ "from": "dns/azureCheck",
283
+ "to": "dns/azureEndpoint",
284
+ "kind": "ref",
285
+ "viaAttr": "HealthCheckConfig"
286
+ },
287
+ {
288
+ "from": "dns/azureRecord",
289
+ "to": "dns/azureCheck",
290
+ "kind": "ref",
291
+ "viaAttr": "HealthCheckId"
292
+ },
293
+ {
294
+ "from": "dns/azureRecord",
295
+ "to": "dns/azureEndpoint",
296
+ "kind": "ref",
297
+ "viaAttr": "ResourceRecords"
298
+ },
299
+ {
300
+ "from": "dns/azureRecord",
301
+ "to": "dns/zone",
302
+ "kind": "ref",
303
+ "viaAttr": "HostedZoneId"
304
+ },
305
+ {
306
+ "from": "dns/gcpCheck",
307
+ "to": "dns/gcpEndpoint",
308
+ "kind": "ref",
309
+ "viaAttr": "HealthCheckConfig"
310
+ },
311
+ {
312
+ "from": "dns/gcpOrigin",
313
+ "to": "dns/gcpEndpoint",
314
+ "kind": "ref",
315
+ "viaAttr": "ResourceRecords"
316
+ },
317
+ {
318
+ "from": "dns/gcpOrigin",
319
+ "to": "dns/zone",
320
+ "kind": "ref",
321
+ "viaAttr": "HostedZoneId"
322
+ },
323
+ {
324
+ "from": "dns/gcpRecord",
325
+ "to": "dns/gcpCheck",
326
+ "kind": "ref",
327
+ "viaAttr": "HealthCheckId"
328
+ },
329
+ {
330
+ "from": "dns/gcpRecord",
331
+ "to": "dns/zone",
332
+ "kind": "ref",
333
+ "viaAttr": "HostedZoneId"
334
+ }
335
+ ]
336
+ }