質問するログイン新規登録

回答編集履歴

1

説明を補足

2021/10/09 00:03

投稿

jhashimoto
jhashimoto

スコア843

answer CHANGED
@@ -1,3 +1,16 @@
1
+ これで`AllocationId`とリソース名がとれるので、
2
+ ```
3
+ aws ec2 describe-addresses --region=$REGION --query 'Addresses[].[AllocationId, Tags[?Key == `Name`].Value]'
4
+ [
5
+ [
6
+ "eipalloc-xxxxxxxxxx",
7
+ [
8
+ "yyyyy"
9
+ ]
10
+ ]
11
+ ]
12
+ ```
13
+
1
14
  これでどうでしょうか?
2
15
 
3
16
  ```