diff --git a/fixtures/example.tf b/fixtures/example.tf index 1a6c392..e4ffda7 100644 --- a/fixtures/example.tf +++ b/fixtures/example.tf @@ -29,6 +29,7 @@ resource "aws_instance" "web-aws" { subnet_id = "${var.aws_subnet_id}" associate_public_ip_address = true key_name = "terraform-inventory" + count = 2 root_block_device = { delete_on_termination = true } diff --git a/fixtures/example.tfstate b/fixtures/example.tfstate index 78b10c8..b14237e 100644 --- a/fixtures/example.tfstate +++ b/fixtures/example.tfstate @@ -8,7 +8,7 @@ ], "outputs": {}, "resources": { - "aws_instance.web-aws": { + "aws_instance.web-aws.0": { "type": "aws_instance", "primary": { "id": "i-e8f3a238", @@ -32,6 +32,45 @@ "root_block_device.0.volume_size": "8", "root_block_device.0.volume_type": "standard", "security_groups.#": "0", + "source_dest_check": "true", + "subnet_id": "subnet-59f9b32e", + "tags.#": "0", + "tenancy": "default", + "vpc_security_group_ids.#": "1", + "vpc_security_group_ids.2076429742": "sg-b42329d0" + }, + "meta": { + "schema_version": "1" + } + } + }, + "aws_instance.web-aws.1": { + "type": "aws_instance", + "primary": { + "id": "i-f747c141", + "attributes": { + "ami": "ami-96a818fe", + "associate_public_ip_address": "true", + "availability_zone": "us-east-1d", + "ebs_block_device.#": "0", + "ebs_optimized": "false", + "ephemeral_block_device.#": "0", + "iam_instance_profile": "", + "id": "i-f747c141", + "instance_type": "t2.micro", + "key_name": "terraform-inventory", + "monitoring": "false", + "private_dns": "ip-10-0-0-10.ec2.internal", + "private_ip": "10.0.0.10", + "public_dns": "", + "public_ip": "52.91.51.56", + "root_block_device.#": "1", + "root_block_device.0.delete_on_termination": "true", + "root_block_device.0.iops": "0", + "root_block_device.0.volume_size": "8", + "root_block_device.0.volume_type": "standard", + "security_groups.#": "0", + "source_dest_check": "true", "subnet_id": "subnet-59f9b32e", "tags.#": "0", "tenancy": "default",