Slide 8
Slide 8 text
8
© Link and Motivation Group
#ハードル激低LT大会
2023/04/20
リファクタリングでコード内のリソース名を変更すると
● aws_instance.exampleの削除
ただし、名前を変えると?
tfstate
aws_instance
.exampleがコ
ードからいな
い!
example-
instance
-resource "aws_instance" "example" {
+resource "aws_instance" "example2" {
ami = "ami-12345678"
instance_type = "t2.micro"
…
}
リソース削除