LoginSignup
1
0

More than 1 year has passed since last update.

EC2のメタデータタグに設定したEverything(It's you)を取得してみた

Posted at

以下に記載がありますが、 GET/latest/meta-data/tags/instance/タグ名 でタグの値が取得できるということでEverything(It's you)を取得してみました。

メタデータのタグ(取得)を許可するを有効化

スクリーンショット 2022-04-14 20.23.41.png

こんな感じでタグを指定

image.png

タグリストの取得

$ curl http://169.254.169.254/latest/meta-data/tags/instance
Everything

Everything タグが取得できてます。

タグの値を取得

$ curl http://169.254.169.254/latest/meta-data/tags/instance/Everything
It's you

無事に It's you できました!

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0