forked from demisto/content
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplaybook-AWS-Route53-Test.yml
564 lines (564 loc) · 14.3 KB
/
playbook-AWS-Route53-Test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
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
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
id: 4078d8b6-37c6-42d7-8324-16096a2feb51
version: 6
name: AWS - Route53 Test Playbook
starttaskid: "0"
tasks:
"0":
id: "0"
taskid: 47d5b2dc-3355-4fcb-8944-fac9d6b87d2b
type: start
task:
id: 47d5b2dc-3355-4fcb-8944-fac9d6b87d2b
version: -1
name: ""
iscommand: false
brand: ""
nexttasks:
'#none#':
- "3"
separatecontext: false
view: |-
{
"position": {
"x": 480,
"y": 50
}
}
"1":
id: "1"
taskid: 63bcf396-3d00-4fa3-8cf5-a378d85cd6f5
type: regular
task:
id: 63bcf396-3d00-4fa3-8cf5-a378d85cd6f5
version: -1
name: aws-route53-create-record
description: Creates a resource record set. Creates a resource record set that
has the specified values.
script: AWS - Route53|||aws-route53-create-record
type: regular
iscommand: true
brand: AWS - Route53
nexttasks:
'#none#':
- "9"
scriptarguments:
comment:
simple: test
hostedZoneId:
simple: ${AWS.Route53.HostedZones.Id}
roleArn: {}
roleSessionDuration: {}
roleSessionName: {}
source:
simple: testplaybook.lab-demisto.com
target:
simple: 192.168.1.1
ttl:
simple: "300"
type:
simple: A
separatecontext: false
view: |-
{
"position": {
"x": 480,
"y": 545
}
}
"2":
id: "2"
taskid: 457a6e1e-a2c7-4bdf-8319-8fb7e89405be
type: regular
task:
id: 457a6e1e-a2c7-4bdf-8319-8fb7e89405be
version: -1
name: aws-route53-delete-record
description: Deletes a resource record set. Deletes an existing resource record
set that has the specified values.
script: AWS - Route53|||aws-route53-delete-record
type: regular
iscommand: true
brand: AWS - Route53
scriptarguments:
hostedZoneId:
simple: ${AWS.Route53.HostedZones.Id}
roleArn: {}
roleSessionDuration: {}
roleSessionName: {}
source:
simple: testplaybook.lab-demisto.com
target:
simple: 192.168.1.2
ttl:
simple: "300"
type:
simple: A
separatecontext: false
view: |-
{
"position": {
"x": 480,
"y": 2120
}
}
"3":
id: "3"
taskid: c92a5826-e0d2-40c5-8b77-469b5fde2a65
type: regular
task:
id: c92a5826-e0d2-40c5-8b77-469b5fde2a65
version: -1
name: aws-route53-list-hosted-zones
description: 'Retrieves a list of the public and private hosted zones that are
associated with the current AWS account. '
script: AWS - Route53|||aws-route53-list-hosted-zones
type: regular
iscommand: true
brand: AWS - Route53
nexttasks:
'#none#':
- "8"
- "14"
- "15"
scriptarguments:
roleArn: {}
roleSessionDuration: {}
roleSessionName: {}
separatecontext: false
view: |-
{
"position": {
"x": 480,
"y": 195
}
}
"4":
id: "4"
taskid: d03c6ae3-826e-4e87-8c35-1fa4999fecc3
type: regular
task:
id: d03c6ae3-826e-4e87-8c35-1fa4999fecc3
version: -1
name: aws-route53-list-resource-record-sets
description: Lists the resource record sets in a specified hosted zone.
script: AWS - Route53|||aws-route53-list-resource-record-sets
type: regular
iscommand: true
brand: AWS - Route53
nexttasks:
'#none#':
- "13"
- "16"
scriptarguments:
hostedZoneId:
simple: ${AWS.Route53.HostedZones.Id}
roleArn: {}
roleSessionDuration: {}
roleSessionName: {}
startRecordIdentifier: {}
startRecordName:
simple: testpaybook
startRecordType:
simple: A
separatecontext: false
view: |-
{
"position": {
"x": 480,
"y": 1420
}
}
"5":
id: "5"
taskid: a0151161-8b69-45a9-8054-4b36193952e2
type: regular
task:
id: a0151161-8b69-45a9-8054-4b36193952e2
version: -1
name: aws-route53-waiter-resource-record-sets-changed
description: A waiter function that waits until record set change is successful
script: AWS - Route53|||aws-route53-waiter-resource-record-sets-changed
type: regular
iscommand: true
brand: AWS - Route53
nexttasks:
'#none#':
- "4"
scriptarguments:
id:
simple: ${AWS.Route53.RecordSetsChange.Id}
waiterDelay: {}
waiterMaxAttempts: {}
separatecontext: false
view: |-
{
"position": {
"x": 480,
"y": 1245
}
}
"6":
id: "6"
taskid: 26f6cccc-bb99-4cde-8093-dbcf89bc4bcd
type: regular
task:
id: 26f6cccc-bb99-4cde-8093-dbcf89bc4bcd
version: -1
name: aws-route53-test-dns-answer
description: Gets the value that Amazon Route 53 returns in response to a DNS
request for a specified record name and type. You can optionally specify the
IP address of a DNS resolver, an EDNS0 client subnet IP address, and a subnet
mask.
script: AWS - Route53|||aws-route53-test-dns-answer
type: regular
iscommand: true
brand: AWS - Route53
nexttasks:
'#none#':
- "12"
scriptarguments:
hostedZoneId:
simple: ${AWS.Route53.HostedZones.Id}
recordName:
simple: testplaybook.lab-demisto.com
recordType:
simple: A
resolverIP: {}
roleArn: {}
roleSessionDuration: {}
roleSessionName: {}
separatecontext: false
view: |-
{
"position": {
"x": 480,
"y": 1770
}
}
"7":
id: "7"
taskid: bd9a9001-802a-4255-8305-6fb613f63fe7
type: regular
task:
id: bd9a9001-802a-4255-8305-6fb613f63fe7
version: -1
name: aws-route53-upsert-record
description: Upsert a resource record set. If a resource record set does not
already exist, AWS creates it. If a resource set does exist, Amazon Route
53 updates it with the values in the request.
script: AWS - Route53|||aws-route53-upsert-record
type: regular
iscommand: true
brand: AWS - Route53
nexttasks:
'#none#':
- "10"
scriptarguments:
comment: {}
hostedZoneId:
simple: ${AWS.Route53.HostedZones.Id}
roleArn: {}
roleSessionDuration: {}
roleSessionName: {}
source:
simple: testplaybook.lab-demisto.com
target:
simple: 192.168.1.2
ttl:
simple: "300"
type:
simple: A
separatecontext: false
view: |-
{
"position": {
"x": 480,
"y": 895
}
}
"8":
id: "8"
taskid: 309127f2-4e84-4552-8928-e81571899e4d
type: regular
task:
id: 309127f2-4e84-4552-8928-e81571899e4d
version: -1
name: VerifyContext
description: |-
Verifies path in context:
- Verifies path existence
- If matching object is an array: verify fields exists in each of the objects in the array
- If matching object is not an array: verify fields exists in matching object
- if 'expectedValue' is given: ensure that the given value is equal to the context path
scriptName: VerifyContext
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "1"
scriptarguments:
expectedValue: {}
fields: {}
path:
simple: AWS.Route53.HostedZones.Id
separatecontext: false
view: |-
{
"position": {
"x": 49,
"y": 370
}
}
"9":
id: "9"
taskid: 700d05f2-fb07-4eed-8aad-cc66944ef67a
type: regular
task:
id: 700d05f2-fb07-4eed-8aad-cc66944ef67a
version: -1
name: VerifyContext
description: |-
Verifies path in context:
- Verifies path existence
- If matching object is an array: verify fields exists in each of the objects in the array
- If matching object is not an array: verify fields exists in matching object
- if 'expectedValue' is given: ensure that the given value is equal to the context path
scriptName: VerifyContext
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "7"
scriptarguments:
expectedValue: {}
fields: {}
path:
simple: AWS.Route53.RecordSetsChange.Id
separatecontext: false
view: |-
{
"position": {
"x": 480,
"y": 720
}
}
"10":
id: "10"
taskid: d340952a-4c9c-4d78-8438-1b4f7474211a
type: regular
task:
id: d340952a-4c9c-4d78-8438-1b4f7474211a
version: -1
name: VerifyContext
description: |-
Verifies path in context:
- Verifies path existence
- If matching object is an array: verify fields exists in each of the objects in the array
- If matching object is not an array: verify fields exists in matching object
- if 'expectedValue' is given: ensure that the given value is equal to the context path
scriptName: VerifyContext
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "5"
scriptarguments:
expectedValue: {}
fields: {}
path:
simple: AWS.Route53.RecordSetsChange.Id
separatecontext: false
view: |-
{
"position": {
"x": 480,
"y": 1070
}
}
"12":
id: "12"
taskid: bcbd1813-79f4-4960-81df-e0052aa905a2
type: regular
task:
id: bcbd1813-79f4-4960-81df-e0052aa905a2
version: -1
name: VerifyContext
description: |-
Verifies path in context:
- Verifies path existence
- If matching object is an array: verify fields exists in each of the objects in the array
- If matching object is not an array: verify fields exists in matching object
- if 'expectedValue' is given: ensure that the given value is equal to the context path
scriptName: VerifyContext
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "2"
scriptarguments:
expectedValue: {}
fields: {}
path:
simple: AWS.Route53.TestDNSAnswer.RecordName
separatecontext: false
view: |-
{
"position": {
"x": 480,
"y": 1945
}
}
"13":
id: "13"
taskid: f46cf2d9-ace2-481a-84a7-080b2d2800bb
type: regular
task:
id: f46cf2d9-ace2-481a-84a7-080b2d2800bb
version: -1
name: VerifyContext
description: |-
Verifies path in context:
- Verifies path existence
- If matching object is an array: verify fields exists in each of the objects in the array
- If matching object is not an array: verify fields exists in matching object
- if 'expectedValue' is given: ensure that the given value is equal to the context path
scriptName: VerifyContext
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "6"
scriptarguments:
expectedValue: {}
fields: {}
path:
simple: AWS.Route53.HostedZones.Id
separatecontext: false
view: |-
{
"position": {
"x": 695,
"y": 1595
}
}
"14":
id: "14"
taskid: 3e32a637-d71e-46fa-864a-56d606465841
type: regular
task:
id: 3e32a637-d71e-46fa-864a-56d606465841
version: -1
name: VerifyContext
description: |-
Verifies path in context:
- Verifies path existence
- If matching object is an array: verify fields exists in each of the objects in the array
- If matching object is not an array: verify fields exists in matching object
- if 'expectedValue' is given: ensure that the given value is equal to the context path
scriptName: VerifyContext
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "1"
scriptarguments:
expectedValue: {}
fields: {}
path:
simple: AWS.Route53.HostedZones.Name
separatecontext: false
view: |-
{
"position": {
"x": 910,
"y": 370
}
}
"15":
id: "15"
taskid: 0ae823ec-4e72-452b-8c45-6b1abafa7673
type: regular
task:
id: 0ae823ec-4e72-452b-8c45-6b1abafa7673
version: -1
name: VerifyContext
description: |-
Verifies path in context:
- Verifies path existence
- If matching object is an array: verify fields exists in each of the objects in the array
- If matching object is not an array: verify fields exists in matching object
- if 'expectedValue' is given: ensure that the given value is equal to the context path
scriptName: VerifyContext
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "1"
scriptarguments:
expectedValue: {}
fields: {}
path:
simple: AWS.Route53.HostedZones.ResourceRecordSetCount
separatecontext: false
view: |-
{
"position": {
"x": 480,
"y": 370
}
}
"16":
id: "16"
taskid: 31e6c025-eef0-4f3c-8466-4e90b44f374d
type: regular
task:
id: 31e6c025-eef0-4f3c-8466-4e90b44f374d
version: -1
name: VerifyContext
description: |-
Verifies path in context:
- Verifies path existence
- If matching object is an array: verify fields exists in each of the objects in the array
- If matching object is not an array: verify fields exists in matching object
- if 'expectedValue' is given: ensure that the given value is equal to the context path
scriptName: VerifyContext
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "6"
scriptarguments:
expectedValue: {}
fields: {}
path:
simple: AWS.Route53.HostedZones.Name
separatecontext: false
view: |-
{
"position": {
"x": 265,
"y": 1595
}
}
view: |-
{
"linkLabelsPosition": {},
"paper": {
"dimensions": {
"height": 2165,
"width": 1241,
"x": 49,
"y": 50
}
}
}
inputs: []
outputs: []