Terraform SG(Security Group)삭제

[Tool]Terraform SG(Security Group)삭제

SG(Security Group)삭제(CentOS 2016.2.15기준)

  • Group을 지정하여 SG삭제(Terraform으로 추가한 SG삭제)

$ terraform destroy ./

Do you really want to destroy?
  Terraform will delete all your managed infrastructure.
  There is no undo. Only 'yes' will be accepted to confirm.

  Enter a value: yes    #<--- yes는 수동으로 입력

aws_security_group.SG-TEST: Refreshing state... (ID: sg-d69167b2)
aws_security_group.SG-TEST: Destroying...
aws_security_group.SG-TEST: Destruction complete

Apply complete! Resources: 0 added, 0 changed, 1 destroyed.
  • AWS Console에서 SG가 삭제되었는지 확인

댓글