MeredithCorpOSS / ape-dev-rt

Release tool - applies terraform to create and update application infrastructure
Mozilla Public License 2.0
12 stars 4 forks source link

Sending keyboard interrupt results in second execution #12

Closed pmacey closed 6 years ago

pmacey commented 6 years ago
/Volumes/UserSpace/Users/paulm/Documents/Development/Golang/bin/ape-dev-rt apply-infra --env test --app test-app-rt-dev
Authenticated as dev-xxxx (xxxx) @ xxx
Current IP Address: xxx.xxx.xxx.xxx
Note: Locking is not supported. Parallel releases of test-app-rt-dev may cause issues, check with your team.

Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.

data.aws_caller_identity.current: Refreshing state...

------------------------------------------------------------------------

An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
  + create

Terraform will perform the following actions:

  + aws_cloudwatch_log_group.newrelic
      id:                <computed>
      arn:               <computed>
      name:              "sdadasdas"
      retention_in_days: "30"

Plan: 1 to add, 0 to change, 0 to destroy.

------------------------------------------------------------------------

This plan was saved to: /Users/paulm/Documents/Development/Vagrant/Repos/test-infra/planfile

To perform exactly these actions, run the following command to apply:
    terraform apply "/Users/paulm/Documents/Development/Vagrant/Repos/test-infra/planfile"

   __         ___________________________________________________________________
  /  \       /                                                                   \
  |  |       | It looks like you want to change infrastructure of                |
  @  @       | 'test-app-rt-dev' in XXXXX/test.                           |
  || ||      |                                                                   |
  || ||   <--|                                                                   |
  |\_/|      \___________________________________________________________________/
  \___/

continue? y/[n]:^CAuthenticated as dev-pmacey (XXXX) @ XXXX
Current IP Address: 209.251.196.60
Note: Locking is not supported. Parallel releases of test-app-rt-dev may cause issues, check with your team.

2018-05-10T15:25:03.614+0100 [DEBUG] plugin: starting plugin: path=/Users/paulm/Documents/Development/Vagrant/Repos/test-infra/.terraform/plugins/darwin_amd64/terraform-provider-aws_v1.17.0_x4 args=[/Users/paulm/Documents/Development/Vagrant/Repos/test-infra/.terraform/plugins/darwin_amd64/terraform-provider-aws_v1.17.0_x4]
2018-05-10T15:25:03.632+0100 [DEBUG] plugin: waiting for RPC address: path=/Users/paulm/Documents/Development/Vagrant/Repos/test-infra/.terraform/plugins/darwin_amd64/terraform-provider-aws_v1.17.0_x4
2018-05-10T15:25:03.647+0100 [DEBUG] plugin.terraform-provider-aws_v1.17.0_x4: plugin address: timestamp=2018-05-10T15:25:03.647+0100 address=/var/folders/55/9j91bv1s0pn3kt583yygy63c0000gr/T/plugin050385668 network=unix
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.

