Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove need to destroy/create AWS instance for iam_role_profile change #11862

Merged
merged 1 commit into from
Mar 2, 2017

Conversation

myoung34
Copy link
Contributor

Resolves #11852

@stack72
Copy link
Contributor

stack72 commented Feb 10, 2017

Hi @myoung34

Thanks for the PR here - I wish this were that simple. For this to work, we are going to need to update the UpdateFunc in AWS instance to allow the update of an IAM Profile

You can see an example of an update here

Please let me know if you have any questions
Thanks

Paul

@stack72 stack72 added enhancement provider/aws waiting-response An issue/pull request is waiting for a response from the community labels Feb 10, 2017
@myoung34
Copy link
Contributor Author

@stack72 thanks, i'll look into it. Unfortunately there are no tests for EC2 instance IAM profiles so it's hard to know what knock on effects are had. I'll update accordingly

@stack72
Copy link
Contributor

stack72 commented Feb 10, 2017

<3 thanks for the work on this @myoung34 :)

@catsby catsby removed the waiting-response An issue/pull request is waiting for a response from the community label Feb 15, 2017
@catsby
Copy link
Contributor

catsby commented Feb 15, 2017

The documentation says that with the SDK v1.6.20 we can now "associate an IAM profile to running instances that do not have any." Do we need to check to verify that the Instance does not have an IAM profile attached? Do we know what the error is, if it does have a profile attached and we try to update it this way?

@catsby catsby added the waiting-response An issue/pull request is waiting for a response from the community label Feb 15, 2017
@myoung34
Copy link
Contributor Author

@catsby @stack72 this now works

  1. create with/without iam acts as same before (did not touch create)
  2. no associations -> new association works
  3. association -> new association works
  4. association -> no association works
 marcyoung  ⋯  terraform  ops  test  1  terraform apply
data.terraform_remote_state.stratasan_vpc: Refreshing state...
aws_iam_role.test1: Refreshing state... (ID: test1)
aws_iam_role.test2: Refreshing state... (ID: test2)
aws_instance.test: Refreshing state... (ID: i-00a268b8c7c739b7d)
aws_iam_role_policy.test1: Refreshing state... (ID: test1:test1)
aws_iam_instance_profile.test1: Refreshing state... (ID: test1)
aws_iam_instance_profile.test2: Refreshing state... (ID: test2)
aws_iam_role_policy.test2: Refreshing state... (ID: test2:test2)

Apply complete! Resources: 0 added, 0 changed, 0 destroyed.
 marcyoung  ⋯  terraform  ops  test  1  fg
vim test.tf

[1]+  Stopped                 vim test.tf
 marcyoung  ⋯  terraform  ops  test  1  terraform apply
data.terraform_remote_state.stratasan_vpc: Refreshing state...
aws_iam_role.test2: Refreshing state... (ID: test2)
aws_iam_role.test1: Refreshing state... (ID: test1)
aws_iam_instance_profile.test2: Refreshing state... (ID: test2)
aws_iam_role_policy.test2: Refreshing state... (ID: test2:test2)
aws_iam_role_policy.test1: Refreshing state... (ID: test1:test1)
aws_iam_instance_profile.test1: Refreshing state... (ID: test1)
aws_instance.test: Refreshing state... (ID: i-00a268b8c7c739b7d)
aws_instance.test: Modifying...
  iam_instance_profile: "" => "test1"
aws_instance.test: Modifications complete

Apply complete! Resources: 0 added, 1 changed, 0 destroyed.

The state of your infrastructure has been saved to the path
below. This state is required to modify and destroy your
infrastructure, so keep it safe. To inspect the complete state
use the `terraform show` command.

State path: terraform.tfstate
 marcyoung  ⋯  terraform  ops  test  1  fg
vim test.tf

[1]+  Stopped                 vim test.tf
 marcyoung  ⋯  terraform  ops  test  1  terraform apply
data.terraform_remote_state.stratasan_vpc: Refreshing state...
aws_iam_role.test2: Refreshing state... (ID: test2)
aws_iam_role.test1: Refreshing state... (ID: test1)
aws_iam_role_policy.test1: Refreshing state... (ID: test1:test1)
aws_iam_instance_profile.test1: Refreshing state... (ID: test1)
aws_iam_role_policy.test2: Refreshing state... (ID: test2:test2)
aws_iam_instance_profile.test2: Refreshing state... (ID: test2)
aws_instance.test: Refreshing state... (ID: i-00a268b8c7c739b7d)
aws_instance.test: Modifying...
  iam_instance_profile: "test1" => "test2"
aws_instance.test: Modifications complete

Apply complete! Resources: 0 added, 1 changed, 0 destroyed.

The state of your infrastructure has been saved to the path
below. This state is required to modify and destroy your
infrastructure, so keep it safe. To inspect the complete state
use the `terraform show` command.

State path: terraform.tfstate
 marcyoung  ⋯  terraform  ops  test  1  fg
vim test.tf

[1]+  Stopped                 vim test.tf
 marcyoung  ⋯  terraform  ops  test  1  terraform apply
data.terraform_remote_state.stratasan_vpc: Refreshing state...
aws_iam_role.test1: Refreshing state... (ID: test1)
aws_iam_role.test2: Refreshing state... (ID: test2)
aws_instance.test: Refreshing state... (ID: i-00a268b8c7c739b7d)
aws_iam_role_policy.test1: Refreshing state... (ID: test1:test1)
aws_iam_instance_profile.test1: Refreshing state... (ID: test1)
aws_iam_instance_profile.test2: Refreshing state... (ID: test2)
aws_iam_role_policy.test2: Refreshing state... (ID: test2:test2)
aws_instance.test: Modifying...
  iam_instance_profile: "test2" => ""
aws_instance.test: Modifications complete

Apply complete! Resources: 0 added, 1 changed, 0 destroyed.

The state of your infrastructure has been saved to the path
below. This state is required to modify and destroy your
infrastructure, so keep it safe. To inspect the complete state
use the `terraform show` command.

State path: terraform.tfstate

@myoung34
Copy link
Contributor Author

@catsby per your question: yes. I added a DescribeIamInstanceProfileAssociations call for the update method so that if there are any changes to iam_instance_profile it can decide if it needs to re-associate (has assocation, sees change), unassociate (has associate, sees change and iam_instance_profile not provided), or associate (no associations, sees change and is provided)

@myoung34
Copy link
Contributor Author

@stack72 any way to yank this in?

@stack72
Copy link
Contributor

stack72 commented Mar 1, 2017

Hi @myoung34

I promise i will get a look at this today - I think i am going to need to add a test to it to make sure it works as expected

Paul

@stack72
Copy link
Contributor

stack72 commented Mar 2, 2017

Hi @myoung34

I added a test that covers the behaviour

% make testacc TEST=./builtin/providers/aws TESTARGS='-run=TestAccAWSInstance_instanceProfileChange'                                  2 ↵ ✹ ✭
==> Checking that code complies with gofmt requirements...
go generate $(go list ./... | grep -v /terraform/vendor/)
2017/03/02 10:35:14 Generated command/internal_plugin_list.go
TF_ACC=1 go test ./builtin/providers/aws -v -run=TestAccAWSInstance_instanceProfileChange -timeout 120m
=== RUN   TestAccAWSInstance_instanceProfileChange
--- PASS: TestAccAWSInstance_instanceProfileChange (143.18s)
PASS
ok  	github.com/hashicorp/terraform/builtin/providers/aws	143.212s

I am going to merge this manually now to get this test added :) Thanks for all the work here

Paul

@stack72 stack72 merged commit 7fd8be3 into hashicorp:master Mar 2, 2017
@automaticgiant
Copy link
Contributor

