Skip to content

Commit 196c9a6

Browse files
committed
Update example tfstate with count=n resource
1 parent 5178d30 commit 196c9a6

File tree

2 files changed

+41
-1
lines changed

2 files changed

+41
-1
lines changed

fixtures/example.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ resource "aws_instance" "web-aws" {
2929
subnet_id = "${var.aws_subnet_id}"
3030
associate_public_ip_address = true
3131
key_name = "terraform-inventory"
32+
count = 2
3233
root_block_device = {
3334
delete_on_termination = true
3435
}

fixtures/example.tfstate

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"outputs": {},
1010
"resources": {
11-
"aws_instance.web-aws": {
11+
"aws_instance.web-aws.0": {
1212
"type": "aws_instance",
1313
"primary": {
1414
"id": "i-e8f3a238",
@@ -32,6 +32,45 @@
3232
"root_block_device.0.volume_size": "8",
3333
"root_block_device.0.volume_type": "standard",
3434
"security_groups.#": "0",
35+
"source_dest_check": "true",
36+
"subnet_id": "subnet-59f9b32e",
37+
"tags.#": "0",
38+
"tenancy": "default",
39+
"vpc_security_group_ids.#": "1",
40+
"vpc_security_group_ids.2076429742": "sg-b42329d0"
41+
},
42+
"meta": {
43+
"schema_version": "1"
44+
}
45+
}
46+
},
47+
"aws_instance.web-aws.1": {
48+
"type": "aws_instance",
49+
"primary": {
50+
"id": "i-f747c141",
51+
"attributes": {
52+
"ami": "ami-96a818fe",
53+
"associate_public_ip_address": "true",
54+
"availability_zone": "us-east-1d",
55+
"ebs_block_device.#": "0",
56+
"ebs_optimized": "false",
57+
"ephemeral_block_device.#": "0",
58+
"iam_instance_profile": "",
59+
"id": "i-f747c141",
60+
"instance_type": "t2.micro",
61+
"key_name": "terraform-inventory",
62+
"monitoring": "false",
63+
"private_dns": "ip-10-0-0-10.ec2.internal",
64+
"private_ip": "10.0.0.10",
65+
"public_dns": "",
66+
"public_ip": "52.91.51.56",
67+
"root_block_device.#": "1",
68+
"root_block_device.0.delete_on_termination": "true",
69+
"root_block_device.0.iops": "0",
70+
"root_block_device.0.volume_size": "8",
71+
"root_block_device.0.volume_type": "standard",
72+
"security_groups.#": "0",
73+
"source_dest_check": "true",
3574
"subnet_id": "subnet-59f9b32e",
3675
"tags.#": "0",
3776
"tenancy": "default",

0 commit comments

Comments
 (0)