Terraform v0.11.2
+ provider.aws v1.8.0
aws_network_interface
resource "aws_network_interface" "privnic" {
private_ips_count = 3
...
Once the interface has been created, adding/increasing the private_ips_count parameter should cause the provider to allocate additional IP addresses to that ENI.
When trying to use the expected new IP (as ${aws_network_interface.privnic.private_ips[2]}) Terraform throws an error:
Error: Error asking for user input: 1 error(s) occurred:
* local.nsvars: local.nsvars: index 2 out of range for list aws_network_interface.privnic.private_ips (max 2) in:
${aws_network_interface.privnic.private_ips[2]}
The interface was originally created with private_ips_count = 2. This has now been increased to 3 and the new one cannot be used, as per the actual behavior section.
Interestingly after a little bit of playing it seems that _reducing_ the number of private IPs works, so this may just be a validation order issue?
I have uncovered some relevant additional details that may help uncover this issue.
tl;dr: It's definitely a bug. The problem occurs when going from private_ip_count = 0 (or not setting private_ip_count at all) to a higher number. If you start with 1 and go to 2 everything works as expected. However, if you try to go from 0 to 2 it will essentially noop, terraform believes it is successful and the state is updated. The value for private_ip_count is not refreshed on terraform refresh, so then will be forever out of sync with reality. If you then increase the count from your now out of sync 2 to 5, it will add 3 new IPs.
Start with Increase Reducing the count also works as expected: First, set Then try to go from 0 to, say, 2: However, if you increase the count _again_, it will increment the difference, although it will still be wrong:
Click here for the repro code and detailed output.
Code
$ cat main.tf
provider "aws" {
region = "us-west-2"
}
variable "ip_count" {}
resource "aws_network_interface" "foobar" {
subnet_id = "subnet-xxxxxxx"
security_groups = ["sg-xxxxxxx"]
private_ips_count = "${var.ip_count}"
}
output "eni_id" {
value = "${aws_network_interface.foobar.id}"
}
Normal working condition
private_ips_count=1 and you get what you expect (1 primary ip and 2 secondary ips)$ terraform apply -auto-approve -var ip_count=2
aws_network_interface.foobar: Creating...
attachment.#: "" => "<computed>"
private_dns_name: "" => "<computed>"
private_ip: "" => "<computed>"
private_ips.#: "" => "<computed>"
private_ips_count: "" => "2"
security_groups.#: "" => "1"
security_groups.1430684250: "" => "sg-xxxxxxx"
source_dest_check: "" => "true"
subnet_id: "" => "subnet-xxxxxxx"
aws_network_interface.foobar: Creation complete after 2s (ID: eni-xxxxxxxxxxx)
Apply complete! Resources: 1 added, 0 changed, 0 destroyed.
Outputs:
eni_id = eni-xxxxxxxxxxx
$ terraform state show aws_network_interface.foobar
id = eni-xxxxxxxxxxx
attachment.# = 0
description =
private_dns_name = ip-x-x-46-116.us-west-2.compute.internal
private_ip = x.x.46.116
private_ips.# = 3
private_ips.2548825064 = x.x.36.91
private_ips.2699598501 = x.x.46.116
private_ips.3002390640 = x.x.48.77
private_ips_count = 2
security_groups.# = 1
security_groups.1430684250 = sg-xxxxxxx
source_dest_check = true
subnet_id = subnet-xxxxxxx
tags.% = 0
$ aws ec2 describe-network-interfaces --network-interface-ids $(terraform output eni_id) \
| jq -r .NetworkInterfaces[].PrivateIpAddresses[].PrivateIpAddress
x.x.46.116
x.x.48.77
x.x.36.91
private_ips_count from 2 to 3 and it also works as expected:$ terraform apply -auto-approve -var ip_count=3
aws_network_interface.foobar: Refreshing state... (ID: eni-xxxxxxxxxxx)
aws_network_interface.foobar: Modifying... (ID: eni-xxxxxxxxxxx)
private_ips_count: "2" => "3"
aws_network_interface.foobar: Modifications complete after 1s (ID: eni-xxxxxxxxxxx)
Apply complete! Resources: 0 added, 1 changed, 0 destroyed.
Outputs:
eni_id = eni-xxxxxxxxxxx
$ terraform state show aws_network_interface.foobar
id = eni-xxxxxxxxxxx
attachment.# = 0
description =
private_dns_name = ip-x-x-46-116.us-west-2.compute.internal
private_ip = x.x.46.116
private_ips.# = 4
private_ips.1365711356 = x.x.52.175
private_ips.2548825064 = x.x.36.91
private_ips.2699598501 = x.x.46.116
private_ips.3002390640 = x.x.48.77
private_ips_count = 3
security_groups.# = 1
security_groups.1430684250 = sg-xxxxxxx
source_dest_check = true
subnet_id = subnet-xxxxxxx
tags.% = 0
$ aws ec2 describe-network-interfaces --network-interface-ids $(terraform output eni_id) \
| jq -r .NetworkInterfaces[].PrivateIpAddresses[].PrivateIpAddress
x.x.46.116
x.x.48.77
x.x.36.91
x.x.52.175
$ terraform apply -auto-approve -var ip_count=1
aws_network_interface.foobar: Refreshing state... (ID: eni-xxxxxxxxxxx)
aws_network_interface.foobar: Modifying... (ID: eni-xxxxxxxxxxx)
private_ips_count: "3" => "1"
aws_network_interface.foobar: Modifications complete after 0s (ID: eni-xxxxxxxxxxx)
Apply complete! Resources: 0 added, 1 changed, 0 destroyed.
Outputs:
eni_id = eni-xxxxxxxxxxx
$ terraform state show aws_network_interface.foobar
id = eni-xxxxxxxxxxx
attachment.# = 0
description =
private_dns_name = ip-x-x-46-116.us-west-2.compute.internal
private_ip = x.x.46.116
private_ips.# = 2
private_ips.2699598501 = x.x.46.116
private_ips.3002390640 = x.x.48.77
private_ips_count = 1
security_groups.# = 1
security_groups.1430684250 = sg-xxxxxxx
source_dest_check = true
subnet_id = subnet-xxxxxxx
tags.% = 0
$ aws ec2 describe-network-interfaces --network-interface-ids $(terraform output eni_id) \
| jq -r .NetworkInterfaces[].PrivateIpAddresses[].PrivateIpAddress
x.x.46.116
x.x.48.77
The problem
private_ips_count to 0 (or remove the argument from the resource entirely, which then defaults the value to 0):$ terraform apply -auto-approve -var ip_count=0
aws_network_interface.foobar: Refreshing state... (ID: eni-xxxxxxxxxxx)
aws_network_interface.foobar: Modifying... (ID: eni-xxxxxxxxxxx)
private_ips_count: "1" => "0"
aws_network_interface.foobar: Modifications complete after 0s (ID: eni-xxxxxxxxxxx)
Apply complete! Resources: 0 added, 1 changed, 0 destroyed.
Outputs:
eni_id = eni-xxxxxxxxxxx
$ terraform state show aws_network_interface.foobar
id = eni-xxxxxxxxxxx
attachment.# = 0
description =
private_dns_name = ip-x-x-46-116.us-west-2.compute.internal
private_ip = x.x.46.116
private_ips.# = 1
private_ips.2699598501 = x.x.46.116
private_ips_count = 0
security_groups.# = 1
security_groups.1430684250 = sg-xxxxxxx
source_dest_check = true
subnet_id = subnet-xxxxxxx
tags.% = 0
$ aws ec2 describe-network-interfaces --network-interface-ids $(terraform output eni_id) \
| jq -r .NetworkInterfaces[].PrivateIpAddresses[].PrivateIpAddress
x.x.46.116
$ terraform apply -auto-approve -var ip_count=2
aws_network_interface.foobar: Refreshing state... (ID: eni-xxxxxxxxxxx)
aws_network_interface.foobar: Modifying... (ID: eni-xxxxxxxxxxx)
private_ips_count: "0" => "2"
aws_network_interface.foobar: Modifications complete after 1s (ID: eni-xxxxxxxxxxx)
Apply complete! Resources: 0 added, 1 changed, 0 destroyed.
Outputs:
eni_id = eni-xxxxxxxxxxx
$ terraform state show aws_network_interface.foobar
id = eni-xxxxxxxxxxx
attachment.# = 0
description =
private_dns_name = ip-x-x-46-116.us-west-2.compute.internal
private_ip = x.x.46.116
private_ips.# = 1 # <----------- no change
private_ips.2699598501 = x.x.46.116
private_ips_count = 2 # <----------- thinks it changed
security_groups.# = 1
security_groups.1430684250 = sg-xxxxxxx
source_dest_check = true
subnet_id = subnet-xxxxxxx
tags.% = 0
$ aws ec2 describe-network-interfaces --network-interface-ids $(terraform output eni_id) \
| jq -r .NetworkInterfaces[].PrivateIpAddresses[].PrivateIpAddress
x.x.46.116 # <------- confirmed no changes occurred
private_ips_count remains incorrect in state, since it's not a value that's refreshed on terraform refresh.$ terraform apply -auto-approve -var ip_count=4
aws_network_interface.foobar: Refreshing state... (ID: eni-xxxxxxxxxxx)
aws_network_interface.foobar: Modifying... (ID: eni-xxxxxxxxxxx)
private_ips_count: "2" => "4"
aws_network_interface.foobar: Modifications complete after 1s (ID: eni-xxxxxxxxxxx)
Apply complete! Resources: 0 added, 1 changed, 0 destroyed.
Outputs:
eni_id = eni-xxxxxxxxxxx
$ terraform state show aws_network_interface.foobar
id = eni-xxxxxxxxxxx
attachment.# = 0
description =
private_dns_name = ip-x-x-46-116.us-west-2.compute.internal
private_ip = x.x.46.116
private_ips.# = 3 # <-------- increased by 2
private_ips.2699598501 = x.x.46.116
private_ips.3376626775 = x.x.44.157
private_ips.3456854266 = x.x.57.80
private_ips_count = 4 # <-------- but should have increased by this number
security_groups.# = 1
security_groups.1430684250 = sg-xxxxxxx
source_dest_check = true
subnet_id = subnet-xxxxxxx
tags.% = 0
$ aws ec2 describe-network-interfaces --network-interface-ids $(terraform output eni_id) \
| jq -r .NetworkInterfaces[].PrivateIpAddresses[].PrivateIpAddress
x.x.46.116
x.x.57.80
x.x.44.157
Click here for the debug output of
apply from 0 to 2
2018/06/01 00:21:26 [INFO] Terraform version: 0.11.7 41e50bd32a8825a84535e353c3674af8ce799161
2018/06/01 00:21:26 [INFO] Go runtime version: go1.10.1
2018/06/01 00:21:26 [INFO] CLI args: []string{"/usr/local/bin/terraform", "apply", "-auto-approve", "-var", "ip_count=2"}
2018/06/01 00:21:26 [DEBUG] Attempting to open CLI config file: /root/.terraformrc
2018/06/01 00:21:26 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2018/06/01 00:21:26 [INFO] CLI command args: []string{"apply", "-auto-approve", "-var", "ip_count=2"}
2018/06/01 00:21:26 [INFO] command: empty terraform config, returning nil
2018/06/01 00:21:26 [DEBUG] command: no data state file found for backend config
2018/06/01 00:21:26 [DEBUG] New state was assigned lineage "8f89cfab-f009-72ea-f99a-489cb0b493ee"
2018/06/01 00:21:26 [INFO] command: backend initialized: <nil>
2018/06/01 00:21:26 [DEBUG] checking for provider in "."
2018/06/01 00:21:26 [DEBUG] checking for provider in "/usr/local/bin"
2018/06/01 00:21:26 [DEBUG] checking for provider in ".terraform/plugins/linux_amd64"
2018/06/01 00:21:26 [DEBUG] found provider "terraform-provider-aws_v1.21.0_x4"
2018/06/01 00:21:26 [DEBUG] found valid plugin: "aws", "1.21.0", "/pwd/.terraform/plugins/linux_amd64/terraform-provider-aws_v1.21.0_x4"
2018/06/01 00:21:26 [DEBUG] checking for provisioner in "."
2018/06/01 00:21:26 [DEBUG] checking for provisioner in "/usr/local/bin"
2018/06/01 00:21:26 [DEBUG] checking for provisioner in ".terraform/plugins/linux_amd64"
2018/06/01 00:21:26 [INFO] command: backend <nil> is not enhanced, wrapping in local
2018/06/01 00:21:26 [INFO] backend/local: starting Apply operation
2018/06/01 00:21:27 [INFO] terraform: building graph: GraphTypeInput
2018/06/01 00:21:27 [DEBUG] Attaching resource state to "aws_network_interface.foobar": &terraform.ResourceState{Type:"aws_network_interface", Dependencies:[]string{}, Primary:(*terraform.InstanceState)(0xc42009f810), Deposed:[]*terraform.InstanceState{}, Provider:"provider.aws", mu:sync.Mutex{state:0, sema:0x0}}
2018/06/01 00:21:27 [TRACE] Graph after step *terraform.AttachStateTransformer:
aws_network_interface.foobar - *terraform.NodeAbstractResource
output.eni_id - *terraform.NodeApplyableOutput
2018/06/01 00:21:27 [DEBUG] ReferenceTransformer: "output.eni_id" references: [aws_network_interface.foobar]
2018/06/01 00:21:27 [DEBUG] ReferenceTransformer: "var.ip_count" references: []
2018/06/01 00:21:27 [DEBUG] ReferenceTransformer: "provider.aws" references: []
2018/06/01 00:21:27 [DEBUG] ReferenceTransformer: "aws_network_interface.foobar" references: [var.ip_count]
2018/06/01 00:21:27 [DEBUG] Starting graph walk: walkInput
2018-06-01T00:21:27.969Z [DEBUG] plugin: waiting for RPC address: path=/pwd/.terraform/plugins/linux_amd64/terraform-provider-aws_v1.21.0_x4
2018-06-01T00:21:28.241Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: plugin address: timestamp=2018-06-01T00:21:28.241Z network=unix address=/tmp/plugin406384678
2018/06/01 00:21:28 [INFO] terraform: building graph: GraphTypeValidate
2018/06/01 00:21:28 [DEBUG] Attaching resource state to "aws_network_interface.foobar": &terraform.ResourceState{Type:"aws_network_interface", Dependencies:[]string{}, Primary:(*terraform.InstanceState)(0xc42009f810), Deposed:[]*terraform.InstanceState{}, Provider:"provider.aws", mu:sync.Mutex{state:0, sema:0x0}}
2018/06/01 00:21:28 [DEBUG] resource aws_network_interface.foobar using provider provider.aws
2018/06/01 00:21:28 [DEBUG] ReferenceTransformer: "aws_network_interface.foobar" references: [var.ip_count]
2018/06/01 00:21:28 [DEBUG] ReferenceTransformer: "output.eni_id" references: [aws_network_interface.foobar]
2018/06/01 00:21:28 [DEBUG] ReferenceTransformer: "var.ip_count" references: []
2018/06/01 00:21:28 [DEBUG] ReferenceTransformer: "provider.aws" references: []
2018/06/01 00:21:28 [DEBUG] Attaching resource state to "aws_network_interface.foobar": &terraform.ResourceState{Type:"aws_network_interface", Dependencies:[]string{}, Primary:(*terraform.InstanceState)(0xc42009f810), Deposed:[]*terraform.InstanceState{}, Provider:"provider.aws", mu:sync.Mutex{state:0, sema:0x0}}
2018/06/01 00:21:28 [INFO] backend/local: apply calling Refresh
2018/06/01 00:21:28 [INFO] terraform: building graph: GraphTypeRefresh
2018/06/01 00:21:28 [DEBUG] Attaching resource state to "aws_network_interface.foobar": &terraform.ResourceState{Type:"aws_network_interface", Dependencies:[]string{}, Primary:(*terraform.InstanceState)(0xc420039a40), Deposed:[]*terraform.InstanceState{}, Provider:"provider.aws", mu:sync.Mutex{state:0, sema:0x0}}
2018/06/01 00:21:28 [TRACE] Graph after step *terraform.AttachStateTransformer:
aws_network_interface.foobar - *terraform.NodeRefreshableManagedResource
2018/06/01 00:21:28 [DEBUG] resource aws_network_interface.foobar using provider provider.aws
2018/06/01 00:21:28 [DEBUG] ReferenceTransformer: "aws_network_interface.foobar" references: [var.ip_count]
2018/06/01 00:21:28 [DEBUG] ReferenceTransformer: "var.ip_count" references: []
2018/06/01 00:21:28 [DEBUG] ReferenceTransformer: "provider.aws" references: []
2018/06/01 00:21:28 [DEBUG] ReferenceTransformer: "output.eni_id" references: [aws_network_interface.foobar]
2018/06/01 00:21:28 [DEBUG] Starting graph walk: walkRefresh
2018-06-01T00:21:28.536Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:28 [INFO] No assume_role block read from configuration
2018-06-01T00:21:28.536Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:28 [INFO] Building AWS region structure
2018-06-01T00:21:28.537Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:28 [INFO] Building AWS auth structure
2018-06-01T00:21:28.538Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:28 [INFO] Setting AWS metadata API timeout to 100ms
2018-06-01T00:21:29.189Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:29 [INFO] Ignoring AWS metadata API endpoint at default location as it doesn't return any instance-id
2018-06-01T00:21:29.189Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:29 [INFO] AWS Auth provider used: "SharedCredentialsProvider"
2018-06-01T00:21:29.190Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:29 [INFO] Initializing DeviceFarm SDK connection
2018-06-01T00:21:29.195Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:29 [DEBUG] [aws-sdk-go] DEBUG: Request sts/GetCallerIdentity Details:
2018-06-01T00:21:29.195Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: ---[ REQUEST POST-SIGN ]-----------------------------
2018-06-01T00:21:29.195Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: POST / HTTP/1.1
2018-06-01T00:21:29.195Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Host: sts.amazonaws.com
2018-06-01T00:21:29.195Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: User-Agent: aws-sdk-go/1.13.57 (go1.9.2; linux; amd64) APN/1.0 HashiCorp/1.0 Terraform/0.11.7
2018-06-01T00:21:29.195Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Content-Length: 43
2018-06-01T00:21:29.195Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Authorization: AWS4-HMAC-SHA256 Credential=xxxxxxxx/20180601/us-east-1/sts/aws4_request, SignedHeaders=content-length;content-type;host;x-amz-date;x-amz-security-token, Signature=xxxxxxxxxxxx
2018-06-01T00:21:29.195Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Content-Type: application/x-www-form-urlencoded; charset=utf-8
2018-06-01T00:21:29.195Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: X-Amz-Date: 20180601T002129Z
2018-06-01T00:21:29.196Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: X-Amz-Security-Token: xxxxxxxx
2018-06-01T00:21:29.196Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Accept-Encoding: gzip
2018-06-01T00:21:29.196Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4:
2018-06-01T00:21:29.196Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Action=GetCallerIdentity&Version=2011-06-15
2018-06-01T00:21:29.196Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: -----------------------------------------------------
2018-06-01T00:21:29.847Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:29 [DEBUG] [aws-sdk-go] DEBUG: Response sts/GetCallerIdentity Details:
2018-06-01T00:21:29.847Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: ---[ RESPONSE ]--------------------------------------
2018-06-01T00:21:29.847Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: HTTP/1.1 200 OK
2018-06-01T00:21:29.847Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Connection: close
2018-06-01T00:21:29.847Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Content-Length: 499
2018-06-01T00:21:29.847Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Content-Type: text/xml
2018-06-01T00:21:29.847Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Date: Fri, 01 Jun 2018 00:21:29 GMT
2018-06-01T00:21:29.847Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: X-Amzn-Requestid: bada4721-6531-11e8-a1de-af57617bf379
2018-06-01T00:21:29.847Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4:
2018-06-01T00:21:29.848Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4:
2018-06-01T00:21:29.848Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: -----------------------------------------------------
2018-06-01T00:21:29.849Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:29 [DEBUG] [aws-sdk-go] <GetCallerIdentityResponse xmlns="https://sts.amazonaws.com/doc/2011-06-15/">
2018-06-01T00:21:29.849Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <GetCallerIdentityResult>
2018-06-01T00:21:29.849Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <Arn>arn:aws:sts::xxxxxxxxxxxx:assumed-role/xxxxrolenamexxxx/xxxxxx@xxxxxxxx,xxxxrolenamexxxx</Arn>
2018-06-01T00:21:29.849Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <UserId>xxxxxxxxxxxxx:xxxxxx@xxxxxxxx,xxxxrolenamexxxx</UserId>
2018-06-01T00:21:29.849Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <Account>xxxxxxxxxxxx</Account>
2018-06-01T00:21:29.849Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: </GetCallerIdentityResult>
2018-06-01T00:21:29.850Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <ResponseMetadata>
2018-06-01T00:21:29.850Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <RequestId>bada4721-6531-11e8-a1de-af57617bf379</RequestId>
2018-06-01T00:21:29.850Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: </ResponseMetadata>
2018-06-01T00:21:29.850Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: </GetCallerIdentityResponse>
2018-06-01T00:21:29.850Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:29 [DEBUG] Trying to get account ID via iam:GetUser
2018-06-01T00:21:29.855Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:29 [DEBUG] [aws-sdk-go] DEBUG: Request iam/GetUser Details:
2018-06-01T00:21:29.855Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: ---[ REQUEST POST-SIGN ]-----------------------------
2018-06-01T00:21:29.855Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: POST / HTTP/1.1
2018-06-01T00:21:29.855Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Host: iam.amazonaws.com
2018-06-01T00:21:29.855Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: User-Agent: aws-sdk-go/1.13.57 (go1.9.2; linux; amd64) APN/1.0 HashiCorp/1.0 Terraform/0.11.7
2018-06-01T00:21:29.855Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Content-Length: 33
2018-06-01T00:21:29.855Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Authorization: AWS4-HMAC-SHA256 Credential=xxxxxxxx/20180601/us-east-1/iam/aws4_request, SignedHeaders=content-length;content-type;host;x-amz-date;x-amz-security-token, Signature=xxxxxxxxxxxx
2018-06-01T00:21:29.855Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Content-Type: application/x-www-form-urlencoded; charset=utf-8
2018-06-01T00:21:29.855Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: X-Amz-Date: 20180601T002129Z
2018-06-01T00:21:29.855Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: X-Amz-Security-Token: xxxxxxxx
2018-06-01T00:21:29.855Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Accept-Encoding: gzip
2018-06-01T00:21:29.855Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4:
2018-06-01T00:21:29.855Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Action=GetUser&Version=2010-05-08
2018-06-01T00:21:29.855Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: -----------------------------------------------------
2018-06-01T00:21:30.633Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:30 [DEBUG] [aws-sdk-go] DEBUG: Response iam/GetUser Details:
2018-06-01T00:21:30.633Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: ---[ RESPONSE ]--------------------------------------
2018-06-01T00:21:30.633Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: HTTP/1.1 400 Bad Request
2018-06-01T00:21:30.633Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Connection: close
2018-06-01T00:21:30.633Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Content-Length: 307
2018-06-01T00:21:30.633Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Content-Type: text/xml
2018-06-01T00:21:30.633Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Date: Fri, 01 Jun 2018 00:21:30 GMT
2018-06-01T00:21:30.633Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: X-Amzn-Requestid: bb476083-6531-11e8-aeca-27ae8882579a
2018-06-01T00:21:30.634Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4:
2018-06-01T00:21:30.634Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4:
2018-06-01T00:21:30.634Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: -----------------------------------------------------
2018-06-01T00:21:30.635Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:30 [DEBUG] [aws-sdk-go] <ErrorResponse xmlns="https://iam.amazonaws.com/doc/2010-05-08/">
2018-06-01T00:21:30.635Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <Error>
2018-06-01T00:21:30.635Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <Type>Sender</Type>
2018-06-01T00:21:30.635Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <Code>ValidationError</Code>
2018-06-01T00:21:30.637Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <Message>Must specify userName when calling with non-User credentials</Message>
2018-06-01T00:21:30.637Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: </Error>
2018-06-01T00:21:30.637Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <RequestId>bb476083-6531-11e8-aeca-27ae8882579a</RequestId>
2018-06-01T00:21:30.637Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: </ErrorResponse>
2018-06-01T00:21:30.637Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:30 [DEBUG] [aws-sdk-go] DEBUG: Validate Response iam/GetUser failed, not retrying, error ValidationError: Must specify userName when calling with non-User credentials
2018-06-01T00:21:30.637Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: status code: 400, request id: bb476083-6531-11e8-aeca-27ae8882579a
2018-06-01T00:21:30.637Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:30 [DEBUG] Getting account ID via iam:GetUser failed: ValidationError: Must specify userName when calling with non-User credentials
2018-06-01T00:21:30.638Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: status code: 400, request id: bb476083-6531-11e8-aeca-27ae8882579a
2018-06-01T00:21:30.638Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:30 [DEBUG] Trying to get account ID via sts:GetCallerIdentity
2018-06-01T00:21:30.639Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:30 [DEBUG] [aws-sdk-go] DEBUG: Request sts/GetCallerIdentity Details:
2018-06-01T00:21:30.639Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: ---[ REQUEST POST-SIGN ]-----------------------------
2018-06-01T00:21:30.639Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: POST / HTTP/1.1
2018-06-01T00:21:30.639Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Host: sts.amazonaws.com
2018-06-01T00:21:30.639Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: User-Agent: aws-sdk-go/1.13.57 (go1.9.2; linux; amd64) APN/1.0 HashiCorp/1.0 Terraform/0.11.7
2018-06-01T00:21:30.639Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Content-Length: 43
2018-06-01T00:21:30.639Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Authorization: AWS4-HMAC-SHA256 Credential=xxxxxxxx/20180601/us-east-1/sts/aws4_request, SignedHeaders=content-length;content-type;host;x-amz-date;x-amz-security-token, Signature=xxxxxxxxxxxx
2018-06-01T00:21:30.639Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Content-Type: application/x-www-form-urlencoded; charset=utf-8
2018-06-01T00:21:30.640Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: X-Amz-Date: 20180601T002130Z
2018-06-01T00:21:30.640Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: X-Amz-Security-Token: xxxxxxxx
2018-06-01T00:21:30.640Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Accept-Encoding: gzip
2018-06-01T00:21:30.640Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4:
2018-06-01T00:21:30.640Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Action=GetCallerIdentity&Version=2011-06-15
2018-06-01T00:21:30.641Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: -----------------------------------------------------
2018-06-01T00:21:31.168Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:31 [DEBUG] [aws-sdk-go] DEBUG: Response sts/GetCallerIdentity Details:
2018-06-01T00:21:31.168Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: ---[ RESPONSE ]--------------------------------------
2018-06-01T00:21:31.169Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: HTTP/1.1 200 OK
2018-06-01T00:21:31.169Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Connection: close
2018-06-01T00:21:31.169Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Content-Length: 499
2018-06-01T00:21:31.169Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Content-Type: text/xml
2018-06-01T00:21:31.169Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Date: Fri, 01 Jun 2018 00:21:30 GMT
2018-06-01T00:21:31.169Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: X-Amzn-Requestid: bba73415-6531-11e8-a1de-af57617bf379
2018-06-01T00:21:31.169Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4:
2018-06-01T00:21:31.169Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4:
2018-06-01T00:21:31.169Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: -----------------------------------------------------
2018-06-01T00:21:31.169Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:31 [DEBUG] [aws-sdk-go] <GetCallerIdentityResponse xmlns="https://sts.amazonaws.com/doc/2011-06-15/">
2018-06-01T00:21:31.169Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <GetCallerIdentityResult>
2018-06-01T00:21:31.169Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <Arn>arn:aws:sts::xxxxxxxxxxxx:assumed-role/xxxxrolenamexxxx/xxxxxx@xxxxxxxx,xxxxrolenamexxxx</Arn>
2018-06-01T00:21:31.169Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <UserId>xxxxxxxxxxxxx:xxxxxx@xxxxxxxx,xxxxrolenamexxxx</UserId>
2018-06-01T00:21:31.169Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <Account>xxxxxxxxxxxx</Account>
2018-06-01T00:21:31.169Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: </GetCallerIdentityResult>
2018-06-01T00:21:31.169Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <ResponseMetadata>
2018-06-01T00:21:31.169Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <RequestId>bba73415-6531-11e8-a1de-af57617bf379</RequestId>
2018-06-01T00:21:31.169Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: </ResponseMetadata>
2018-06-01T00:21:31.169Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: </GetCallerIdentityResponse>
2018-06-01T00:21:31.177Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:31 [DEBUG] [aws-sdk-go] DEBUG: Request ec2/DescribeAccountAttributes Details:
2018-06-01T00:21:31.177Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: ---[ REQUEST POST-SIGN ]-----------------------------
2018-06-01T00:21:31.178Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: POST / HTTP/1.1
2018-06-01T00:21:31.178Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Host: ec2.us-west-2.amazonaws.com
2018-06-01T00:21:31.178Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: User-Agent: aws-sdk-go/1.13.57 (go1.9.2; linux; amd64) APN/1.0 HashiCorp/1.0 Terraform/0.11.7
2018-06-01T00:21:31.178Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Content-Length: 87
2018-06-01T00:21:31.178Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Authorization: AWS4-HMAC-SHA256 Credential=xxxxxxxx/20180601/us-west-2/ec2/aws4_request, SignedHeaders=content-length;content-type;host;x-amz-date;x-amz-security-token, Signature=xxxxxxxxxxxx
2018-06-01T00:21:31.178Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Content-Type: application/x-www-form-urlencoded; charset=utf-8
2018-06-01T00:21:31.178Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: X-Amz-Date: 20180601T002131Z
2018-06-01T00:21:31.178Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: X-Amz-Security-Token: xxxxxxxx
2018-06-01T00:21:31.179Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Accept-Encoding: gzip
2018-06-01T00:21:31.179Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4:
2018-06-01T00:21:31.179Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Action=DescribeAccountAttributes&AttributeName.1=supported-platforms&Version=2016-11-15
2018-06-01T00:21:31.179Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: -----------------------------------------------------
2018-06-01T00:21:32.060Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:32 [DEBUG] [aws-sdk-go] DEBUG: Response ec2/DescribeAccountAttributes Details:
2018-06-01T00:21:32.060Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: ---[ RESPONSE ]--------------------------------------
2018-06-01T00:21:32.060Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: HTTP/1.1 200 OK
2018-06-01T00:21:32.060Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Connection: close
2018-06-01T00:21:32.060Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Transfer-Encoding: chunked
2018-06-01T00:21:32.060Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Content-Type: text/xml;charset=UTF-8
2018-06-01T00:21:32.060Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Date: Fri, 01 Jun 2018 00:21:31 GMT
2018-06-01T00:21:32.060Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Server: AmazonEC2
2018-06-01T00:21:32.060Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Vary: Accept-Encoding
2018-06-01T00:21:32.060Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4:
2018-06-01T00:21:32.060Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4:
2018-06-01T00:21:32.060Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: -----------------------------------------------------
2018-06-01T00:21:32.060Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:32 [DEBUG] [aws-sdk-go] <?xml version="1.0" encoding="UTF-8"?>
2018-06-01T00:21:32.061Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <DescribeAccountAttributesResponse xmlns="http://ec2.amazonaws.com/doc/2016-11-15/">
2018-06-01T00:21:32.061Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <requestId>e04316ec-f96a-4707-9560-e647f1ac33cd</requestId>
2018-06-01T00:21:32.061Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <accountAttributeSet>
2018-06-01T00:21:32.061Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <item>
2018-06-01T00:21:32.061Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <attributeName>supported-platforms</attributeName>
2018-06-01T00:21:32.061Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <attributeValueSet>
2018-06-01T00:21:32.061Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <item>
2018-06-01T00:21:32.061Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <attributeValue>VPC</attributeValue>
2018-06-01T00:21:32.061Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: </item>
2018-06-01T00:21:32.061Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: </attributeValueSet>
2018-06-01T00:21:32.061Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: </item>
2018-06-01T00:21:32.061Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: </accountAttributeSet>
2018-06-01T00:21:32.061Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: </DescribeAccountAttributesResponse>
ourceInstance
2018/06/01 00:21:32 [DEBUG] ReferenceTransformer: "aws_network_interface.foobar" references: []
2018/06/01 00:21:32 [TRACE] Graph after step *terraform.ReferenceTransformer:
aws_network_interface.foobar - *terraform.NodeRefreshableManagedResourceInstance
2018/06/01 00:21:32 [TRACE] Graph after step *terraform.RootTransformer:
aws_network_interface.foobar - *terraform.NodeRefreshableManagedResourceInstance
2018/06/01 00:21:32 [TRACE] dag/walk: added new vertex: "aws_network_interface.foobar"
2018/06/01 00:21:32 [TRACE] dag/walk: walking "aws_network_interface.foobar"
2018/06/01 00:21:32 [TRACE] vertex 'root.aws_network_interface.foobar': walking
2018/06/01 00:21:32 [TRACE] vertex 'root.aws_network_interface.foobar': evaluating
2018/06/01 00:21:32 [TRACE] [walkRefresh] Entering eval tree: aws_network_interface.foobar
2018/06/01 00:21:32 [TRACE] root: eval: *terraform.EvalSequence
2018/06/01 00:21:32 [TRACE] root: eval: *terraform.EvalGetProvider
2018/06/01 00:21:32 [TRACE] root: eval: *terraform.EvalReadState
2018/06/01 00:21:32 [TRACE] root: eval: *terraform.EvalRefresh
2018-06-01T00:21:32.079Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:32 [DEBUG] [aws-sdk-go] DEBUG: Request ec2/DescribeNetworkInterfaces Details:
2018-06-01T00:21:32.079Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: ---[ REQUEST POST-SIGN ]-----------------------------
2018-06-01T00:21:32.079Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: POST / HTTP/1.1
2018-06-01T00:21:32.079Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Host: ec2.us-west-2.amazonaws.com
2018-06-01T00:21:32.080Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: User-Agent: aws-sdk-go/1.13.57 (go1.9.2; linux; amd64) APN/1.0 HashiCorp/1.0 Terraform/0.11.7
2018-06-01T00:21:32.080Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Content-Length: 94
2018-06-01T00:21:32.080Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Authorization: AWS4-HMAC-SHA256 Credential=xxxxxxxx/20180601/us-west-2/ec2/aws4_request, SignedHeaders=content-length;content-type;host;x-amz-date;x-amz-security-token, Signature=xxxxxxxxxxxx
2018-06-01T00:21:32.080Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Content-Type: application/x-www-form-urlencoded; charset=utf-8
2018-06-01T00:21:32.081Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: X-Amz-Date: 20180601T002132Z
2018-06-01T00:21:32.081Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: X-Amz-Security-Token: xxxxxxxx
2018-06-01T00:21:32.081Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Accept-Encoding: gzip
2018-06-01T00:21:32.082Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4:
2018-06-01T00:21:32.082Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Action=DescribeNetworkInterfaces&NetworkInterfaceId.1=eni-xxxxxxxx&Version=2016-11-15
2018-06-01T00:21:32.082Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: -----------------------------------------------------
2018-06-01T00:21:32.244Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:32 [DEBUG] [aws-sdk-go] DEBUG: Response ec2/DescribeNetworkInterfaces Details:
2018-06-01T00:21:32.244Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: ---[ RESPONSE ]--------------------------------------
2018-06-01T00:21:32.244Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: HTTP/1.1 200 OK
2018-06-01T00:21:32.244Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Connection: close
2018-06-01T00:21:32.244Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Transfer-Encoding: chunked
2018-06-01T00:21:32.244Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Content-Type: text/xml;charset=UTF-8
2018-06-01T00:21:32.244Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Date: Fri, 01 Jun 2018 00:21:31 GMT
2018-06-01T00:21:32.244Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Server: AmazonEC2
2018-06-01T00:21:32.244Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Vary: Accept-Encoding
2018-06-01T00:21:32.244Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4:
2018-06-01T00:21:32.244Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4:
2018-06-01T00:21:32.245Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: -----------------------------------------------------
2018-06-01T00:21:32.245Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:32 [DEBUG] [aws-sdk-go] <?xml version="1.0" encoding="UTF-8"?>
2018-06-01T00:21:32.246Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <DescribeNetworkInterfacesResponse xmlns="http://ec2.amazonaws.com/doc/2016-11-15/">
2018-06-01T00:21:32.246Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <requestId>5366ee33-7701-457b-a927-303b702ff867</requestId>
2018-06-01T00:21:32.246Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <networkInterfaceSet>
2018-06-01T00:21:32.246Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <item>
2018-06-01T00:21:32.246Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <networkInterfaceId>eni-xxxxxxxx</networkInterfaceId>
2018-06-01T00:21:32.246Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <subnetId>subnet-xxxxxx</subnetId>
2018-06-01T00:21:32.246Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <vpcId>vpc-xxxxxx</vpcId>
2018-06-01T00:21:32.246Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <availabilityZone>us-west-2a</availabilityZone>
2018-06-01T00:21:32.246Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <description/>
2018-06-01T00:21:32.246Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <ownerId>xxxxxxxxxxxx</ownerId>
2018-06-01T00:21:32.246Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <requesterId>xxxxxxxxxxxxx:xxxxxx@xxxxxxxx,xxxxrolenamexxxx</requesterId>
2018-06-01T00:21:32.246Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <requesterManaged>false</requesterManaged>
2018-06-01T00:21:32.246Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <status>available</status>
2018-06-01T00:21:32.246Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <macAddress>06:1e:c4:2b:xx:xx</macAddress>
2018-06-01T00:21:32.246Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <privateIpAddress>x.x.46.73</privateIpAddress>
2018-06-01T00:21:32.246Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <privateDnsName>ip-x-x-46-73.us-west-2.compute.internal</privateDnsName>
2018-06-01T00:21:32.246Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <sourceDestCheck>true</sourceDestCheck>
2018-06-01T00:21:32.246Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <groupSet>
2018-06-01T00:21:32.247Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <item>
2018-06-01T00:21:32.247Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <groupId>sg-ea399290</groupId>
2018-06-01T00:21:32.247Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <groupName>default</groupName>
2018-06-01T00:21:32.247Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: </item>
2018-06-01T00:21:32.247Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: </groupSet>
2018-06-01T00:21:32.247Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <tagSet/>
2018-06-01T00:21:32.247Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <privateIpAddressesSet>
2018-06-01T00:21:32.247Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <item>
2018-06-01T00:21:32.247Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <privateIpAddress>x.x.46.73</privateIpAddress>
2018-06-01T00:21:32.247Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <privateDnsName>ip-x-x-46-73.us-west-2.compute.internal</privateDnsName>
2018-06-01T00:21:32.247Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <primary>true</primary>
2018-06-01T00:21:32.247Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: </item>
2018-06-01T00:21:32.247Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: </privateIpAddressesSet>
2018-06-01T00:21:32.248Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <ipv6AddressesSet/>
2018-06-01T00:21:32.248Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <interfaceType>interface</interfaceType>
2018-06-01T00:21:32.248Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: </item>
2018-06-01T00:21:32.248Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: </networkInterfaceSet>
2018-06-01T00:21:32.248Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: </DescribeNetworkInterfacesResponse>
2018/06/01 00:21:32 [DEBUG] ReferenceTransformer: "provider.aws" references: []
2018/06/01 00:21:32 [DEBUG] Starting graph walk: walkPlan
2018-06-01T00:21:32.282Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:32 [INFO] No assume_role block read from configuration
2018-06-01T00:21:32.283Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:32 [INFO] Building AWS region structure
2018-06-01T00:21:32.283Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:32 [INFO] Building AWS auth structure
2018-06-01T00:21:32.283Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:32 [INFO] Setting AWS metadata API timeout to 100ms
2018-06-01T00:21:32.599Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:32 [INFO] Ignoring AWS metadata API endpoint at default location as it doesn't return any instance-id
2018-06-01T00:21:32.599Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:32 [INFO] AWS Auth provider used: "SharedCredentialsProvider"
2018-06-01T00:21:32.599Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:32 [INFO] Initializing DeviceFarm SDK connection
2018-06-01T00:21:32.600Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:32 [DEBUG] [aws-sdk-go] DEBUG: Request sts/GetCallerIdentity Details:
2018-06-01T00:21:32.600Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: ---[ REQUEST POST-SIGN ]-----------------------------
2018-06-01T00:21:32.600Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: POST / HTTP/1.1
2018-06-01T00:21:32.600Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Host: sts.amazonaws.com
2018-06-01T00:21:32.601Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: User-Agent: aws-sdk-go/1.13.57 (go1.9.2; linux; amd64) APN/1.0 HashiCorp/1.0 Terraform/0.11.7
2018-06-01T00:21:32.601Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Content-Length: 43
2018-06-01T00:21:32.601Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Authorization: AWS4-HMAC-SHA256 Credential=xxxxxxxx/20180601/us-east-1/sts/aws4_request, SignedHeaders=content-length;content-type;host;x-amz-date;x-amz-security-token, Signature=xxxxxxxxxxxx
2018-06-01T00:21:32.601Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Content-Type: application/x-www-form-urlencoded; charset=utf-8
2018-06-01T00:21:32.601Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: X-Amz-Date: 20180601T002132Z
2018-06-01T00:21:32.601Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: X-Amz-Security-Token: xxxxxxxx
2018-06-01T00:21:32.601Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Accept-Encoding: gzip
2018-06-01T00:21:32.601Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4:
2018-06-01T00:21:32.601Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Action=GetCallerIdentity&Version=2011-06-15
2018-06-01T00:21:32.601Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: -----------------------------------------------------
2018-06-01T00:21:42.848Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:42 [DEBUG] [aws-sdk-go] DEBUG: Send Request sts/GetCallerIdentity failed, will retry, error RequestError: send request failed
2018-06-01T00:21:42.848Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: caused by: Post https://sts.amazonaws.com/: net/http: TLS handshake timeout
2018-06-01T00:21:42.848Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:42 [DEBUG] [aws-sdk-go] DEBUG: Retrying Request sts/GetCallerIdentity, attempt 1
2018-06-01T00:21:42.848Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:42 [DEBUG] [aws-sdk-go] DEBUG: Request sts/GetCallerIdentity Details:
2018-06-01T00:21:42.848Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: ---[ REQUEST POST-SIGN ]-----------------------------
2018-06-01T00:21:42.848Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: POST / HTTP/1.1
2018-06-01T00:21:42.848Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Host: sts.amazonaws.com
2018-06-01T00:21:42.848Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: User-Agent: aws-sdk-go/1.13.57 (go1.9.2; linux; amd64) APN/1.0 HashiCorp/1.0 Terraform/0.11.7
2018-06-01T00:21:42.848Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Content-Length: 43
2018-06-01T00:21:42.848Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Authorization: AWS4-HMAC-SHA256 Credential=xxxxxxxx/20180601/us-east-1/sts/aws4_request, SignedHeaders=content-length;content-type;host;x-amz-date;x-amz-security-token, Signature=xxxxxxxxxxxx
2018-06-01T00:21:42.848Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Content-Type: application/x-www-form-urlencoded; charset=utf-8
2018-06-01T00:21:42.848Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: X-Amz-Date: 20180601T002142Z
2018-06-01T00:21:42.850Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: X-Amz-Security-Token: xxxxxxxx
2018-06-01T00:21:42.850Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Accept-Encoding: gzip
2018-06-01T00:21:42.850Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4:
2018-06-01T00:21:42.850Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Action=GetCallerIdentity&Version=2011-06-15
2018-06-01T00:21:42.850Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: -----------------------------------------------------
2018-06-01T00:21:53.056Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:53 [DEBUG] [aws-sdk-go] DEBUG: Send Request sts/GetCallerIdentity failed, will retry, error RequestError: send request failed
2018-06-01T00:21:53.056Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: caused by: Post https://sts.amazonaws.com/: net/http: TLS handshake timeout
2018-06-01T00:21:53.056Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:53 [DEBUG] [aws-sdk-go] DEBUG: Retrying Request sts/GetCallerIdentity, attempt 2
2018-06-01T00:21:53.057Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:53 [DEBUG] [aws-sdk-go] DEBUG: Request sts/GetCallerIdentity Details:
2018-06-01T00:21:53.057Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: ---[ REQUEST POST-SIGN ]-----------------------------
2018-06-01T00:21:53.057Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: POST / HTTP/1.1
2018-06-01T00:21:53.057Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Host: sts.amazonaws.com
2018-06-01T00:21:53.057Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: User-Agent: aws-sdk-go/1.13.57 (go1.9.2; linux; amd64) APN/1.0 HashiCorp/1.0 Terraform/0.11.7
2018-06-01T00:21:53.057Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Content-Length: 43
2018-06-01T00:21:53.057Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Authorization: AWS4-HMAC-SHA256 Credential=xxxxxxxx/20180601/us-east-1/sts/aws4_request, SignedHeaders=content-length;content-type;host;x-amz-date;x-amz-security-token, Signature=xxxxxxxxxxxx
2018-06-01T00:21:53.057Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Content-Type: application/x-www-form-urlencoded; charset=utf-8
2018-06-01T00:21:53.057Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: X-Amz-Date: 20180601T002153Z
2018-06-01T00:21:53.057Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: X-Amz-Security-Token: xxxxxxxx
2018-06-01T00:21:53.057Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Accept-Encoding: gzip
2018-06-01T00:21:53.057Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4:
2018-06-01T00:21:53.058Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Action=GetCallerIdentity&Version=2011-06-15
2018-06-01T00:21:53.058Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: -----------------------------------------------------
2018-06-01T00:21:53.307Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:53 [DEBUG] [aws-sdk-go] DEBUG: Response sts/GetCallerIdentity Details:
2018-06-01T00:21:53.307Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: ---[ RESPONSE ]--------------------------------------
2018-06-01T00:21:53.307Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: HTTP/1.1 200 OK
2018-06-01T00:21:53.307Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Connection: close
2018-06-01T00:21:53.307Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Content-Length: 499
2018-06-01T00:21:53.307Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Content-Type: text/xml
2018-06-01T00:21:53.307Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Date: Fri, 01 Jun 2018 00:21:52 GMT
2018-06-01T00:21:53.307Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: X-Amzn-Requestid: c8da42a2-6531-11e8-a128-adb62491b335
2018-06-01T00:21:53.307Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4:
2018-06-01T00:21:53.307Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4:
2018-06-01T00:21:53.307Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: -----------------------------------------------------
2018-06-01T00:21:53.307Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:53 [DEBUG] [aws-sdk-go] <GetCallerIdentityResponse xmlns="https://sts.amazonaws.com/doc/2011-06-15/">
2018-06-01T00:21:53.307Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <GetCallerIdentityResult>
2018-06-01T00:21:53.307Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <Arn>arn:aws:sts::xxxxxxxxxxxx:assumed-role/xxxxrolenamexxxx/xxxxxx@xxxxxxxx,xxxxrolenamexxxx</Arn>
2018-06-01T00:21:53.307Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <UserId>xxxxxxxxxxxxx:xxxxxx@xxxxxxxx,xxxxrolenamexxxx</UserId>
2018-06-01T00:21:53.307Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <Account>xxxxxxxxxxxx</Account>
2018-06-01T00:21:53.307Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: </GetCallerIdentityResult>
2018-06-01T00:21:53.307Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <ResponseMetadata>
2018-06-01T00:21:53.307Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <RequestId>c8da42a2-6531-11e8-a128-adb62491b335</RequestId>
2018-06-01T00:21:53.308Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: </ResponseMetadata>
2018-06-01T00:21:53.308Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: </GetCallerIdentityResponse>
2018-06-01T00:21:53.308Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:53 [DEBUG] Trying to get account ID via iam:GetUser
2018-06-01T00:21:53.308Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:53 [DEBUG] [aws-sdk-go] DEBUG: Request iam/GetUser Details:
2018-06-01T00:21:53.308Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: ---[ REQUEST POST-SIGN ]-----------------------------
2018-06-01T00:21:53.308Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: POST / HTTP/1.1
2018-06-01T00:21:53.308Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Host: iam.amazonaws.com
2018-06-01T00:21:53.308Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: User-Agent: aws-sdk-go/1.13.57 (go1.9.2; linux; amd64) APN/1.0 HashiCorp/1.0 Terraform/0.11.7
2018-06-01T00:21:53.308Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Content-Length: 33
2018-06-01T00:21:53.308Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Authorization: AWS4-HMAC-SHA256 Credential=xxxxxxxx/20180601/us-east-1/iam/aws4_request, SignedHeaders=content-length;content-type;host;x-amz-date;x-amz-security-token, Signature=xxxxxxxxxxxx
2018-06-01T00:21:53.308Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Content-Type: application/x-www-form-urlencoded; charset=utf-8
2018-06-01T00:21:53.308Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: X-Amz-Date: 20180601T002153Z
2018-06-01T00:21:53.308Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: X-Amz-Security-Token: xxxxxxxx
2018-06-01T00:21:53.308Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Accept-Encoding: gzip
2018-06-01T00:21:53.308Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4:
2018-06-01T00:21:53.308Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Action=GetUser&Version=2010-05-08
2018-06-01T00:21:53.308Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: -----------------------------------------------------
2018-06-01T00:21:53.687Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:53 [DEBUG] [aws-sdk-go] DEBUG: Response iam/GetUser Details:
2018-06-01T00:21:53.687Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: ---[ RESPONSE ]--------------------------------------
2018-06-01T00:21:53.687Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: HTTP/1.1 400 Bad Request
2018-06-01T00:21:53.687Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Connection: close
2018-06-01T00:21:53.687Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Content-Length: 307
2018-06-01T00:21:53.687Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Content-Type: text/xml
2018-06-01T00:21:53.688Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Date: Fri, 01 Jun 2018 00:21:52 GMT
2018-06-01T00:21:53.688Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: X-Amzn-Requestid: c913f05e-6531-11e8-bcd0-e9452080145d
2018-06-01T00:21:53.688Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4:
2018-06-01T00:21:53.688Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4:
2018-06-01T00:21:53.688Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: -----------------------------------------------------
2018-06-01T00:21:53.688Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:53 [DEBUG] [aws-sdk-go] <ErrorResponse xmlns="https://iam.amazonaws.com/doc/2010-05-08/">
2018-06-01T00:21:53.688Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <Error>
2018-06-01T00:21:53.688Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <Type>Sender</Type>
2018-06-01T00:21:53.688Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <Code>ValidationError</Code>
2018-06-01T00:21:53.688Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <Message>Must specify userName when calling with non-User credentials</Message>
2018-06-01T00:21:53.688Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: </Error>
2018-06-01T00:21:53.688Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <RequestId>c913f05e-6531-11e8-bcd0-e9452080145d</RequestId>
2018-06-01T00:21:53.688Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: </ErrorResponse>
2018-06-01T00:21:53.688Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:53 [DEBUG] [aws-sdk-go] DEBUG: Validate Response iam/GetUser failed, not retrying, error ValidationError: Must specify userName when calling with non-User credentials
2018-06-01T00:21:53.688Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: status code: 400, request id: c913f05e-6531-11e8-bcd0-e9452080145d
2018-06-01T00:21:53.688Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:53 [DEBUG] Getting account ID via iam:GetUser failed: ValidationError: Must specify userName when calling with non-User credentials
2018-06-01T00:21:53.688Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: status code: 400, request id: c913f05e-6531-11e8-bcd0-e9452080145d
2018-06-01T00:21:53.688Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:53 [DEBUG] Trying to get account ID via sts:GetCallerIdentity
2018-06-01T00:21:53.688Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:53 [DEBUG] [aws-sdk-go] DEBUG: Request sts/GetCallerIdentity Details:
2018-06-01T00:21:53.688Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: ---[ REQUEST POST-SIGN ]-----------------------------
2018-06-01T00:21:53.688Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: POST / HTTP/1.1
2018-06-01T00:21:53.688Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Host: sts.amazonaws.com
2018-06-01T00:21:53.688Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: User-Agent: aws-sdk-go/1.13.57 (go1.9.2; linux; amd64) APN/1.0 HashiCorp/1.0 Terraform/0.11.7
2018-06-01T00:21:53.688Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Content-Length: 43
2018-06-01T00:21:53.688Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Authorization: AWS4-HMAC-SHA256 Credential=xxxxxxxx/20180601/us-east-1/sts/aws4_request, SignedHeaders=content-length;content-type;host;x-amz-date;x-amz-security-token, Signature=xxxxxxxxxxxx
2018-06-01T00:21:53.688Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Content-Type: application/x-www-form-urlencoded; charset=utf-8
2018-06-01T00:21:53.688Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: X-Amz-Date: 20180601T002153Z
2018-06-01T00:21:53.688Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: X-Amz-Security-Token: xxxxxxxx
2018-06-01T00:21:53.688Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Accept-Encoding: gzip
2018-06-01T00:21:53.688Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4:
2018-06-01T00:21:53.688Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Action=GetCallerIdentity&Version=2011-06-15
2018-06-01T00:21:53.688Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: -----------------------------------------------------
2018-06-01T00:21:53.972Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:53 [DEBUG] [aws-sdk-go] DEBUG: Response sts/GetCallerIdentity Details:
2018-06-01T00:21:53.972Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: ---[ RESPONSE ]--------------------------------------
2018-06-01T00:21:53.972Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: HTTP/1.1 200 OK
2018-06-01T00:21:53.972Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Connection: close
2018-06-01T00:21:53.972Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Content-Length: 499
2018-06-01T00:21:53.972Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Content-Type: text/xml
2018-06-01T00:21:53.972Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Date: Fri, 01 Jun 2018 00:21:53 GMT
2018-06-01T00:21:53.972Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: X-Amzn-Requestid: c9407e11-6531-11e8-a6e1-193b12c26a89
2018-06-01T00:21:53.972Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4:
2018-06-01T00:21:53.972Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4:
2018-06-01T00:21:53.973Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: -----------------------------------------------------
2018-06-01T00:21:53.973Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:53 [DEBUG] [aws-sdk-go] <GetCallerIdentityResponse xmlns="https://sts.amazonaws.com/doc/2011-06-15/">
2018-06-01T00:21:53.973Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <GetCallerIdentityResult>
2018-06-01T00:21:53.973Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <Arn>arn:aws:sts::xxxxxxxxxxxx:assumed-role/xxxxrolenamexxxx/xxxxxx@xxxxxxxx,xxxxrolenamexxxx</Arn>
2018-06-01T00:21:53.973Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <UserId>xxxxxxxxxxxxx:xxxxxx@xxxxxxxx,xxxxrolenamexxxx</UserId>
2018-06-01T00:21:53.973Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <Account>xxxxxxxxxxxx</Account>
2018-06-01T00:21:53.973Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: </GetCallerIdentityResult>
2018-06-01T00:21:53.973Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <ResponseMetadata>
2018-06-01T00:21:53.973Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <RequestId>c9407e11-6531-11e8-a6e1-193b12c26a89</RequestId>
2018-06-01T00:21:53.973Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: </ResponseMetadata>
2018-06-01T00:21:53.973Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: </GetCallerIdentityResponse>
2018-06-01T00:21:53.975Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:53 [DEBUG] [aws-sdk-go] DEBUG: Request ec2/DescribeAccountAttributes Details:
2018-06-01T00:21:53.975Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: ---[ REQUEST POST-SIGN ]-----------------------------
2018-06-01T00:21:53.975Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: POST / HTTP/1.1
2018-06-01T00:21:53.975Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Host: ec2.us-west-2.amazonaws.com
2018-06-01T00:21:53.975Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: User-Agent: aws-sdk-go/1.13.57 (go1.9.2; linux; amd64) APN/1.0 HashiCorp/1.0 Terraform/0.11.7
2018-06-01T00:21:53.975Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Content-Length: 87
2018-06-01T00:21:53.975Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Authorization: AWS4-HMAC-SHA256 Credential=xxxxxxxx/20180601/us-west-2/ec2/aws4_request, SignedHeaders=content-length;content-type;host;x-amz-date;x-amz-security-token, Signature=xxxxxxxxxxxx
2018-06-01T00:21:53.975Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Content-Type: application/x-www-form-urlencoded; charset=utf-8
2018-06-01T00:21:53.975Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: X-Amz-Date: 20180601T002153Z
2018-06-01T00:21:53.975Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: X-Amz-Security-Token: xxxxxxxx
2018-06-01T00:21:53.975Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Accept-Encoding: gzip
2018-06-01T00:21:53.975Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4:
2018-06-01T00:21:53.975Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Action=DescribeAccountAttributes&AttributeName.1=supported-platforms&Version=2016-11-15
2018-06-01T00:21:53.975Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: -----------------------------------------------------
2018-06-01T00:21:54.065Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:54 [DEBUG] [aws-sdk-go] DEBUG: Response ec2/DescribeAccountAttributes Details:
2018-06-01T00:21:54.065Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: ---[ RESPONSE ]--------------------------------------
2018-06-01T00:21:54.065Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: HTTP/1.1 200 OK
2018-06-01T00:21:54.065Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Connection: close
2018-06-01T00:21:54.065Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Transfer-Encoding: chunked
2018-06-01T00:21:54.065Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Content-Type: text/xml;charset=UTF-8
2018-06-01T00:21:54.065Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Date: Fri, 01 Jun 2018 00:21:53 GMT
2018-06-01T00:21:54.065Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Server: AmazonEC2
2018-06-01T00:21:54.065Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Vary: Accept-Encoding
2018-06-01T00:21:54.065Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4:
2018-06-01T00:21:54.065Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4:
2018-06-01T00:21:54.065Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: -----------------------------------------------------
2018-06-01T00:21:54.065Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:54 [DEBUG] [aws-sdk-go] <?xml version="1.0" encoding="UTF-8"?>
2018-06-01T00:21:54.066Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <DescribeAccountAttributesResponse xmlns="http://ec2.amazonaws.com/doc/2016-11-15/">
2018-06-01T00:21:54.066Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <requestId>e516087f-4681-45f7-9215-530cda900e7a</requestId>
2018-06-01T00:21:54.066Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <accountAttributeSet>
2018-06-01T00:21:54.066Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <item>
2018-06-01T00:21:54.066Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <attributeName>supported-platforms</attributeName>
2018-06-01T00:21:54.066Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <attributeValueSet>
2018-06-01T00:21:54.066Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <item>
2018-06-01T00:21:54.066Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <attributeValue>VPC</attributeValue>
2018-06-01T00:21:54.066Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: </item>
2018-06-01T00:21:54.066Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: </attributeValueSet>
2018-06-01T00:21:54.066Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: </item>
2018-06-01T00:21:54.066Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: </accountAttributeSet>
2018-06-01T00:21:54.066Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: </DescribeAccountAttributesResponse>
2018/06/01 00:21:54 [DEBUG] Attaching resource state to "aws_network_interface.foobar": &terraform.ResourceState{Type:"aws_network_interface", Dependencies:[]string{}, Primary:(*terraform.InstanceState)(0xc4202692c0), Deposed:[]*terraform.InstanceState{}, Provider:"provider.aws", mu:sync.Mutex{state:0, sema:0x0}}
2018/06/01 00:21:54 [TRACE] Graph after step *terraform.AttachStateTransformer:
aws_network_interface.foobar - *terraform.NodePlannableResourceInstance
2018/06/01 00:21:54 [DEBUG] ReferenceTransformer: "aws_network_interface.foobar" references: []
2018/06/01 00:21:54 [TRACE] Graph after step *terraform.ReferenceTransformer:
aws_network_interface.foobar - *terraform.NodePlannableResourceInstance
2018/06/01 00:21:54 [TRACE] Graph after step *terraform.RootTransformer:
aws_network_interface.foobar - *terraform.NodePlannableResourceInstance
2018/06/01 00:21:54 [TRACE] dag/walk: added new vertex: "aws_network_interface.foobar"
2018/06/01 00:21:54 [TRACE] dag/walk: walking "aws_network_interface.foobar"
2018/06/01 00:21:54 [TRACE] vertex 'root.aws_network_interface.foobar': walking
2018/06/01 00:21:54 [DEBUG] Attaching resource state to "aws_network_interface.foobar": &terraform.ResourceState{Type:"aws_network_interface", Dependencies:[]string{}, Primary:(*terraform.InstanceState)(0xc420511860), Deposed:[]*terraform.InstanceState{}, Provider:"provider.aws", mu:sync.Mutex{state:0, sema:0x0}}
2018/06/01 00:21:54 [DEBUG] resource aws_network_interface.foobar using provider provider.aws
2018/06/01 00:21:54 [DEBUG] ReferenceTransformer: "aws_network_interface.foobar" references: [var.ip_count]
2018/06/01 00:21:54 [DEBUG] ReferenceTransformer: "provider.aws" references: []
2018/06/01 00:21:54 [DEBUG] ReferenceTransformer: "var.ip_count" references: []
2018/06/01 00:21:54 [DEBUG] ReferenceTransformer: "output.eni_id" references: [aws_network_interface.foobar]
2018-06-01T00:21:54.121Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:54 [INFO] No assume_role block read from configuration
2018-06-01T00:21:54.121Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:54 [INFO] Building AWS region structure
2018-06-01T00:21:54.121Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:54 [INFO] Building AWS auth structure
2018-06-01T00:21:54.121Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:54 [INFO] Setting AWS metadata API timeout to 100ms
2018-06-01T00:21:54.810Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:54 [INFO] Ignoring AWS metadata API endpoint at default location as it doesn't return any instance-id
2018-06-01T00:21:54.810Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:54 [INFO] AWS Auth provider used: "SharedCredentialsProvider"
2018-06-01T00:21:54.811Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:54 [INFO] Initializing DeviceFarm SDK connection
2018-06-01T00:21:54.812Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:54 [DEBUG] [aws-sdk-go] DEBUG: Request sts/GetCallerIdentity Details:
2018-06-01T00:21:54.812Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: ---[ REQUEST POST-SIGN ]-----------------------------
2018-06-01T00:21:54.812Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: POST / HTTP/1.1
2018-06-01T00:21:54.812Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Host: sts.amazonaws.com
2018-06-01T00:21:54.812Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: User-Agent: aws-sdk-go/1.13.57 (go1.9.2; linux; amd64) APN/1.0 HashiCorp/1.0 Terraform/0.11.7
2018-06-01T00:21:54.812Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Content-Length: 43
2018-06-01T00:21:54.812Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Authorization: AWS4-HMAC-SHA256 Credential=xxxxxxxx/20180601/us-east-1/sts/aws4_request, SignedHeaders=content-length;content-type;host;x-amz-date;x-amz-security-token, Signature=xxxxxxxxxxxx
2018-06-01T00:21:54.812Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Content-Type: application/x-www-form-urlencoded; charset=utf-8
2018-06-01T00:21:54.812Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: X-Amz-Date: 20180601T002154Z
2018-06-01T00:21:54.812Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: X-Amz-Security-Token: xxxxxxxx
2018-06-01T00:21:54.813Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Accept-Encoding: gzip
2018-06-01T00:21:54.813Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4:
2018-06-01T00:21:54.813Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Action=GetCallerIdentity&Version=2011-06-15
2018-06-01T00:21:54.813Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: -----------------------------------------------------
2018-06-01T00:21:55.282Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:55 [DEBUG] [aws-sdk-go] DEBUG: Response sts/GetCallerIdentity Details:
2018-06-01T00:21:55.282Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: ---[ RESPONSE ]--------------------------------------
2018-06-01T00:21:55.282Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: HTTP/1.1 200 OK
2018-06-01T00:21:55.282Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Connection: close
2018-06-01T00:21:55.282Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Content-Length: 499
2018-06-01T00:21:55.282Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Content-Type: text/xml
2018-06-01T00:21:55.282Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Date: Fri, 01 Jun 2018 00:21:54 GMT
2018-06-01T00:21:55.282Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: X-Amzn-Requestid: c9fe77a6-6531-11e8-ad20-3b22545a5161
2018-06-01T00:21:55.282Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4:
2018-06-01T00:21:55.282Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4:
2018-06-01T00:21:55.282Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: -----------------------------------------------------
2018-06-01T00:21:55.282Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:55 [DEBUG] [aws-sdk-go] <GetCallerIdentityResponse xmlns="https://sts.amazonaws.com/doc/2011-06-15/">
2018-06-01T00:21:55.283Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <GetCallerIdentityResult>
2018-06-01T00:21:55.284Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <Arn>arn:aws:sts::xxxxxxxxxxxx:assumed-role/xxxxrolenamexxxx/xxxxxx@xxxxxxxx,xxxxrolenamexxxx</Arn>
2018-06-01T00:21:55.284Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <UserId>xxxxxxxxxxxxx:xxxxxx@xxxxxxxx,xxxxrolenamexxxx</UserId>
2018-06-01T00:21:55.284Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <Account>xxxxxxxxxxxx</Account>
2018-06-01T00:21:55.285Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: </GetCallerIdentityResult>
2018-06-01T00:21:55.285Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <ResponseMetadata>
2018-06-01T00:21:55.285Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <RequestId>c9fe77a6-6531-11e8-ad20-3b22545a5161</RequestId>
2018-06-01T00:21:55.285Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: </ResponseMetadata>
2018-06-01T00:21:55.285Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: </GetCallerIdentityResponse>
2018-06-01T00:21:55.285Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:55 [DEBUG] Trying to get account ID via iam:GetUser
2018-06-01T00:21:55.285Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:55 [DEBUG] [aws-sdk-go] DEBUG: Request iam/GetUser Details:
2018-06-01T00:21:55.285Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: ---[ REQUEST POST-SIGN ]-----------------------------
2018-06-01T00:21:55.285Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: POST / HTTP/1.1
2018-06-01T00:21:55.286Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Host: iam.amazonaws.com
2018-06-01T00:21:55.286Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: User-Agent: aws-sdk-go/1.13.57 (go1.9.2; linux; amd64) APN/1.0 HashiCorp/1.0 Terraform/0.11.7
2018-06-01T00:21:55.286Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Content-Length: 33
2018-06-01T00:21:55.286Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Authorization: AWS4-HMAC-SHA256 Credential=xxxxxxxx/20180601/us-east-1/iam/aws4_request, SignedHeaders=content-length;content-type;host;x-amz-date;x-amz-security-token, Signature=xxxxxxxxxxxx
2018-06-01T00:21:55.286Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Content-Type: application/x-www-form-urlencoded; charset=utf-8
2018-06-01T00:21:55.286Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: X-Amz-Date: 20180601T002155Z
2018-06-01T00:21:55.286Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: X-Amz-Security-Token: xxxxxxxx
2018-06-01T00:21:55.286Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Accept-Encoding: gzip
2018-06-01T00:21:55.286Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4:
2018-06-01T00:21:55.286Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Action=GetUser&Version=2010-05-08
2018-06-01T00:21:55.286Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: -----------------------------------------------------
2018-06-01T00:21:55.760Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:55 [DEBUG] [aws-sdk-go] DEBUG: Response iam/GetUser Details:
2018-06-01T00:21:55.760Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: ---[ RESPONSE ]--------------------------------------
2018-06-01T00:21:55.760Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: HTTP/1.1 400 Bad Request
2018-06-01T00:21:55.760Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Connection: close
2018-06-01T00:21:55.760Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Content-Length: 307
2018-06-01T00:21:55.760Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Content-Type: text/xml
2018-06-01T00:21:55.760Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Date: Fri, 01 Jun 2018 00:21:55 GMT
2018-06-01T00:21:55.760Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: X-Amzn-Requestid: ca4e92b2-6531-11e8-8a14-65705c3116c1
2018-06-01T00:21:55.760Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4:
2018-06-01T00:21:55.760Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4:
2018-06-01T00:21:55.760Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: -----------------------------------------------------
2018-06-01T00:21:55.762Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:55 [DEBUG] [aws-sdk-go] <ErrorResponse xmlns="https://iam.amazonaws.com/doc/2010-05-08/">
2018-06-01T00:21:55.762Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <Error>
2018-06-01T00:21:55.762Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <Type>Sender</Type>
2018-06-01T00:21:55.762Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <Code>ValidationError</Code>
2018-06-01T00:21:55.762Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <Message>Must specify userName when calling with non-User credentials</Message>
2018-06-01T00:21:55.762Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: </Error>
2018-06-01T00:21:55.762Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <RequestId>ca4e92b2-6531-11e8-8a14-65705c3116c1</RequestId>
2018-06-01T00:21:55.762Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: </ErrorResponse>
2018-06-01T00:21:55.763Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:55 [DEBUG] [aws-sdk-go] DEBUG: Validate Response iam/GetUser failed, not retrying, error ValidationError: Must specify userName when calling with non-User credentials
2018-06-01T00:21:55.763Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: status code: 400, request id: ca4e92b2-6531-11e8-8a14-65705c3116c1
2018-06-01T00:21:55.764Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:55 [DEBUG] Getting account ID via iam:GetUser failed: ValidationError: Must specify userName when calling with non-User credentials
2018-06-01T00:21:55.764Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: status code: 400, request id: ca4e92b2-6531-11e8-8a14-65705c3116c1
2018-06-01T00:21:55.764Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:55 [DEBUG] Trying to get account ID via sts:GetCallerIdentity
2018-06-01T00:21:55.765Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:55 [DEBUG] [aws-sdk-go] DEBUG: Request sts/GetCallerIdentity Details:
2018-06-01T00:21:55.765Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: ---[ REQUEST POST-SIGN ]-----------------------------
2018-06-01T00:21:55.765Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: POST / HTTP/1.1
2018-06-01T00:21:55.765Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Host: sts.amazonaws.com
2018-06-01T00:21:55.765Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: User-Agent: aws-sdk-go/1.13.57 (go1.9.2; linux; amd64) APN/1.0 HashiCorp/1.0 Terraform/0.11.7
2018-06-01T00:21:55.765Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Content-Length: 43
2018-06-01T00:21:55.766Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Authorization: AWS4-HMAC-SHA256 Credential=xxxxxxxx/20180601/us-east-1/sts/aws4_request, SignedHeaders=content-length;content-type;host;x-amz-date;x-amz-security-token, Signature=xxxxxxxxxxxx
2018-06-01T00:21:55.766Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Content-Type: application/x-www-form-urlencoded; charset=utf-8
2018-06-01T00:21:55.766Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: X-Amz-Date: 20180601T002155Z
2018-06-01T00:21:55.766Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: X-Amz-Security-Token: xxxxxxxx
2018-06-01T00:21:55.766Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Accept-Encoding: gzip
2018-06-01T00:21:55.766Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4:
2018-06-01T00:21:55.766Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Action=GetCallerIdentity&Version=2011-06-15
2018-06-01T00:21:55.766Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: -----------------------------------------------------
2018-06-01T00:21:56.346Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:56 [DEBUG] [aws-sdk-go] DEBUG: Response sts/GetCallerIdentity Details:
2018-06-01T00:21:56.347Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: ---[ RESPONSE ]--------------------------------------
2018-06-01T00:21:56.347Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: HTTP/1.1 200 OK
2018-06-01T00:21:56.347Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Connection: close
2018-06-01T00:21:56.347Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Content-Length: 499
2018-06-01T00:21:56.347Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Content-Type: text/xml
2018-06-01T00:21:56.347Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Date: Fri, 01 Jun 2018 00:21:55 GMT
2018-06-01T00:21:56.347Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: X-Amzn-Requestid: ca9c6529-6531-11e8-a16f-55d49b4b8692
2018-06-01T00:21:56.347Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4:
2018-06-01T00:21:56.347Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4:
2018-06-01T00:21:56.347Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: -----------------------------------------------------
2018-06-01T00:21:56.347Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:56 [DEBUG] [aws-sdk-go] <GetCallerIdentityResponse xmlns="https://sts.amazonaws.com/doc/2011-06-15/">
2018-06-01T00:21:56.347Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <GetCallerIdentityResult>
2018-06-01T00:21:56.347Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <Arn>arn:aws:sts::xxxxxxxxxxxx:assumed-role/xxxxrolenamexxxx/xxxxxx@xxxxxxxx,xxxxrolenamexxxx</Arn>
2018-06-01T00:21:56.347Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <UserId>xxxxxxxxxxxxx:xxxxxx@xxxxxxxx,xxxxrolenamexxxx</UserId>
2018-06-01T00:21:56.347Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <Account>xxxxxxxxxxxx</Account>
2018-06-01T00:21:56.347Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: </GetCallerIdentityResult>
2018-06-01T00:21:56.347Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <ResponseMetadata>
2018-06-01T00:21:56.347Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <RequestId>ca9c6529-6531-11e8-a16f-55d49b4b8692</RequestId>
2018-06-01T00:21:56.347Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: </ResponseMetadata>
2018-06-01T00:21:56.347Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: </GetCallerIdentityResponse>
2018-06-01T00:21:56.347Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:56 [DEBUG] [aws-sdk-go] DEBUG: Request ec2/DescribeAccountAttributes Details:
2018-06-01T00:21:56.347Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: ---[ REQUEST POST-SIGN ]-----------------------------
2018-06-01T00:21:56.347Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: POST / HTTP/1.1
2018-06-01T00:21:56.347Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Host: ec2.us-west-2.amazonaws.com
2018-06-01T00:21:56.348Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: User-Agent: aws-sdk-go/1.13.57 (go1.9.2; linux; amd64) APN/1.0 HashiCorp/1.0 Terraform/0.11.7
2018-06-01T00:21:56.348Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Content-Length: 87
2018-06-01T00:21:56.348Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Authorization: AWS4-HMAC-SHA256 Credential=xxxxxxxx/20180601/us-west-2/ec2/aws4_request, SignedHeaders=content-length;content-type;host;x-amz-date;x-amz-security-token, Signature=xxxxxxxxxxxx
2018-06-01T00:21:56.348Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Content-Type: application/x-www-form-urlencoded; charset=utf-8
2018-06-01T00:21:56.348Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: X-Amz-Date: 20180601T002156Z
2018-06-01T00:21:56.348Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: X-Amz-Security-Token: xxxxxxxx
2018-06-01T00:21:56.348Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Accept-Encoding: gzip
2018-06-01T00:21:56.348Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4:
2018-06-01T00:21:56.348Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Action=DescribeAccountAttributes&AttributeName.1=supported-platforms&Version=2016-11-15
2018-06-01T00:21:56.348Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: -----------------------------------------------------
2018-06-01T00:21:56.633Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:56 [DEBUG] [aws-sdk-go] DEBUG: Response ec2/DescribeAccountAttributes Details:
2018-06-01T00:21:56.634Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: ---[ RESPONSE ]--------------------------------------
2018-06-01T00:21:56.634Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: HTTP/1.1 200 OK
2018-06-01T00:21:56.634Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Connection: close
2018-06-01T00:21:56.634Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Transfer-Encoding: chunked
2018-06-01T00:21:56.634Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Content-Type: text/xml;charset=UTF-8
2018-06-01T00:21:56.634Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Date: Fri, 01 Jun 2018 00:21:56 GMT
2018-06-01T00:21:56.634Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Server: AmazonEC2
2018-06-01T00:21:56.634Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Vary: Accept-Encoding
2018-06-01T00:21:56.634Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4:
2018-06-01T00:21:56.634Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4:
2018-06-01T00:21:56.634Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: -----------------------------------------------------
2018-06-01T00:21:56.634Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:56 [DEBUG] [aws-sdk-go] <?xml version="1.0" encoding="UTF-8"?>
2018-06-01T00:21:56.634Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <DescribeAccountAttributesResponse xmlns="http://ec2.amazonaws.com/doc/2016-11-15/">
2018-06-01T00:21:56.634Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <requestId>603e392e-45f3-460e-ace9-4f2c8eae3613</requestId>
2018-06-01T00:21:56.634Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <accountAttributeSet>
2018-06-01T00:21:56.634Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <item>
2018-06-01T00:21:56.634Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <attributeName>supported-platforms</attributeName>
2018-06-01T00:21:56.635Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <attributeValueSet>
2018-06-01T00:21:56.635Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <item>
2018-06-01T00:21:56.635Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <attributeValue>VPC</attributeValue>
2018-06-01T00:21:56.635Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: </item>
2018-06-01T00:21:56.635Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: </attributeValueSet>
2018-06-01T00:21:56.635Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: </item>
2018-06-01T00:21:56.635Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: </accountAttributeSet>
2018-06-01T00:21:56.635Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: </DescribeAccountAttributesResponse>
2018-06-01T00:21:56.649Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:56 [DEBUG] [aws-sdk-go] DEBUG: Request ec2/ModifyNetworkInterfaceAttribute Details:
2018-06-01T00:21:56.649Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: ---[ REQUEST POST-SIGN ]-----------------------------
2018-06-01T00:21:56.649Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: POST / HTTP/1.1
2018-06-01T00:21:56.649Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Host: ec2.us-west-2.amazonaws.com
2018-06-01T00:21:56.649Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: User-Agent: aws-sdk-go/1.13.57 (go1.9.2; linux; amd64) APN/1.0 HashiCorp/1.0 Terraform/0.11.7
2018-06-01T00:21:56.649Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Content-Length: 125
2018-06-01T00:21:56.649Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Authorization: AWS4-HMAC-SHA256 Credential=xxxxxxxx/20180601/us-west-2/ec2/aws4_request, SignedHeaders=content-length;content-type;host;x-amz-date;x-amz-security-token, Signature=xxxxxxxxxxxx
2018-06-01T00:21:56.649Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Content-Type: application/x-www-form-urlencoded; charset=utf-8
2018-06-01T00:21:56.649Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: X-Amz-Date: 20180601T002156Z
2018-06-01T00:21:56.649Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: X-Amz-Security-Token: xxxxxxxx
2018-06-01T00:21:56.649Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Accept-Encoding: gzip
2018-06-01T00:21:56.649Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4:
2018-06-01T00:21:56.649Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Action=ModifyNetworkInterfaceAttribute&NetworkInterfaceId=eni-xxxxxxxx&SourceDestCheck.Value=true&Version=2016-11-15
2018-06-01T00:21:56.649Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: -----------------------------------------------------
2018-06-01T00:21:56.966Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:56 [DEBUG] [aws-sdk-go] DEBUG: Response ec2/ModifyNetworkInterfaceAttribute Details:
2018-06-01T00:21:56.966Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: ---[ RESPONSE ]--------------------------------------
2018-06-01T00:21:56.966Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: HTTP/1.1 200 OK
2018-06-01T00:21:56.966Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Connection: close
2018-06-01T00:21:56.966Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Transfer-Encoding: chunked
2018-06-01T00:21:56.966Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Content-Type: text/xml;charset=UTF-8
2018-06-01T00:21:56.966Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Date: Fri, 01 Jun 2018 00:21:56 GMT
2018-06-01T00:21:56.966Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Server: AmazonEC2
2018-06-01T00:21:56.966Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Vary: Accept-Encoding
2018-06-01T00:21:56.967Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4:
2018-06-01T00:21:56.967Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4:
2018-06-01T00:21:56.967Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: -----------------------------------------------------
2018-06-01T00:21:56.967Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:56 [DEBUG] [aws-sdk-go] <?xml version="1.0" encoding="UTF-8"?>
2018-06-01T00:21:56.967Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <ModifyNetworkInterfaceAttributeResponse xmlns="http://ec2.amazonaws.com/doc/2016-11-15/">
2018-06-01T00:21:56.967Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <requestId>eed4e330-3b9f-47c6-992a-d78d8b04dea9</requestId>
2018-06-01T00:21:56.967Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <return>true</return>
2018-06-01T00:21:56.967Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: </ModifyNetworkInterfaceAttributeResponse>
2018-06-01T00:21:56.970Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:56 [DEBUG] [aws-sdk-go] DEBUG: Request ec2/DescribeNetworkInterfaces Details:
2018-06-01T00:21:56.970Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: ---[ REQUEST POST-SIGN ]-----------------------------
2018-06-01T00:21:56.970Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: POST / HTTP/1.1
2018-06-01T00:21:56.970Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Host: ec2.us-west-2.amazonaws.com
2018-06-01T00:21:56.970Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: User-Agent: aws-sdk-go/1.13.57 (go1.9.2; linux; amd64) APN/1.0 HashiCorp/1.0 Terraform/0.11.7
2018-06-01T00:21:56.970Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Content-Length: 94
2018-06-01T00:21:56.970Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Authorization: AWS4-HMAC-SHA256 Credential=xxxxxxxx/20180601/us-west-2/ec2/aws4_request, SignedHeaders=content-length;content-type;host;x-amz-date;x-amz-security-token, Signature=xxxxxxxxxxxx
2018-06-01T00:21:56.970Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Content-Type: application/x-www-form-urlencoded; charset=utf-8
2018-06-01T00:21:56.970Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: X-Amz-Date: 20180601T002156Z
2018-06-01T00:21:56.970Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: X-Amz-Security-Token: xxxxxxxx
2018-06-01T00:21:56.970Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Accept-Encoding: gzip
2018-06-01T00:21:56.970Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4:
2018-06-01T00:21:56.970Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Action=DescribeNetworkInterfaces&NetworkInterfaceId.1=eni-xxxxxxxx&Version=2016-11-15
2018-06-01T00:21:56.970Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: -----------------------------------------------------
2018-06-01T00:21:57.217Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:57 [DEBUG] [aws-sdk-go] DEBUG: Response ec2/DescribeNetworkInterfaces Details:
2018-06-01T00:21:57.217Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: ---[ RESPONSE ]--------------------------------------
2018-06-01T00:21:57.217Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: HTTP/1.1 200 OK
2018-06-01T00:21:57.217Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Connection: close
2018-06-01T00:21:57.217Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Transfer-Encoding: chunked
2018-06-01T00:21:57.217Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Content-Type: text/xml;charset=UTF-8
2018-06-01T00:21:57.217Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Date: Fri, 01 Jun 2018 00:21:56 GMT
2018-06-01T00:21:57.217Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Server: AmazonEC2
2018-06-01T00:21:57.217Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: Vary: Accept-Encoding
2018-06-01T00:21:57.217Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4:
2018-06-01T00:21:57.217Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4:
2018-06-01T00:21:57.217Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: -----------------------------------------------------
2018-06-01T00:21:57.217Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: 2018/06/01 00:21:57 [DEBUG] [aws-sdk-go] <?xml version="1.0" encoding="UTF-8"?>
2018-06-01T00:21:57.217Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <DescribeNetworkInterfacesResponse xmlns="http://ec2.amazonaws.com/doc/2016-11-15/">
2018-06-01T00:21:57.217Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <requestId>fbd73246-3d3a-490d-a23a-c030999e9bf2</requestId>
2018-06-01T00:21:57.217Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <networkInterfaceSet>
2018-06-01T00:21:57.217Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <item>
2018-06-01T00:21:57.217Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <networkInterfaceId>eni-xxxxxxxx</networkInterfaceId>
2018-06-01T00:21:57.217Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <subnetId>subnet-xxxxxx</subnetId>
2018-06-01T00:21:57.218Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <vpcId>vpc-xxxxxx</vpcId>
2018-06-01T00:21:57.218Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <availabilityZone>us-west-2a</availabilityZone>
2018-06-01T00:21:57.218Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <description/>
2018-06-01T00:21:57.218Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <ownerId>xxxxxxxxxxxx</ownerId>
2018-06-01T00:21:57.218Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <requesterId>xxxxxxxxxxxxx:xxxxxx@xxxxxxxx,xxxxrolenamexxxx</requesterId>
2018-06-01T00:21:57.218Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <requesterManaged>false</requesterManaged>
2018-06-01T00:21:57.218Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <status>available</status>
2018-06-01T00:21:57.218Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <macAddress>06:1e:c4:2b:xx:xx</macAddress>
2018-06-01T00:21:57.218Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <privateIpAddress>x.x.46.73</privateIpAddress>
2018-06-01T00:21:57.218Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <privateDnsName>ip-x-x-46-73.us-west-2.compute.internal</privateDnsName>
2018-06-01T00:21:57.218Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: <sourceDestCheck>true</sourceDestCheck>
2018/06/01 00:21:57 [TRACE] root: eval: *terraform.EvalWriteState
2018/06/01 00:21:57 [TRACE] root: eval: *terraform.EvalApplyProvisioners
2018/06/01 00:21:57 [TRACE] root: eval: *terraform.EvalIf
2018/06/01 00:21:57 [TRACE] root: eval: *terraform.EvalWriteState
2018/06/01 00:21:57 [TRACE] root: eval: *terraform.EvalWriteDifder-aws_v1.21.0_x4: </networkInterfaceSet>
2018-06-01T00:21:57.220Z [DEBUG] plugin.terraform-provider-aws_v1.21.0_x4: </DescribeNetworkInterfacesResponse>
2018/06/01 00:21:57 [DEBUG] plugin: waiting for all plugin processes to complete...
2018-06-01T00:21:57.255Z [DEBUG] plugin: plugin process exited: path=/pwd/.terraform/plugins/linux_amd64/terraform-provider-aws_v1.21.0_x4
The fix to the aws_network_interface resource has been merged and will release with version 2.8.0 of the Terraform AWS Provider, shortly.
I'm going to lock this issue because it has been closed for _30 days_ โณ. This helps our maintainers find and focus on the active issues.
If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!
Most helpful comment
I have uncovered some relevant additional details that may help uncover this issue.
tl;dr: It's definitely a bug. The problem occurs when going from
private_ip_count = 0(or not settingprivate_ip_countat all) to a higher number. If you start with1and go to2everything works as expected. However, if you try to go from0to2it will essentially noop, terraform believes it is successful and the state is updated. The value forprivate_ip_countis not refreshed onterraform refresh, so then will be forever out of sync with reality. If you then increase the count from your now out of sync2to5, it will add 3 new IPs.Click here for the repro code and detailed output.
Code
Normal working condition
Start with
private_ips_count=1and you get what you expect (1 primary ip and 2 secondary ips)Increase
private_ips_countfrom 2 to 3 and it also works as expected:Reducing the count also works as expected:
The problem
First, set
private_ips_countto 0 (or remove the argument from the resource entirely, which then defaults the value to 0):Then try to go from 0 to, say, 2:
private_ips_countremains incorrect in state, since it's not a value that's refreshed onterraform refresh.However, if you increase the count _again_, it will increment the difference, although it will still be wrong:
Click here for the debug output of
applyfrom 0 to 2