well shit. this broke terraforming ec2 at my company. we don't have permission to ec2:ReplaceIamInstanceProfileAssociation . i'll try and get the process wheels spinning on that, but is there any chance the old behavior can be honored or toggled besides using 8.7?

@myoung34
Copy link
Contributor Author

myoung34 commented Mar 7, 2017

It only runs replace if there's a change to the instance profile. The code change doesn't affect create or destroy.

@automaticgiant
Copy link
Contributor

i could deal with it better if that were accurate, but ima stick to 8.7 until this blows over.

bin/terraform apply -target=aws_instance.nomad_client[0] -target=tls_private_key.ssh_key terraform
data.aws_ami.latest: Refreshing state...
aws_instance.nomad_client.0: Creating...
aws_instance.nomad_client.0: Still creating... (10s elapsed)
aws_instance.nomad_client.0: Still creating... (20s elapsed)
aws_instance.nomad_client.0: Still creating... (30s elapsed)
Error applying plan:

1 error(s) occurred:

* aws_instance.nomad_client.0: UnauthorizedOperation: You are not authorized to perform this operation. Encoded authorization failure message: MQCK9HXA0Mhr7ahrgZ-AGB-K4Gy4raVmoxqe4mSTPL0v6y6HCY_odp-HGArBTJyzqpWloREjI2lYIFuWl_O09be_rpRiSVe-6TmyLPU0eACg0P_3CQU6lPCooOWQlebRez0crKw-rNgJBYOrxJFYbMhA7oYnjcIWglxanPJO-JzJcKyT9qbn5gk8UpKXD5WLnaeZzNQ3rtHNmL_  MCVxHqouYQJbT7lvbjZzKu60F7CsrqPU2-xiMDBpvNY_bPVDZg2ANWz_KINqwg8tTX6Zdbl-92zh1Pl6CF-ZIn9vKarEvsMSa-85QUg9K2UMnXrMg1vUfyXtC3E2qfE8gvKJxRwrsshBDog_knNSCwVw_JMhN93GX13Bno0I1o7_Xmx8Y-ddpByTuLtTtSuwkjqUdWCVv7_kImu4BqyqekG1gkdGwDyxSuwkfhJxrdy_icH_CrM9v28LGVnTkHCpJfR6BUHgAabe1hXWNtVzoVAsS2vV_6hW7viY4MT4MKoqXlZRoWubi48skmTAlStFan2egrF4JXoaDlXYth01xkgeYO3xyXKekP9srJbPyBct8cNN0fH1-E_y-rwV4PVdcGPy9m_cUu0luLS08B_gwbnQJ67-gVOOx5yaqmMPtg2HSHR0d5G5KktUmtegraa_DCUikUAr17ggE2F6pcdvssi1iXQmyH7pNfMSwH2BtCSYEBCYwmluWzhqEEwm4HUoWQrMR61HhWvgzsNj2-aQEsJM4Nbiq4FE8nu6VbEQlJvPYZSrzWdmT9u-pyuAzjsTem_xtE5XUXThWwpkrsLsoDGXNmdr0SIfeING307ZC7wLE9n9qyoDyOnWufRcvG2k9gGX0htT5Ej0uZo415qR_ZnGlevU3C1pw58kyyarOegP8m37BrsifKN8ISzabOKlHAHd8v-4LExpGDMsJWul-GdI6CtCKgNYw-v1I0-0DGT5sCW4u
        status code: 403, request id: bb5e9d76-dd54-40a0-a4e6-c1fbbfc638b5

which translates to