2018-05-10T15:25:03.716+0100 [DEBUG] plugin.terraform-provider-aws_v1.17.0_x4: 2018/05/10 15:25:03 [INFO] No assume_role block read from configuration
2018-05-10T15:25:03.716+0100 [DEBUG] plugin.terraform-provider-aws_v1.17.0_x4: 2018/05/10 15:25:03 [INFO] Building AWS region structure
2018-05-10T15:25:03.716+0100 [DEBUG] plugin.terraform-provider-aws_v1.17.0_x4: 2018/05/10 15:25:03 [INFO] Building AWS auth structure
2018-05-10T15:25:03.716+0100 [DEBUG] plugin.terraform-provider-aws_v1.17.0_x4: 2018/05/10 15:25:03 [INFO] Setting AWS metadata API timeout to 100ms
2018-05-10T15:25:04.488+0100 [DEBUG] plugin.terraform-provider-aws_v1.17.0_x4: 2018/05/10 15:25:04 [INFO] Ignoring AWS metadata API endpoint at default location as it doesn't return any instance-id
2018-05-10T15:25:04.488+0100 [DEBUG] plugin.terraform-provider-aws_v1.17.0_x4: 2018/05/10 15:25:04 [INFO] AWS Auth provider used: "SharedCredentialsProvider"
2018-05-10T15:25:04.489+0100 [DEBUG] plugin.terraform-provider-aws_v1.17.0_x4: 2018/05/10 15:25:04 [INFO] Initializing DeviceFarm SDK connection
2018-05-10T15:25:04.910+0100 [DEBUG] plugin.terraform-provider-aws_v1.17.0_x4: 2018/05/10 15:25:04 [DEBUG] Trying to get account ID via iam:GetUser
data.aws_caller_identity.current: Refreshing state...
2018-05-10T15:25:05.392+0100 [DEBUG] plugin.terraform-provider-aws_v1.17.0_x4: 2018/05/10 15:25:05 [DEBUG] Reading Caller Identity
2018-05-10T15:25:05.719+0100 [DEBUG] plugin.terraform-provider-aws_v1.17.0_x4: 2018/05/10 15:25:05 [DEBUG] Received Caller Identity: {
2018-05-10T15:25:05.719+0100 [DEBUG] plugin.terraform-provider-aws_v1.17.0_x4:   Account: "xxx",
2018-05-10T15:25:05.719+0100 [DEBUG] plugin.terraform-provider-aws_v1.17.0_x4:   Arn: "arn:aws:iam::xxx:user/dev-xx",
2018-05-10T15:25:05.719+0100 [DEBUG] plugin.terraform-provider-aws_v1.17.0_x4:   UserId: "xxxxx"
2018-05-10T15:25:05.719+0100 [DEBUG] plugin.terraform-provider-aws_v1.17.0_x4: }

------------------------------------------------------------------------
2018-05-10T15:25:05.734+0100 [DEBUG] plugin.terraform-provider-aws_v1.17.0_x4: 2018/05/10 15:25:05 [INFO] No assume_role block read from configuration
2018-05-10T15:25:05.734+0100 [DEBUG] plugin.terraform-provider-aws_v1.17.0_x4: 2018/05/10 15:25:05 [INFO] Building AWS region structure
2018-05-10T15:25:05.734+0100 [DEBUG] plugin.terraform-provider-aws_v1.17.0_x4: 2018/05/10 15:25:05 [INFO] Building AWS auth structure
2018-05-10T15:25:05.734+0100 [DEBUG] plugin.terraform-provider-aws_v1.17.0_x4: 2018/05/10 15:25:05 [INFO] Setting AWS metadata API timeout to 100ms
2018-05-10T15:25:06.372+0100 [DEBUG] plugin.terraform-provider-aws_v1.17.0_x4: 2018/05/10 15:25:06 [INFO] Ignoring AWS metadata API endpoint at default location as it doesn't return any instance-id
2018-05-10T15:25:06.372+0100 [DEBUG] plugin.terraform-provider-aws_v1.17.0_x4: 2018/05/10 15:25:06 [INFO] AWS Auth provider used: "SharedCredentialsProvider"
2018-05-10T15:25:06.373+0100 [DEBUG] plugin.terraform-provider-aws_v1.17.0_x4: 2018/05/10 15:25:06 [INFO] Initializing DeviceFarm SDK connection
2018-05-10T15:25:06.704+0100 [DEBUG] plugin.terraform-provider-aws_v1.17.0_x4: 2018/05/10 15:25:06 [DEBUG] Trying to get account ID via iam:GetUser

An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
  + create

Terraform will perform the following actions:

  + aws_cloudwatch_log_group.newrelic
      id:                <computed>
      arn:               <computed>
      name:              "sdadasdas"
      retention_in_days: "30"

Plan: 1 to add, 0 to change, 0 to destroy.

------------------------------------------------------------------------

This plan was saved to: /Users/paulm/Documents/Development/Vagrant/Repos/test-infra/planfile

To perform exactly these actions, run the following command to apply:
    terraform apply "/Users/paulm/Documents/Development/Vagrant/Repos/test-infra/planfile"

   __         ___________________________________________________________________
  /  \       /                                                                   \
  |  |       | It looks like you want to change infrastructure of                |
  @  @       | 'test-app-rt-dev' in XXXXXX/test.                           |
  || ||      |                                                                   |
  || ||   <--|                                                                   |
  |\_/|      \___________________________________________________________________/
  \___/

continue? y/[n]:^C
zactimeinc commented 6 years ago

This is closed in https://github.com/TimeIncOSS/ape-dev-rt/pull/20