回答編集履歴
1
説明を補足
test
CHANGED
@@ -1,3 +1,29 @@
|
|
1
|
+
これで`AllocationId`とリソース名がとれるので、
|
2
|
+
|
3
|
+
```
|
4
|
+
|
5
|
+
aws ec2 describe-addresses --region=$REGION --query 'Addresses[].[AllocationId, Tags[?Key == `Name`].Value]'
|
6
|
+
|
7
|
+
[
|
8
|
+
|
9
|
+
[
|
10
|
+
|
11
|
+
"eipalloc-xxxxxxxxxx",
|
12
|
+
|
13
|
+
[
|
14
|
+
|
15
|
+
"yyyyy"
|
16
|
+
|
17
|
+
]
|
18
|
+
|
19
|
+
]
|
20
|
+
|
21
|
+
]
|
22
|
+
|
23
|
+
```
|
24
|
+
|
25
|
+
|
26
|
+
|
1
27
|
これでどうでしょうか?
|
2
28
|
|
3
29
|
|