{
  "allowed": false,
  "explicitDeny": false,
  "matchedStatements": {
    "items": []
  },
  "failures": {
    "items": []
  },
  "context": {
    "principal": {
      "id": "redacted",
      "arn": "arn:aws:sts::redacted"
    },
    "action": "ec2:ReplaceIamInstanceProfileAssociation",
    "resource": "arn:aws:ec2:us-east-1:redacted:instance/i-05ea1021172887bef",
    "conditions": {
      "items": [
        {
... tags, properties

@myoung34
Copy link
Contributor Author

myoung34 commented Mar 7, 2017

@automaticgiant I think you misread. the code change per this ticket does not affect create or destroy, only update. The diff is available for you to see if you click the Files changed tab.

@automaticgiant
Copy link
Contributor

indeed. i suppose i should track down the commit/pr for the create behavior and despair there instead.

@automaticgiant
Copy link
Contributor

automaticgiant commented Mar 7, 2017

the behavior exhibits on tf 8.8 but not 8.7. this was the only change to this file, so idk how to explain the observed behavior. could it be this but something about retrying unreliable iam api calls triggers an update of a partial create?
i'll attach a debug run

@myoung34
Copy link
Contributor Author

myoung34 commented Mar 7, 2017

it could be something in the underlying API calls that are not due to terraform.

you can try TF_LOG=debug terraform apply... and look at what the request to create looks like

That might actually be a reasonable assumption but that would mean it didnt work before since updates never updated IAM association before this change. the hasChange should prevent it from putting it on an update if that's not new from the state file after create

@automaticgiant
Copy link
Contributor

automaticgiant commented Mar 7, 2017

here's the important bits, as far as i can tell.
fortunately/unfortunately (depending on who you are) this is not priority for me. hopefully the permission will be added to my role, and i can use 8.7 until then, but this seems like unintended behavior, so thanks for investigating.

btw, this was after removing the state file.

2017/03/07 10:49:01 [DEBUG] vertex 'root.aws_instance.nomad_client[0]': walking
2017/03/07 10:49:01 [DEBUG] vertex 'root.aws_instance.nomad_client[0]': evaluating
2017/03/07 10:49:01 [DEBUG] root: eval: *terraform.EvalSequence
2017/03/07 10:49:01 [DEBUG] root: eval: *terraform.EvalInstanceInfo
2017/03/07 10:49:01 [DEBUG] root: eval: *terraform.EvalReadDiff
2017/03/07 10:49:01 [DEBUG] root: eval: *terraform.EvalIf
2017/03/07 10:49:01 [DEBUG] root: eval: terraform.EvalNoop
2017/03/07 10:49:01 [DEBUG] root: eval: *terraform.EvalIf
2017/03/07 10:49:01 [DEBUG] root: eval: *terraform.EvalInterpolate
2017/03/07 10:49:01 [DEBUG] root: eval: *terraform.EvalGetProvider
2017/03/07 10:49:01 [DEBUG] root: eval: *terraform.EvalReadState
2017/03/07 10:49:01 [DEBUG] root: eval: *terraform.EvalValidateResource
2017/03/07 10:49:01 [DEBUG] root: eval: *terraform.EvalDiff
2017/03/07 10:49:01 [DEBUG] root: eval: *terraform.EvalReadDiff
2017/03/07 10:49:01 [DEBUG] root: eval: *terraform.EvalCompareDiff
2017/03/07 10:49:01 [DEBUG] root: eval: *terraform.EvalGetProvider
2017/03/07 10:49:01 [DEBUG] root: eval: *terraform.EvalReadState
2017/03/07 10:49:01 [DEBUG] root: eval: *terraform.EvalApply
2017/03/07 10:49:01 [DEBUG] apply: aws_instance.nomad_client.0: executing Apply
�[0m�[1maws_instance.nomad_client.0: Creating...�[0m
  ami:                               "" => "ami-e2449df4"
  associate_public_ip_address:       "" => "<computed>"
  availability_zone:                 "" => "<computed>"
  ebs_block_device.#:                "" => "<computed>"
  ephemeral_block_device.#:          "" => "<computed>"
2017/03/07 10:49:01 [DEBUG] plugin: terraform: aws-provider (internal) 2017/03/07 10:49:01 [DEBUG] Run configuration: {
  iam_instance_profile:              "" => "redacted"
2017/03/07 10:49:01 [DEBUG] plugin: terraform:   DisableApiTermination: false,
2017/03/07 10:49:01 [DEBUG] plugin: terraform:   EbsOptimized: false,
2017/03/07 10:49:01 [DEBUG] plugin: terraform:   IamInstanceProfile: {
2017/03/07 10:49:01 [DEBUG] plugin: terraform:     Name: "redacted"
2017/03/07 10:49:01 [DEBUG] plugin: terraform:   },
2017/03/07 10:49:01 [DEBUG] plugin: terraform:   ImageId: "redacted",
2017/03/07 10:49:01 [DEBUG] plugin: terraform:   InstanceType: "t2.medium",
2017/03/07 10:49:01 [DEBUG] plugin: terraform:   KeyName: "redacted",
2017/03/07 10:49:01 [DEBUG] plugin: terraform:   MaxCount: 1,
2017/03/07 10:49:01 [DEBUG] plugin: terraform:   MinCount: 1,
2017/03/07 10:49:01 [DEBUG] plugin: terraform:   Monitoring: {
2017/03/07 10:49:01 [DEBUG] plugin: terraform:     Enabled: false
2017/03/07 10:49:01 [DEBUG] plugin: terraform:   },
2017/03/07 10:49:01 [DEBUG] plugin: terraform:   Placement: {
2017/03/07 10:49:01 [DEBUG] plugin: terraform:     AvailabilityZone: "",
2017/03/07 10:49:01 [DEBUG] plugin: terraform:     GroupName: ""
2017/03/07 10:49:01 [DEBUG] plugin: terraform:   },
2017/03/07 10:49:01 [DEBUG] plugin: terraform:   SecurityGroupIds: ["redacted","redacted"],
2017/03/07 10:49:01 [DEBUG] plugin: terraform:   SubnetId: "redacted",
2017/03/07 10:49:01 [DEBUG] plugin: terraform:   UserData: "redacted"
2017/03/07 10:49:01 [DEBUG] plugin: terraform: }
2017/03/07 10:49:01 [DEBUG] plugin: terraform: aws-provider (internal) 2017/03/07 10:49:01 [DEBUG] Waiting for state to become: [success]
  instance_state:                    "" => "<computed>"
  instance_type:                     "" => "t2.medium"
  ipv6_addresses.#:                  "" => "<computed>"
  key_name:                          "" => "redacted"
  network_interface_id:              "" => "<computed>"
2017/03/07 10:49:01 [DEBUG] plugin: terraform: aws-provider (internal) 2017/03/07 10:49:01 [DEBUG] [aws-sdk-go] DEBUG: Request ec2/RunInstances Details:
2017/03/07 10:49:01 [DEBUG] plugin: terraform: ---[ REQUEST POST-SIGN ]-----------------------------
2017/03/07 10:49:01 [DEBUG] plugin: terraform: POST / HTTP/1.1
2017/03/07 10:49:01 [DEBUG] plugin: terraform: Host: ec2.us-east-1.amazonaws.com
2017/03/07 10:49:01 [DEBUG] plugin: terraform: User-Agent: APN/1.0 HashiCorp/1.0 Terraform/0.8.8
2017/03/07 10:49:01 [DEBUG] plugin: terraform: Content-Length: 1234
2017/03/07 10:49:01 [DEBUG] plugin: terraform: Content-Type: application/x-www-form-urlencoded; charset=utf-8
2017/03/07 10:49:01 [DEBUG] plugin: terraform: X-Amz-Date: 20170307T154901Z
2017/03/07 10:49:01 [DEBUG] plugin: terraform: Accept-Encoding: gzip
2017/03/07 10:49:01 [DEBUG] plugin: terraform: 
2017/03/07 10:49:01 [DEBUG] plugin: terraform: -----------------------------------------------------
  placement_group:                   "" => "<computed>"
  private_dns:                       "" => "<computed>"
  private_ip:                        "" => "<computed>"
  public_dns:                        "" => "<computed>"
  public_ip:                         "" => "<computed>"
  root_block_device.#:               "" => "<computed>"
  security_groups.#:                 "" => "<computed>"
  source_dest_check:                 "" => "true"
  subnet_id:                         "" => "redacted"
  tags.%:                            "" => "8"
  tags.Application:                  "" => "nomad client"
  tags.DeployedBy:                   "" => "terraform"
  tags.Name:                         "" => "nc"
  tenancy:                           "" => "<computed>"
  user_data:                         "" => "6657506d39f801a03919e9492fd798b3527a2832"
  vpc_security_group_ids.#:          "" => "2"
  vpc_security_group_ids.1824671086: "" => "redacted"
  vpc_security_group_ids.741149837:  "" => "redacted"�[0m
2017/03/07 10:49:03 [DEBUG] plugin: terraform: aws-provider (internal) 2017/03/07 10:49:03 [DEBUG] [aws-sdk-go] DEBUG: Response ec2/RunInstances Details:
2017/03/07 10:49:03 [DEBUG] plugin: terraform: ---[ RESPONSE ]--------------------------------------
2017/03/07 10:49:03 [DEBUG] plugin: terraform: HTTP/1.1 200 OK
2017/03/07 10:49:03 [DEBUG] plugin: terraform: Connection: close
2017/03/07 10:49:03 [DEBUG] plugin: terraform: Transfer-Encoding: chunked
2017/03/07 10:49:03 [DEBUG] plugin: terraform: Content-Type: text/xml;charset=UTF-8
2017/03/07 10:49:03 [DEBUG] plugin: terraform: Date: Tue, 07 Mar 2017 15:49:02 GMT
2017/03/07 10:49:03 [DEBUG] plugin: terraform: Server: AmazonEC2
2017/03/07 10:49:03 [DEBUG] plugin: terraform: Vary: Accept-Encoding
2017/03/07 10:49:03 [DEBUG] plugin: terraform: 
2017/03/07 10:49:03 [DEBUG] plugin: terraform: 121e
2017/03/07 10:49:03 [DEBUG] plugin: terraform: <?xml version="1.0" encoding="UTF-8"?>
2017/03/07 10:49:03 [DEBUG] plugin: terraform: <RunInstancesResponse xmlns="http://ec2.amazonaws.com/doc/2016-11-15/">
2017/03/07 10:49:03 [DEBUG] plugin: terraform:     <requestId>02863e25-51dc-422a-a6fd-f23fbed2cb4c</requestId>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:     <reservationId>r-0b33f419ba61452fa</reservationId>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:     <ownerId>redacted</ownerId>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:     <groupSet/>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:     <instancesSet>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:         <item>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:             <instanceId>i-0ad7cc8f518e7789b</instanceId>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:             <imageId>ami-redacted</imageId>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:             <instanceState>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:                 <code>0</code>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:                 <name>pending</name>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:             </instanceState>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:             <privateDnsName>redacted</privateDnsName>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:             <dnsName/>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:             <reason/>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:             <keyName>redacted</keyName>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:             <amiLaunchIndex>0</amiLaunchIndex>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:             <productCodes/>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:             <instanceType>t2.medium</instanceType>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:             <launchTime>2017-03-07T15:49:02.000Z</launchTime>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:             <placement>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:                 <availabilityZone>us-east-1e</availabilityZone>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:                 <groupName/>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:                 <tenancy>default</tenancy>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:             </placement>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:             <monitoring>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:                 <state>disabled</state>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:             </monitoring>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:             <subnetId>redacted</subnetId>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:             <vpcId>redacted</vpcId>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:             <privateIpAddress>redacted</privateIpAddress>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:             <sourceDestCheck>true</sourceDestCheck>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:             <groupSet>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:                 <item>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:                     <groupId>redacted</groupId>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:                     <groupName>redacted</groupName>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:                 </item>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:                 <item>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:                     <groupId>redacted</groupId>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:                     <groupName>redacted</groupName>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:                 </item>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:             </groupSet>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:             <stateReason>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:                 <code>pending</code>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:                 <message>pending</message>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:             </stateReason>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:             <architecture>x86_64</architecture>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:             <rootDeviceType>ebs</rootDeviceType>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:             <rootDeviceName>/dev/sda1</rootDeviceName>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:             <blockDeviceMapping/>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:             <virtualizationType>hvm</virtualizationType>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:             <clientToken/>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:             <hypervisor>xen</hypervisor>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:             <networkInterfaceSet>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:                 <item>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:                     <networkInterfaceId>eni-57b80ebc</networkInterfaceId>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:                     <subnetId>redacted</subnetId>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:                     <vpcId>redacted</vpcId>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:                     <description/>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:                     <ownerId>redacted</ownerId>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:                     <status>in-use</status>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:                     <macAddress>06:67:a7:e6:a0:54</macAddress>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:                     <privateIpAddress>redacted</privateIpAddress>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:                     <privateDnsName>redacted</privateDnsName>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:                     <sourceDestCheck>true</sourceDestCheck>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:                     <groupSet>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:                         <item>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:                             <groupId>redacted</groupId>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:                             <groupName>redacted</groupName>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:                         </item>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:                         <item>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:                             <groupId>redacted</groupId>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:                             <groupName>redacted</groupName>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:                         </item>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:                     </groupSet>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:                     <attachment>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:                         <attachmentId>eni-attach-aca02c8a</attachmentId>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:                         <deviceIndex>0</deviceIndex>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:                         <status>attaching</status>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:                         <attachTime>2017-03-07T15:49:02.000Z</attachTime>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:                         <deleteOnTermination>true</deleteOnTermination>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:                     </attachment>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:                     <privateIpAddressesSet>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:                         <item>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:                             <privateIpAddress>redacted</privateIpAddress>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:                             <privateDnsName>redacted</privateDnsName>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:                             <primary>true</primary>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:                         </item>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:                     </privateIpAddressesSet>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:                     <ipv6AddressesSet/>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:                 </item>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:             </networkInterfaceSet>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:             <iamInstanceProfile>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:                 <arn>arn:aws:iam::redacted:instance-profile/redacted</arn>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:                 <id>redacted</id>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:             </iamInstanceProfile>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:             <ebsOptimized>false</ebsOptimized>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:         </item>
2017/03/07 10:49:03 [DEBUG] plugin: terraform:     </instancesSet>
2017/03/07 10:49:03 [DEBUG] plugin: terraform: </RunInstancesResponse>
2017/03/07 10:49:03 [DEBUG] plugin: terraform: 0
2017/03/07 10:49:03 [DEBUG] plugin: terraform: 
2017/03/07 10:49:03 [DEBUG] plugin: terraform: 
2017/03/07 10:49:03 [DEBUG] plugin: terraform: -----------------------------------------------------
2017/03/07 10:49:03 [DEBUG] plugin: terraform: aws-provider (internal) 2017/03/07 10:49:03 [INFO] Instance ID: i-0ad7cc8f518e7789b
2017/03/07 10:49:03 [DEBUG] plugin: terraform: aws-provider (internal) 2017/03/07 10:49:03 [DEBUG] Waiting for instance (i-0ad7cc8f518e7789b) to become running
2017/03/07 10:49:03 [DEBUG] plugin: terraform: aws-provider (internal) 2017/03/07 10:49:03 [DEBUG] Waiting for state to become: [running]
2017/03/07 10:49:03 [DEBUG] vertex "meta.count-boundary (count boundary fixup)", waiting for: "aws_instance.nomad_client[0]"
2017/03/07 10:49:08 [DEBUG] vertex "meta.count-boundary (count boundary fixup)", waiting for: "aws_instance.nomad_client[0]"
�[0m�[1maws_instance.nomad_client.0: Still creating... (10s elapsed)�[0m�[0m
2017/03/07 10:49:13 [DEBUG] plugin: terraform: aws-provider (internal) 2017/03/07 10:49:13 [DEBUG] [aws-sdk-go] DEBUG: Request ec2/DescribeInstances Details:
2017/03/07 10:49:13 [DEBUG] plugin: terraform: ---[ REQUEST POST-SIGN ]-----------------------------
2017/03/07 10:49:13 [DEBUG] plugin: terraform: POST / HTTP/1.1
2017/03/07 10:49:13 [DEBUG] plugin: terraform: Host: ec2.us-east-1.amazonaws.com
2017/03/07 10:49:13 [DEBUG] plugin: terraform: User-Agent: APN/1.0 HashiCorp/1.0 Terraform/0.8.8
2017/03/07 10:49:13 [DEBUG] plugin: terraform: Content-Length: 76
2017/03/07 10:49:13 [DEBUG] plugin: terraform: Content-Type: application/x-www-form-urlencoded; charset=utf-8
2017/03/07 10:49:13 [DEBUG] plugin: terraform: X-Amz-Date: 20170307T154913Z
2017/03/07 10:49:13 [DEBUG] plugin: terraform: Accept-Encoding: gzip
2017/03/07 10:49:13 [DEBUG] plugin: terraform: 
2017/03/07 10:49:13 [DEBUG] plugin: terraform: Action=DescribeInstances&InstanceId.1=i-0ad7cc8f518e7789b&Version=2016-11-15
2017/03/07 10:49:13 [DEBUG] plugin: terraform: -----------------------------------------------------
2017/03/07 10:49:13 [DEBUG] vertex "meta.count-boundary (count boundary fixup)", waiting for: "aws_instance.nomad_client[0]"
2017/03/07 10:49:14 [DEBUG] plugin: terraform: aws-provider (internal) 2017/03/07 10:49:14 [DEBUG] [aws-sdk-go] DEBUG: Response ec2/DescribeInstances Details:
2017/03/07 10:49:14 [DEBUG] plugin: terraform: ---[ RESPONSE ]--------------------------------------
2017/03/07 10:49:14 [DEBUG] plugin: terraform: HTTP/1.1 200 OK
2017/03/07 10:49:14 [DEBUG] plugin: terraform: Connection: close
2017/03/07 10:49:14 [DEBUG] plugin: terraform: Transfer-Encoding: chunked
2017/03/07 10:49:14 [DEBUG] plugin: terraform: Content-Type: text/xml;charset=UTF-8
2017/03/07 10:49:14 [DEBUG] plugin: terraform: Date: Tue, 07 Mar 2017 15:49:14 GMT
2017/03/07 10:49:14 [DEBUG] plugin: terraform: Server: AmazonEC2
2017/03/07 10:49:14 [DEBUG] plugin: terraform: Vary: Accept-Encoding
2017/03/07 10:49:14 [DEBUG] plugin: terraform: 
2017/03/07 10:49:14 [DEBUG] plugin: terraform: 16f1
2017/03/07 10:49:14 [DEBUG] plugin: terraform: <?xml version="1.0" encoding="UTF-8"?>
2017/03/07 10:49:14 [DEBUG] plugin: terraform: <DescribeInstancesResponse xmlns="http://ec2.amazonaws.com/doc/2016-11-15/">
2017/03/07 10:49:14 [DEBUG] plugin: terraform:     <requestId>17b455cd-ba4c-4fa1-a127-f65c4294bea5</requestId>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:     <reservationSet>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:         <item>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:             <reservationId>r-0b33f419ba61452fa</reservationId>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:             <ownerId>redacted</ownerId>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:             <groupSet/>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:             <instancesSet>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                 <item>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                     <instanceId>i-0ad7cc8f518e7789b</instanceId>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                     <imageId>redacted</imageId>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                     <instanceState>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                         <code>0</code>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                         <name>pending</name>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                     </instanceState>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                     <privateDnsName>redacted</privateDnsName>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                     <dnsName/>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                     <reason/>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                     <keyName>redacted</keyName>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                     <amiLaunchIndex>0</amiLaunchIndex>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                     <productCodes/>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                     <instanceType>t2.medium</instanceType>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                     <launchTime>2017-03-07T15:49:02.000Z</launchTime>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                     <placement>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                         <availabilityZone>us-east-1e</availabilityZone>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                         <groupName/>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                         <tenancy>default</tenancy>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                     </placement>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                     <monitoring>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                         <state>disabled</state>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                     </monitoring>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                     <subnetId>redacted</subnetId>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                     <vpcId>redacted</vpcId>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                     <privateIpAddress>redacted</privateIpAddress>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                     <sourceDestCheck>true</sourceDestCheck>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                     <groupSet>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                         <item>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                             <groupId>redacted</groupId>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                             <groupName>redacted</groupName>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                         </item>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                         <item>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                             <groupId>redacted</groupId>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                             <groupName>redacted</groupName>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                         </item>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                     </groupSet>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                     <architecture>x86_64</architecture>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                     <rootDeviceType>ebs</rootDeviceType>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                     <rootDeviceName>/dev/sda1</rootDeviceName>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                     <blockDeviceMapping>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                         <item>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                             <deviceName>/dev/sda1</deviceName>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                             <ebs>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                                 <volumeId>vol-0692a061fbe0d66d2</volumeId>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                                 <status>attaching</status>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                                 <attachTime>2017-03-07T15:49:03.000Z</attachTime>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                                 <deleteOnTermination>true</deleteOnTermination>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                             </ebs>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                         </item>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                     </blockDeviceMapping>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                     <virtualizationType>hvm</virtualizationType>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                     <clientToken/>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                     <hypervisor>xen</hypervisor>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                     <networkInterfaceSet>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                         <item>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                             <networkInterfaceId>eni-57b80ebc</networkInterfaceId>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                             <subnetId>subnet-38c3b905</subnetId>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                             <vpcId>vpc-a82ea5cc</vpcId>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                             <description/>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                             <ownerId>820570752417</ownerId>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                             <status>in-use</status>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                             <macAddress>06:67:a7:e6:a0:54</macAddress>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                             <privateIpAddress>redacted</privateIpAddress>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                             <privateDnsName>redacted</privateDnsName>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                             <sourceDestCheck>true</sourceDestCheck>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                             <groupSet>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                                 <item>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                                     <groupId>redacted</groupId>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                                     <groupName>redacted</groupName>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                                 </item>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                                 <item>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                                     <groupId>redacted</groupId>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                                     <groupName>redacted</groupName>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                                 </item>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                             </groupSet>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                             <attachment>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                                 <attachmentId>eni-attach-aca02c8a</attachmentId>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                                 <deviceIndex>0</deviceIndex>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                                 <status>attaching</status>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                                 <attachTime>2017-03-07T15:49:02.000Z</attachTime>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                                 <deleteOnTermination>true</deleteOnTermination>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                             </attachment>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                             <privateIpAddressesSet>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                                 <item>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                                     <privateIpAddress>redacted</privateIpAddress>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                                     <privateDnsName>redacted</privateDnsName>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                                     <primary>true</primary>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                                 </item>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                             </privateIpAddressesSet>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                             <ipv6AddressesSet/>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                         </item>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                     </networkInterfaceSet>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                     <iamInstanceProfile>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                         <arn>arn:aws:iam::redacted:instance-profile/redacted</arn>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                         <id>redacted</id>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                     </iamInstanceProfile>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                     <ebsOptimized>false</ebsOptimized>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:                 </item>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:             </instancesSet>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:         </item>
2017/03/07 10:49:14 [DEBUG] plugin: terraform:     </reservationSet>
2017/03/07 10:49:14 [DEBUG] plugin: terraform: </DescribeInstancesResponse>
2017/03/07 10:49:14 [DEBUG] plugin: terraform: 0
2017/03/07 10:49:14 [DEBUG] plugin: terraform: 
2017/03/07 10:49:14 [DEBUG] plugin: terraform: 
2017/03/07 10:49:14 [DEBUG] plugin: terraform: -----------------------------------------------------
2017/03/07 10:49:14 [DEBUG] plugin: terraform: aws-provider (internal) 2017/03/07 10:49:14 [TRACE] Waiting 3s before next try
22017/03/07 10:49:17 [DEBUG] plugin: terraform: aws-provider (internal) 2017/03/07 10:49:17 [DEBUG] [aws-sdk-go] DEBUG: Request ec2/DescribeInstances Details:
2017/03/07 10:49:17 [DEBUG] plugin: terraform: ---[ REQUEST POST-SIGN ]-----------------------------
2017/03/07 10:49:17 [DEBUG] plugin: terraform: POST / HTTP/1.1
2017/03/07 10:49:17 [DEBUG] plugin: terraform: Host: ec2.us-east-1.amazonaws.com
2017/03/07 10:49:17 [DEBUG] plugin: terraform: User-Agent: APN/1.0 HashiCorp/1.0 Terraform/0.8.8
2017/03/07 10:49:17 [DEBUG] plugin: terraform: Content-Length: 76
2017/03/07 10:49:17 [DEBUG] plugin: terraform: Content-Type: application/x-www-form-urlencoded; charset=utf-8
2017/03/07 10:49:17 [DEBUG] plugin: terraform: X-Amz-Date: 20170307T154917Z
2017/03/07 10:49:17 [DEBUG] plugin: terraform: Accept-Encoding: gzip
2017/03/07 10:49:17 [DEBUG] plugin: terraform: 
2017/03/07 10:49:17 [DEBUG] plugin: terraform: Action=DescribeInstances&InstanceId.1=i-0ad7cc8f518e7789b&Version=2016-11-15
2017/03/07 10:49:17 [DEBUG] plugin: terraform: -----------------------------------------------------
2017/03/07 10:49:18 [DEBUG] plugin: terraform: aws-provider (internal) 2017/03/07 10:49:18 [DEBUG] [aws-sdk-go] DEBUG: Response ec2/DescribeInstances Details:
2017/03/07 10:49:18 [DEBUG] plugin: terraform: ---[ RESPONSE ]--------------------------------------
2017/03/07 10:49:18 [DEBUG] plugin: terraform: HTTP/1.1 200 OK
2017/03/07 10:49:18 [DEBUG] plugin: terraform: Connection: close
2017/03/07 10:49:18 [DEBUG] plugin: terraform: Transfer-Encoding: chunked
2017/03/07 10:49:18 [DEBUG] plugin: terraform: Content-Type: text/xml;charset=UTF-8
2017/03/07 10:49:18 [DEBUG] plugin: terraform: Date: Tue, 07 Mar 2017 15:49:17 GMT
2017/03/07 10:49:18 [DEBUG] plugin: terraform: Server: AmazonEC2
2017/03/07 10:49:18 [DEBUG] plugin: terraform: Vary: Accept-Encoding
2017/03/07 10:49:18 [DEBUG] plugin: terraform: 
2017/03/07 10:49:18 [DEBUG] plugin: terraform: 16f0
2017/03/07 10:49:18 [DEBUG] plugin: terraform: <?xml version="1.0" encoding="UTF-8"?>
2017/03/07 10:49:18 [DEBUG] plugin: terraform: <DescribeInstancesResponse xmlns="http://ec2.amazonaws.com/doc/2016-11-15/">
2017/03/07 10:49:18 [DEBUG] plugin: terraform:     <requestId>ae0d7325-8f76-4657-971d-65b413d699c3</requestId>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:     <reservationSet>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:         <item>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:             <reservationId>r-0b33f419ba61452fa</reservationId>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:             <ownerId>820570752417</ownerId>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:             <groupSet/>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:             <instancesSet>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                 <item>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                     <instanceId>i-0ad7cc8f518e7789b</instanceId>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                     <imageId>ami-e2449df4</imageId>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                     <instanceState>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                         <code>16</code>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                         <name>running</name>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                     </instanceState>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                     <privateDnsName>redacted</privateDnsName>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                     <dnsName/>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                     <reason/>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                     <keyName>redacted</keyName>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                     <amiLaunchIndex>0</amiLaunchIndex>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                     <productCodes/>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                     <instanceType>t2.medium</instanceType>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                     <launchTime>2017-03-07T15:49:02.000Z</launchTime>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                     <placement>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                         <availabilityZone>us-east-1e</availabilityZone>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                         <groupName/>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                         <tenancy>default</tenancy>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                     </placement>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                     <monitoring>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                         <state>disabled</state>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                     </monitoring>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                     <subnetId>redacted</subnetId>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                     <vpcId>redacted</vpcId>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                     <privateIpAddress>redacted</privateIpAddress>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                     <sourceDestCheck>true</sourceDestCheck>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                     <groupSet>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                         <item>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                             <groupId>redacted</groupId>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                             <groupName>redacted</groupName>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                         </item>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                         <item>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                             <groupId>redacted</groupId>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                             <groupName>redacted</groupName>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                         </item>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                     </groupSet>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                     <architecture>x86_64</architecture>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                     <rootDeviceType>ebs</rootDeviceType>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                     <rootDeviceName>/dev/sda1</rootDeviceName>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                     <blockDeviceMapping>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                         <item>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                             <deviceName>/dev/sda1</deviceName>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                             <ebs>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                                 <volumeId>vol-0692a061fbe0d66d2</volumeId>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                                 <status>attached</status>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                                 <attachTime>2017-03-07T15:49:03.000Z</attachTime>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                                 <deleteOnTermination>true</deleteOnTermination>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                             </ebs>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                         </item>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                     </blockDeviceMapping>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                     <virtualizationType>hvm</virtualizationType>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                     <clientToken/>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                     <hypervisor>xen</hypervisor>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                     <networkInterfaceSet>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                         <item>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                             <networkInterfaceId>eni-57b80ebc</networkInterfaceId>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                             <subnetId>redacted</subnetId>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                             <vpcId>redacted</vpcId>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                             <description/>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                             <ownerId>redacted</ownerId>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                             <status>in-use</status>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                             <macAddress>06:67:a7:e6:a0:54</macAddress>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                             <privateIpAddress>redacted</privateIpAddress>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                             <privateDnsName>redacted</privateDnsName>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                             <sourceDestCheck>true</sourceDestCheck>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                             <groupSet>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                                 <item>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                                     <groupId>redacted</groupId>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                                     <groupName>redacted</groupName>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                                 </item>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                                 <item>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                                     <groupId>redacted</groupId>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                                     <groupName>redacted</groupName>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                                 </item>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                             </groupSet>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                             <attachment>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                                 <attachmentId>eni-attach-aca02c8a</attachmentId>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                                 <deviceIndex>0</deviceIndex>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                                 <status>attached</status>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                                 <attachTime>2017-03-07T15:49:02.000Z</attachTime>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                                 <deleteOnTermination>true</deleteOnTermination>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                             </attachment>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                             <privateIpAddressesSet>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                                 <item>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                                     <privateIpAddress>redacted</privateIpAddress>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                                     <privateDnsName>redacted</privateDnsName>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                                     <primary>true</primary>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                                 </item>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                             </privateIpAddressesSet>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                             <ipv6AddressesSet/>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                         </item>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                     </networkInterfaceSet>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                     <iamInstanceProfile>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                         <arn>arn:aws:iam::redacted:instance-profile/redacted</arn>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                         <id>redacted</id>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                     </iamInstanceProfile>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                     <ebsOptimized>false</ebsOptimized>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:                 </item>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:             </instancesSet>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:         </item>
2017/03/07 10:49:18 [DEBUG] plugin: terraform:     </reservationSet>
2017/03/07 10:49:18 [DEBUG] plugin: terraform: </DescribeInstancesResponse>
2017/03/07 10:49:18 [DEBUG] plugin: terraform: 0
2017/03/07 10:49:18 [DEBUG] plugin: terraform: 
2017/03/07 10:49:18 [DEBUG] plugin: terraform: 
2017/03/07 10:49:18 [DEBUG] plugin: terraform: -----------------------------------------------------
2017/03/07 10:49:18 [DEBUG] plugin: terraform: aws-provider (internal) 2017/03/07 10:49:18 [DEBUG] Matching ^aws:* with DeployedBy
2017/03/07 10:49:18 [DEBUG] plugin: terraform: aws-provider (internal) 2017/03/07 10:49:18 [DEBUG] Matching ^aws:* with Name
2017/03/07 10:49:18 [DEBUG] plugin: terraform: aws-provider (internal) 2017/03/07 10:49:18 [DEBUG] Matching ^aws:* with Application
2017/03/07 10:49:18 [DEBUG] plugin: terraform: aws-provider (internal) 2017/03/07 10:49:18 [DEBUG] Matching ^aws:* with DeployedBy
2017/03/07 10:49:18 [DEBUG] plugin: terraform: aws-provider (internal) 2017/03/07 10:49:18 [DEBUG] Matching ^aws:* with Name
2017/03/07 10:49:18 [DEBUG] plugin: terraform: aws-provider (internal) 2017/03/07 10:49:18 [DEBUG] Waiting for state to become: [success]
2017/03/07 10:49:18 [DEBUG] plugin: terraform: aws-provider (internal) 2017/03/07 10:49:18 [DEBUG] Creating tags: [{
2017/03/07 10:49:18 [DEBUG] plugin: terraform:   Key: "Application",
2017/03/07 10:49:18 [DEBUG] plugin: terraform:   Value: "nomad client"
2017/03/07 10:49:18 [DEBUG] plugin: terraform: } {
2017/03/07 10:49:18 [DEBUG] plugin: terraform:   Key: "DeployedBy",
2017/03/07 10:49:18 [DEBUG] plugin: terraform:   Value: "terraform"
2017/03/07 10:49:18 [DEBUG] plugin: terraform: } {
2017/03/07 10:49:18 [DEBUG] plugin: terraform:   Key: "Name",
2017/03/07 10:49:18 [DEBUG] plugin: terraform:   Value: "nc"
2017/03/07 10:49:18 [DEBUG] plugin: terraform: }] for i-0ad7cc8f518e7789b
2017/03/07 10:49:18 [DEBUG] plugin: terraform: aws-provider (internal) 2017/03/07 10:49:18 [DEBUG] [aws-sdk-go] DEBUG: Request ec2/CreateTags Details:
2017/03/07 10:49:18 [DEBUG] plugin: terraform: ---[ REQUEST POST-SIGN ]-----------------------------
2017/03/07 10:49:18 [DEBUG] plugin: terraform: POST / HTTP/1.1
2017/03/07 10:49:18 [DEBUG] plugin: terraform: Host: ec2.us-east-1.amazonaws.com
2017/03/07 10:49:18 [DEBUG] plugin: terraform: User-Agent: APN/1.0 HashiCorp/1.0 Terraform/0.8.8
2017/03/07 10:49:18 [DEBUG] plugin: terraform: Content-Length: 452
2017/03/07 10:49:18 [DEBUG] plugin: terraform: Content-Type: application/x-www-form-urlencoded; charset=utf-8
2017/03/07 10:49:18 [DEBUG] plugin: terraform: X-Amz-Date: 20170307T154918Z
2017/03/07 10:49:18 [DEBUG] plugin: terraform: Accept-Encoding: gzip
2017/03/07 10:49:18 [DEBUG] plugin: terraform: 
2017/03/07 10:49:18 [DEBUG] plugin: terraform: -----------------------------------------------------
2017/03/07 10:49:18 [DEBUG] vertex "meta.count-boundary (count boundary fixup)", waiting for: "aws_instance.nomad_client[0]"
2017/03/07 10:49:19 [DEBUG] plugin: terraform: aws-provider (internal) 2017/03/07 10:49:19 [DEBUG] [aws-sdk-go] DEBUG: Response ec2/CreateTags Details:
2017/03/07 10:49:19 [DEBUG] plugin: terraform: ---[ RESPONSE ]--------------------------------------
2017/03/07 10:49:19 [DEBUG] plugin: terraform: HTTP/1.1 200 OK
2017/03/07 10:49:19 [DEBUG] plugin: terraform: Connection: close
2017/03/07 10:49:19 [DEBUG] plugin: terraform: Transfer-Encoding: chunked
2017/03/07 10:49:19 [DEBUG] plugin: terraform: Content-Type: text/xml;charset=UTF-8
2017/03/07 10:49:19 [DEBUG] plugin: terraform: Date: Tue, 07 Mar 2017 15:49:18 GMT
2017/03/07 10:49:19 [DEBUG] plugin: terraform: Server: AmazonEC2
2017/03/07 10:49:19 [DEBUG] plugin: terraform: Vary: Accept-Encoding
2017/03/07 10:49:19 [DEBUG] plugin: terraform: 
2017/03/07 10:49:19 [DEBUG] plugin: terraform: dc
2017/03/07 10:49:19 [DEBUG] plugin: terraform: <?xml version="1.0" encoding="UTF-8"?>
2017/03/07 10:49:19 [DEBUG] plugin: terraform: <CreateTagsResponse xmlns="http://ec2.amazonaws.com/doc/2016-11-15/">
2017/03/07 10:49:19 [DEBUG] plugin: terraform:     <requestId>4f148bff-0462-42b6-bd15-965b8918007b</requestId>
2017/03/07 10:49:19 [DEBUG] plugin: terraform:     <return>true</return>
2017/03/07 10:49:19 [DEBUG] plugin: terraform: </CreateTagsResponse>
2017/03/07 10:49:19 [DEBUG] plugin: terraform: 0
2017/03/07 10:49:19 [DEBUG] plugin: terraform: 
2017/03/07 10:49:19 [DEBUG] plugin: terraform: 
2017/03/07 10:49:19 [DEBUG] plugin: terraform: -----------------------------------------------------
2017/03/07 10:49:19 [DEBUG] plugin: terraform: aws-provider (internal) 2017/03/07 10:49:19 [DEBUG] [aws-sdk-go] DEBUG: Request ec2/DescribeIamInstanceProfileAssociations Details:
2017/03/07 10:49:19 [DEBUG] plugin: terraform: ---[ REQUEST POST-SIGN ]-----------------------------
2017/03/07 10:49:19 [DEBUG] plugin: terraform: POST / HTTP/1.1
2017/03/07 10:49:19 [DEBUG] plugin: terraform: Host: ec2.us-east-1.amazonaws.com
2017/03/07 10:49:19 [DEBUG] plugin: terraform: User-Agent: APN/1.0 HashiCorp/1.0 Terraform/0.8.8
2017/03/07 10:49:19 [DEBUG] plugin: terraform: Content-Length: 127
2017/03/07 10:49:19 [DEBUG] plugin: terraform: Content-Type: application/x-www-form-urlencoded; charset=utf-8
2017/03/07 10:49:19 [DEBUG] plugin: terraform: X-Amz-Date: 20170307T154919Z
2017/03/07 10:49:19 [DEBUG] plugin: terraform: Accept-Encoding: gzip
2017/03/07 10:49:19 [DEBUG] plugin: terraform: 
2017/03/07 10:49:19 [DEBUG] plugin: terraform: Action=DescribeIamInstanceProfileAssociations&Filter.1.Name=instance-id&Filter.1.Value.1=i-0ad7cc8f518e7789b&Version=2016-11-15
2017/03/07 10:49:19 [DEBUG] plugin: terraform: -----------------------------------------------------
2017/03/07 10:49:20 [DEBUG] plugin: terraform: aws-provider (internal) 2017/03/07 10:49:20 [DEBUG] [aws-sdk-go] DEBUG: Response ec2/DescribeIamInstanceProfileAssociations Details:
2017/03/07 10:49:20 [DEBUG] plugin: terraform: ---[ RESPONSE ]--------------------------------------
2017/03/07 10:49:20 [DEBUG] plugin: terraform: HTTP/1.1 200 OK
2017/03/07 10:49:20 [DEBUG] plugin: terraform: Connection: close
2017/03/07 10:49:20 [DEBUG] plugin: terraform: Transfer-Encoding: chunked
2017/03/07 10:49:20 [DEBUG] plugin: terraform: Content-Type: text/xml;charset=UTF-8
2017/03/07 10:49:20 [DEBUG] plugin: terraform: Date: Tue, 07 Mar 2017 15:49:19 GMT
2017/03/07 10:49:20 [DEBUG] plugin: terraform: Server: AmazonEC2
2017/03/07 10:49:20 [DEBUG] plugin: terraform: Vary: Accept-Encoding
2017/03/07 10:49:20 [DEBUG] plugin: terraform: 
2017/03/07 10:49:20 [DEBUG] plugin: terraform: 2f6
2017/03/07 10:49:20 [DEBUG] plugin: terraform: <?xml version="1.0" encoding="UTF-8"?>
2017/03/07 10:49:20 [DEBUG] plugin: terraform: <DescribeIamInstanceProfileAssociationsResponse xmlns="http://ec2.amazonaws.com/doc/2016-11-15/">
2017/03/07 10:49:20 [DEBUG] plugin: terraform:     <requestId>aa5720fa-d0e2-4ae7-b68f-9fe4171aa500</requestId>
2017/03/07 10:49:20 [DEBUG] plugin: terraform:     <iamInstanceProfileAssociationSet>
2017/03/07 10:49:20 [DEBUG] plugin: terraform:         <item>
2017/03/07 10:49:20 [DEBUG] plugin: terraform:             <associationId>iip-assoc-0aeef07265b881447</associationId>
2017/03/07 10:49:20 [DEBUG] plugin: terraform:             <iamInstanceProfile>
2017/03/07 10:49:20 [DEBUG] plugin: terraform:                 <arn>arn:aws:iam::redacted:instance-profile/redacted</arn>
2017/03/07 10:49:20 [DEBUG] plugin: terraform:                 <id>redacted</id>
2017/03/07 10:49:20 [DEBUG] plugin: terraform:             </iamInstanceProfile>
2017/03/07 10:49:20 [DEBUG] plugin: terraform:             <instanceId>i-0ad7cc8f518e7789b</instanceId>
2017/03/07 10:49:20 [DEBUG] plugin: terraform:             <state>associated</state>
2017/03/07 10:49:20 [DEBUG] plugin: terraform:         </item>
2017/03/07 10:49:20 [DEBUG] plugin: terraform:     </iamInstanceProfileAssociationSet>
2017/03/07 10:49:20 [DEBUG] plugin: terraform: </DescribeIamInstanceProfileAssociationsResponse>
2017/03/07 10:49:20 [DEBUG] plugin: terraform: 0
2017/03/07 10:49:20 [DEBUG] plugin: terraform: 
2017/03/07 10:49:20 [DEBUG] plugin: terraform: 
2017/03/07 10:49:20 [DEBUG] plugin: terraform: -----------------------------------------------------
2017/03/07 10:49:20 [DEBUG] plugin: terraform: aws-provider (internal) 2017/03/07 10:49:20 [DEBUG] [aws-sdk-go] DEBUG: Request ec2/ReplaceIamInstanceProfileAssociation Details:
2017/03/07 10:49:20 [DEBUG] plugin: terraform: ---[ REQUEST POST-SIGN ]-----------------------------
2017/03/07 10:49:20 [DEBUG] plugin: terraform: POST / HTTP/1.1
2017/03/07 10:49:20 [DEBUG] plugin: terraform: Host: ec2.us-east-1.amazonaws.com
2017/03/07 10:49:20 [DEBUG] plugin: terraform: User-Agent: APN/1.0 HashiCorp/1.0 Terraform/0.8.8
2017/03/07 10:49:20 [DEBUG] plugin: terraform: Content-Length: 176
2017/03/07 10:49:20 [DEBUG] plugin: terraform: Content-Type: application/x-www-form-urlencoded; charset=utf-8
2017/03/07 10:49:20 [DEBUG] plugin: terraform: X-Amz-Date: 20170307T154920Z
2017/03/07 10:49:20 [DEBUG] plugin: terraform: Accept-Encoding: gzip
2017/03/07 10:49:20 [DEBUG] plugin: terraform: 
2017/03/07 10:49:20 [DEBUG] plugin: terraform: Action=ReplaceIamInstanceProfileAssociation&AssociationId=iip-assoc-0aeef07265b881447&IamInstanceProfile.Name=redacted&Version=2016-11-15
2017/03/07 10:49:20 [DEBUG] plugin: terraform: -----------------------------------------------------
2017/03/07 10:49:21 [DEBUG] plugin: terraform: aws-provider (internal) 2017/03/07 10:49:21 [DEBUG] [aws-sdk-go] DEBUG: Response ec2/ReplaceIamInstanceProfileAssociation Details:
2017/03/07 10:49:21 [DEBUG] plugin: terraform: ---[ RESPONSE ]--------------------------------------
2017/03/07 10:49:21 [DEBUG] plugin: terraform: HTTP/1.1 403 Forbidden
2017/03/07 10:49:21 [DEBUG] plugin: terraform: Connection: close
2017/03/07 10:49:21 [DEBUG] plugin: terraform: Transfer-Encoding: chunked
2017/03/07 10:49:21 [DEBUG] plugin: terraform: Date: Tue, 07 Mar 2017 15:49:21 GMT
2017/03/07 10:49:21 [DEBUG] plugin: terraform: Server: AmazonEC2
2017/03/07 10:49:21 [DEBUG] plugin: terraform: 
2017/03/07 10:49:21 [DEBUG] plugin: terraform: 4e5
2017/03/07 10:49:21 [DEBUG] plugin: terraform: <?xml version="1.0" encoding="UTF-8"?>
2017/03/07 10:49:21 [DEBUG] plugin: terraform: <Response><Errors><Error><Code>UnauthorizedOperation</Code><Message>You are not authorized to perform this operation. Encoded authorization failure message: qrdq9LHkt8PXXHXB3NdGdjB2xHpRUVDqeaf7KxHrJUckkdUfoYAqh3pIyXknzLgjj5CQ5Sy1dd6GMXrCcCbqVaSu8e_S7jhDzXkuH5j6earRMlgveQ17UM-UhXrVenI2q4SBj3DjsSC_WHd6D-nVgmCbXvtQBbdBCSNYp4S3Dtq2G5mUDX4VUQLlM-VWcY6aYPRSWbu4GYtlP7CcXfxs-17JR8OSYWDlA_BMMuOSfdLGmtafG2w_nYdAwrMLmkp8OcvVvYHuqE9GN5bYbDXU95M9Rb8qlMZJwdvpO3pSOCpRIqFpbllAk9Z98APUBGd0KIjCz5J9171C7Q1Uaht2sfZB5yjca6JDGD7AiTaXVfZZK0NkCHx97m8KqJpHwIkrPnD_gWXzA9EtmkJxX3EWiK9o8Xa_hFrc1sjKgMuIVqetNJExWY0zgbR7tNYH4BU4eEwLg2BjWO931lhhN74lUT9h-hfAEP1dizGuf7ZTwtvAQEXACrT4FowEvBUIQL7_ajE10TBK0UTv3WfFEbLwJFy0wLxUWh3ZoFnwbrdw7eRKosLUspL8c6WMdRQtLzk-RbsfVXfSOXfDHjacSDSfthDktfM0oigX5QtbE4tAGXy7VgEz4a0hI_Mshb2Z902-fw9qR3IskHuxJaIaoJeyUQvMehnxtzx6zdoQRJ1tLgAcdNcka5bRLi4dPjusWbgUuziB-ziEckLYPJpaxQ9HJTDAgH5XA6ZYnA-NXD1EBu724md2Rdu_eLNKC38DwkRtnB-sSta97vLPYeHGX2xY4tOYaHR-srU4EugJb3qV8FUkPVIpfUyv70EqCS-Sac4ucKxsp_aoz_VQNA4JOnqCACrexAaAdULLgAkmhCqjIyKU_nWFEDiIQBf-3qAlVdOKD7WRdRy-l4lLALUPyaOb0QN6E3ww6JML2AuMz8DR6NaAWZgPERBTr0kTY-tnxj6T</Message></Error></Errors><RequestID>e26812bf-6eb0-4ab4-ae96-75f2fc66b445</RequestID></Response>
2

added more previous. sorry - have to be careful not to incur the wrath of infosec dept.

@myoung34
Copy link
Contributor Author

myoung34 commented Mar 7, 2017

@automaticgiant the only thing that stands out is that looks like it's working on an entity that already exists. The first request/response there is describe instance.

Line 1: 2017/03/07 10:49:17 [DEBUG] plugin: terraform: aws-provider (internal) 2017/03/07 10:49:17 [DEBUG] [aws-sdk-go] DEBUG: Request ec2/DescribeInstances Details:

Line 11: 2017/03/07 10:49:17 [DEBUG] plugin: terraform: Action=DescribeInstances&InstanceId.1=i-0ad7cc8f518e7789b&Version=2016-11-15

Do you have the full trace?

If it's not creating it, then it's very possible it is updating it.

@roolo
Copy link

roolo commented Mar 20, 2017

Is there a way how to enforce the old behaviour? We are not prepared for this :(

@stack72
Copy link
Contributor

stack72 commented Mar 21, 2017

Hi all

We found an issue with the code that meant that when you created an instance with an IAM Instance Profile, we would try and immediately replace it (as described in #12898) but there is a PR to make this only happen on Update

//cc @myoung34 @automaticgiant

Hope this helps

Paul

@automaticgiant
Copy link
Contributor

Thanks @stack72 !

@ghost
Copy link

ghost commented Apr 15, 2020

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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement provider/aws waiting-response An issue/pull request is waiting for a response from the community
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support IAM role attachment and replacement for existing EC2 instance
5 participants