0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

AWS Terraform - セキュリティグループの名前 ( Name ) が空白なので、名前をつける

Posted at

AWS マネージメントコンソールから見ると、Name と セキュリティグループ名という項目がある

Image

これはTerraformでいうと

  • tag が「Name」に対応している
  • name が「セキュリティグループ名」に対応している

ようだ。

コードで書くと以下の通り

resource "aws_security_group" "example" {
  name = "example-name"

  tags = {
    Name = "example-tag-name"
  }
}

tag ( Name ) をつけると、マネージメントコンソールでそのセキュリティグループが補完で選びやすくなったりする

チャットメンバー募集

何か質問、悩み事、相談などあればLINEオープンチャットもご利用ください。

プロフィール・経歴

0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?