local_file.worker[0]: Refreshing state... [id=1e99b8776fc9c5bd18db4e18eef4ea4dd63df166] local_file.worker[1]: Refreshing state... [id=fdf5002fbde05c908400b67932260b7556c0add6] local_file.app_config: Refreshing state... [id=b652360b0632ca0f81fbcbad647a5761d4a68b53] Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: + create - destroy Terraform will perform the following actions: # local_file.app_config will be destroyed # (because local_file.app_config is not in configuration) - resource "local_file" "app_config" { - content = <<-EOT port=8080 EOT -> null - content_base64sha256 = "cyMi83JDBCvp5a8hRBzP7tdI8cwtrM5qnMjPMbQgcIM=" -> null - content_base64sha512 = "3006neyRIeoNxtln5p7SLzqOB/jeOHFIu+wCsWnnLfmTzzajD2cfAV0Wn8PkpTIfn+BCl3lt+RI4chc5au+dGw==" -> null - content_md5 = "15d7b699ef445e8718486c1acea86b75" -> null - content_sha1 = "b652360b0632ca0f81fbcbad647a5761d4a68b53" -> null - content_sha256 = "732322f37243042be9e5af21441ccfeed748f1cc2dacce6a9cc8cf31b4207083" -> null - content_sha512 = "df4d3a9dec9121ea0dc6d967e69ed22f3a8e07f8de387148bbec02b169e72df993cf36a30f671f015d169fc3e4a5321f9fe04297796df912387217396aef9d1b" -> null - directory_permission = "0777" -> null - file_permission = "0777" -> null - filename = "./out/app.conf" -> null - id = "b652360b0632ca0f81fbcbad647a5761d4a68b53" -> null } # local_file.worker[0] will be destroyed # (because resource does not use count) - resource "local_file" "worker" { - content = <<-EOT worker=0 EOT -> null - content_base64sha256 = "a+JSrMiSk64AHa0X11m4sktR04BSqDTivQbt1S4ElOA=" -> null - content_base64sha512 = "skg0aFdEyxa9VWgwMvQ0IWI4u6w5VsX/xHp569MsS+DsnLkKiIlh3bI7OPhtWZQIlMpdRDmiG1vU7dLGcrDlFQ==" -> null - content_md5 = "c4dfab46217ed675d1aea7d7960fd8f6" -> null - content_sha1 = "1e99b8776fc9c5bd18db4e18eef4ea4dd63df166" -> null - content_sha256 = "6be252acc89293ae001dad17d759b8b24b51d38052a834e2bd06edd52e0494e0" -> null - content_sha512 = "b24834685744cb16bd55683032f434216238bbac3956c5ffc47a79ebd32c4be0ec9cb90a888961ddb23b38f86d59940894ca5d4439a21b5bd4edd2c672b0e515" -> null - directory_permission = "0777" -> null - file_permission = "0777" -> null - filename = "./out/worker-0.conf" -> null - id = "1e99b8776fc9c5bd18db4e18eef4ea4dd63df166" -> null } # local_file.worker[1] will be destroyed # (because resource does not use count) - resource "local_file" "worker" { - content = <<-EOT worker=1 EOT -> null - content_base64sha256 = "LLs23Y8YMSWzNjNmDiDQ+G/DYOGG+Q0cxMOKc6x+Csk=" -> null - content_base64sha512 = "tUCyALso45pxTDCMCqbluLMtIUYRpIC9XIAqIT/fZPTckhH7TBhPThCfUAT1HgiG0RlDA2OCBtvrldHZ/gKjYg==" -> null - content_md5 = "b739d4fe4189d026d700c83779240560" -> null - content_sha1 = "fdf5002fbde05c908400b67932260b7556c0add6" -> null - content_sha256 = "2cbb36dd8f183125b33633660e20d0f86fc360e186f90d1cc4c38a73ac7e0ac9" -> null - content_sha512 = "b540b200bb28e39a714c308c0aa6e5b8b32d214611a480bd5c802a213fdf64f4dc9211fb4c184f4e109f5004f51e0886d1194303638206dbeb95d1d9fe02a362" -> null - directory_permission = "0777" -> null - file_permission = "0777" -> null - filename = "./out/worker-1.conf" -> null - id = "fdf5002fbde05c908400b67932260b7556c0add6" -> null } # local_file.worker["primary"] will be created + resource "local_file" "worker" { + content = <<-EOT worker=0 EOT + content_base64sha256 = (known after apply) + content_base64sha512 = (known after apply) + content_md5 = (known after apply) + content_sha1 = (known after apply) + content_sha256 = (known after apply) + content_sha512 = (known after apply) + directory_permission = "0777" + file_permission = "0777" + filename = "./out/worker-0.conf" + id = (known after apply) } # local_file.worker["replica"] will be created + resource "local_file" "worker" { + content = <<-EOT worker=1 EOT + content_base64sha256 = (known after apply) + content_base64sha512 = (known after apply) + content_md5 = (known after apply) + content_sha1 = (known after apply) + content_sha256 = (known after apply) + content_sha512 = (known after apply) + directory_permission = "0777" + file_permission = "0777" + filename = "./out/worker-1.conf" + id = (known after apply) } # module.app.local_file.app_config will be created + resource "local_file" "app_config" { + content = <<-EOT port=8080 EOT + content_base64sha256 = (known after apply) + content_base64sha512 = (known after apply) + content_md5 = (known after apply) + content_sha1 = (known after apply) + content_sha256 = (known after apply) + content_sha512 = (known after apply) + directory_permission = "0777" + file_permission = "0777" + filename = "./out/app.conf" + id = (known after apply) } Plan: 3 to add, 0 to change, 3 to destroy. ───────────────────────────────────────────────────────────────────────────── Note: You didn't use the -out option to save this plan, so Terraform can't guarantee to take exactly these actions if you run "terraform apply" now.