mirror of https://github.com/hashicorp/terraform
Merge pull request #10404 from hashicorp/b-plan-deposed
terraform: diff shows pure deposed destroypull/9833/head^2
commit
a2f3259e51
@ -0,0 +1,3 @@
|
||||
resource "aws_instance" "bar" {
|
||||
lifecycle { create_before_destroy = true }
|
||||
}
|
||||
@ -0,0 +1,7 @@
|
||||
resource "aws_instance" "bar" {
|
||||
count = 2
|
||||
require_new = "xyz"
|
||||
lifecycle {
|
||||
create_before_destroy = true
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,3 @@
|
||||
resource "aws_instance" "foo" {
|
||||
lifecycle { create_before_destroy = true }
|
||||
}
|
||||
@ -0,0 +1,9 @@
|
||||
resource "null_resource" "foo" {
|
||||
count = 2
|
||||
|
||||
provisioner "local-exec" { command = "sleep ${count.index*3}" }
|
||||
|
||||
//provisioner "local-exec" { command = "exit 1" }
|
||||
|
||||
lifecycle { create_before_destroy = true }
|
||||
}
|
||||
@ -0,0 +1 @@
|
||||
Hello, World
|
||||
@ -0,0 +1,13 @@
|
||||
variable "username" {
|
||||
default = "bob"
|
||||
}
|
||||
|
||||
data "template_file" "user" {
|
||||
template = "$${USERNAME}"
|
||||
vars {
|
||||
USERNAME = "${var.username}"
|
||||
}
|
||||
provisioner "local-exec" {
|
||||
command = "echo ${self.rendered} > user.txt"
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,45 @@
|
||||
{
|
||||
"version": 3,
|
||||
"terraform_version": "0.7.2",
|
||||
"serial": 393,
|
||||
"lineage": "e8e8cc31-ebe6-4260-bb6a-eed53258cc08",
|
||||
"modules": [
|
||||
{
|
||||
"path": [
|
||||
"root"
|
||||
],
|
||||
"outputs": {},
|
||||
"resources": {
|
||||
"aws_route53_record.rslc-xxx-test-route53-record": {
|
||||
"type": "aws_route53_record",
|
||||
"depends_on": [
|
||||
],
|
||||
"primary": {
|
||||
"id": "ZKBENUPLDUDMJ_xxx-test.rslcare.com.au_A",
|
||||
"attributes": {
|
||||
"alias.#": "1",
|
||||
"alias.2624757427.evaluate_target_health": "false",
|
||||
"alias.2624757427.name": "awseb-e-3-AWSEBLoa-1OO1X7V7IRMMF-999999999.ap-southeast-2.elb.amazonaws.com.",
|
||||
"alias.2624757427.zone_id": "Z2999QAZ9SRTIC",
|
||||
"fqdn": "hws-test.rslcare.com.au",
|
||||
"health_check_id": "",
|
||||
"id": "ZKBENUPLDUDMJ_hws-test.rslcare.com.au_A",
|
||||
"name": "xxx-test.example.com",
|
||||
"records.#": "0",
|
||||
"set_identifier": "",
|
||||
"ttl": "0",
|
||||
"type": "A",
|
||||
"zone_id": "ZKBENUPLDUDMJ"
|
||||
},
|
||||
"meta": {
|
||||
"schema_version": "2"
|
||||
},
|
||||
"tainted": false
|
||||
},
|
||||
"deposed": [],
|
||||
"provider": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Reference in new issue