Created
October 29, 2019 00:27
-
-
Save speller/8d6b16394e51fcaabddc224df105eba4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2019/10/29 09:18:43 [INFO] Terraform version: 0.12.12 | |
2019/10/29 09:18:43 [INFO] Go runtime version: go1.12.9 | |
2019/10/29 09:18:43 [INFO] CLI args: []string{"/usr/local/bin/terraform", "init", "-backend-config=access_key=*****", "-backend-config=secret_key=*****", "-backend-config=bucket=my-project-terraform-state", "-backend-config=key=dev/dev", "-backend-config=region=ap-northeast-1", "-backend-config=dynamodb_table=terraform", "terraform"} | |
2019/10/29 09:18:43 [DEBUG] Attempting to open CLI config file: /home/speller/.terraformrc | |
2019/10/29 09:18:43 [DEBUG] File doesn't exist, but doesn't need to. Ignoring. | |
2019/10/29 09:18:43 [INFO] CLI command args: []string{"init", "-backend-config=access_key=*****", "-backend-config=secret_key=*****", "-backend-config=bucket=my-project-terraform-state", "-backend-config=key=dev/dev", "-backend-config=region=ap-northeast-1", "-backend-config=dynamodb_table=terraform", "terraform"} | |
Initializing modules... | |
2019/10/29 09:18:43 [TRACE] ModuleInstaller: installing child modules for terraform into .terraform/modules | |
2019/10/29 09:18:43 [DEBUG] Module installer: begin auth-service | |
2019/10/29 09:18:43 [TRACE] ModuleInstaller: Module installer: auth-service <nil> already installed in services/authorization/terraform | |
2019/10/29 09:18:43 [DEBUG] Module installer: begin common | |
2019/10/29 09:18:44 [TRACE] ModuleInstaller: Module installer: common <nil> already installed in terraform/modules/common | |
2019/10/29 09:18:44 [DEBUG] Module installer: begin gql-docker-repo | |
2019/10/29 09:18:44 [TRACE] ModuleInstaller: Module installer: gql-docker-repo <nil> already installed in terraform/modules/ecr | |
2019/10/29 09:18:44 [DEBUG] Module installer: begin graph-ql | |
2019/10/29 09:18:44 [TRACE] ModuleInstaller: Module installer: graph-ql <nil> already installed in services/graphql/terraform | |
2019/10/29 09:18:44 [DEBUG] Module installer: begin graph-ql.gql | |
2019/10/29 09:18:44 [TRACE] ModuleInstaller: Module installer: graph-ql.gql <nil> already installed in terraform/modules/ec2-docker | |
2019/10/29 09:18:44 [DEBUG] Module installer: begin main-db | |
2019/10/29 09:18:44 [TRACE] ModuleInstaller: Module installer: main-db <nil> already installed in services/db/terraform | |
2019/10/29 09:18:44 [TRACE] modsdir: writing modules manifest to .terraform/modules/modules.json | |
Initializing the backend... | |
2019/10/29 09:18:44 [TRACE] Meta.Backend: merging -backend-config=... CLI overrides into backend configuration | |
2019/10/29 09:18:44 [TRACE] Meta.Backend: built configuration for "s3" backend with hash value 704415183 | |
2019/10/29 09:18:44 [TRACE] Preserving existing state lineage "5d2f6eeb-215c-3494-76e5-df3fda70433b" | |
2019/10/29 09:18:44 [TRACE] Preserving existing state lineage "5d2f6eeb-215c-3494-76e5-df3fda70433b" | |
2019/10/29 09:18:44 [TRACE] Meta.Backend: working directory was previously initialized for "s3" backend | |
2019/10/29 09:18:44 [TRACE] backendConfigNeedsMigration: given configuration matches cached configuration, so no migration is required | |
2019/10/29 09:18:44 [TRACE] Meta.Backend: using already-initialized "s3" backend configuration | |
2019/10/29 09:18:44 [INFO] Setting AWS metadata API timeout to 100ms | |
2019/10/29 09:18:44 [INFO] Ignoring AWS metadata API endpoint at default location as it doesn't return any instance-id | |
2019/10/29 09:18:44 [INFO] AWS Auth provider used: "StaticProvider" | |
2019/10/29 09:18:44 [DEBUG] Trying to get account information via sts:GetCallerIdentity | |
2019/10/29 09:18:44 [DEBUG] [aws-sdk-go] DEBUG: Request sts/GetCallerIdentity Details: | |
---[ REQUEST POST-SIGN ]----------------------------- | |
POST / HTTP/1.1 | |
Host: sts.amazonaws.com | |
User-Agent: aws-sdk-go/1.25.3 (go1.12.9; linux; amd64) APN/1.0 HashiCorp/1.0 Terraform/0.12.12 | |
Content-Length: 43 | |
Authorization: AWS4-HMAC-SHA256 Credential=*****/20191029/us-east-1/sts/aws4_request, SignedHeaders=content-length;content-type;host;x-amz-date, Signature=*** | |
Content-Type: application/x-www-form-urlencoded; charset=utf-8 | |
X-Amz-Date: 20191029T001844Z | |
Accept-Encoding: gzip | |
Action=GetCallerIdentity&Version=2011-06-15 | |
----------------------------------------------------- | |
2019/10/29 09:18:50 [DEBUG] [aws-sdk-go] DEBUG: Response sts/GetCallerIdentity Details: | |
---[ RESPONSE ]-------------------------------------- | |
HTTP/1.1 200 OK | |
Connection: close | |
Content-Length: 412 | |
Content-Type: text/xml | |
Date: Tue, 29 Oct 2019 00:18:49 GMT | |
X-Amzn-Requestid: ae2fd996-f9e1-11e9-bfa0-793423308022 | |
----------------------------------------------------- | |
2019/10/29 09:18:50 [DEBUG] [aws-sdk-go] <GetCallerIdentityResponse xmlns="https://sts.amazonaws.com/doc/2011-06-15/"> | |
<GetCallerIdentityResult> | |
<Arn>arn:aws:iam::832128879194:user/terraform-state</Arn> | |
<UserId>AIDA4DPV7BJNIVHQDNYRR</UserId> | |
<Account>832128879194</Account> | |
</GetCallerIdentityResult> | |
<ResponseMetadata> | |
<RequestId>ae2fd996-f9e1-11e9-bfa0-793423308022</RequestId> | |
</ResponseMetadata> | |
</GetCallerIdentityResponse> | |
2019/10/29 09:18:50 [DEBUG] [aws-sdk-go] DEBUG: Request s3/ListObjects Details: | |
---[ REQUEST POST-SIGN ]----------------------------- | |
GET /?prefix=env%3A%2F HTTP/1.1 | |
Host: my-project-terraform-state.s3.ap-northeast-1.amazonaws.com | |
User-Agent: aws-sdk-go/1.25.3 (go1.12.9; linux; amd64) APN/1.0 HashiCorp/1.0 Terraform/0.12.12 | |
Authorization: AWS4-HMAC-SHA256 Credential=*****/20191029/ap-northeast-1/s3/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=*** | |
X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 | |
X-Amz-Date: 20191029T001850Z | |
Accept-Encoding: gzip | |
----------------------------------------------------- | |
2019/10/29 09:18:55 [DEBUG] [aws-sdk-go] DEBUG: Response s3/ListObjects Details: | |
---[ RESPONSE ]-------------------------------------- | |
HTTP/1.1 200 OK | |
Connection: close | |
Transfer-Encoding: chunked | |
Content-Type: application/xml | |
Date: Tue, 29 Oct 2019 00:18:55 GMT | |
Server: AmazonS3 | |
X-Amz-Bucket-Region: ap-northeast-1 | |
X-Amz-Id-2: p207UaR8dLl2CMMwWpmXyEq85rzbw+cVtX77v1yb4i30QKEHr4P7dZWo2CdKNS/sXTT8a26Cr7o= | |
X-Amz-Request-Id: CDCF94AB19C6B822 | |
----------------------------------------------------- | |
2019/10/29 09:18:55 [DEBUG] [aws-sdk-go] <?xml version="1.0" encoding="UTF-8"?> | |
2019/10/29 09:18:55 [TRACE] Meta.Backend: instantiated backend of type *s3.Backend | |
2019/10/29 09:18:55 [DEBUG] checking for provider in "." | |
2019/10/29 09:18:55 [DEBUG] checking for provider in "/usr/local/bin" | |
2019/10/29 09:18:55 [DEBUG] checking for provider in ".terraform/plugins/linux_amd64" | |
2019/10/29 09:18:55 [DEBUG] found provider "terraform-provider-archive_v1.3.0_x4" | |
2019/10/29 09:18:55 [DEBUG] found provider "terraform-provider-aws_v2.33.0_x4" | |
2019/10/29 09:18:55 [DEBUG] found provider "terraform-provider-external_v1.2.0_x4" | |
2019/10/29 09:18:55 [DEBUG] found provider "terraform-provider-null_v2.1.2_x4" | |
2019/10/29 09:18:55 [DEBUG] found provider "terraform-provider-template_v2.1.2_x4" | |
2019/10/29 09:18:55 [DEBUG] found valid plugin: "archive", "1.3.0", "/mnt/c/develop/projects/my-project/infra/.terraform/plugins/linux_amd64/terraform-provider-archive_v1.3.0_x4" | |
2019/10/29 09:18:55 [DEBUG] found valid plugin: "aws", "2.33.0", "/mnt/c/develop/projects/my-project/infra/.terraform/plugins/linux_amd64/terraform-provider-aws_v2.33.0_x4" | |
2019/10/29 09:18:55 [DEBUG] found valid plugin: "external", "1.2.0", "/mnt/c/develop/projects/my-project/infra/.terraform/plugins/linux_amd64/terraform-provider-external_v1.2.0_x4" | |
2019/10/29 09:18:55 [DEBUG] found valid plugin: "null", "2.1.2", "/mnt/c/develop/projects/my-project/infra/.terraform/plugins/linux_amd64/terraform-provider-null_v2.1.2_x4" | |
2019/10/29 09:18:55 [DEBUG] found valid plugin: "template", "2.1.2", "/mnt/c/develop/projects/my-project/infra/.terraform/plugins/linux_amd64/terraform-provider-template_v2.1.2_x4" | |
2019/10/29 09:18:55 [DEBUG] checking for provisioner in "." | |
2019/10/29 09:18:55 [DEBUG] checking for provisioner in "/usr/local/bin" | |
2019/10/29 09:18:55 [DEBUG] checking for provisioner in ".terraform/plugins/linux_amd64" | |
2019/10/29 09:18:55 [TRACE] Meta.Backend: backend *s3.Backend does not support operations, so wrapping it in a local backend | |
2019/10/29 09:18:55 [DEBUG] [aws-sdk-go] DEBUG: Request s3/ListObjects Details: | |
---[ REQUEST POST-SIGN ]----------------------------- | |
GET /?prefix=env%3A%2F HTTP/1.1 | |
Host: my-project-terra | |
form-state.s3.ap-northeast-1.amazonaws.com | |
User-Agent: aws-sdk-go/1.25.3 (go1.12.9; linux; amd64) APN/1.0 HashiCorp/1.0 Terraform/0.12.12 | |
Authorization: AWS4-HMAC-SHA256 Credential=*****/20191029/ap-northeast-1/s3/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=*** | |
X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 | |
X-Amz-Date: 20191029T001855Z | |
Accept-Encoding: gzip | |
----------------------------------------------------- | |
Initializing provider plugins... | |
2019/10/29 09:18:55 [DEBUG] [aws-sdk-go] DEBUG: Response s3/ListObjects Details: | |
---[ RESPONSE ]-------------------------------------- | |
HTTP/1.1 200 OK | |
Connection: close | |
Transfer-Encoding: chunked | |
Content-Type: application/xml | |
Date: Tue, 29 Oct 2019 00:18:55 GMT | |
Server: AmazonS3 | |
X-Amz-Bucket-Region: ap-northeast-1 | |
X-Amz-Id-2: O3xV/cKnL/U/4XfEyfnzP8PIqpN1bXPOabQmL3gZ+rr/XY+PJxZl9U3Tr8bU4AcUtpqKOivSnlw= | |
X-Amz-Request-Id: 081305ED8B63DE5F | |
----------------------------------------------------- | |
2019/10/29 09:18:55 [DEBUG] [aws-sdk-go] <?xml version="1.0" encoding="UTF-8"?> | |
<ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Name>my-project-terraform-state</Name><Prefix>env:/</Prefix><Marker></Marker><MaxKeys>1000</MaxKeys><IsTruncated>false</IsTruncated></ListBucketResult> | |
2019/10/29 09:18:55 [DEBUG] [aws-sdk-go] DEBUG: Request s3/GetObject Details: | |
---[ REQUEST POST-SIGN ]----------------------------- | |
GET /dev/dev HTTP/1.1 | |
Host: my-project-terraform-state.s3.ap-northeast-1.amazonaws.com | |
User-Agent: aws-sdk-go/1.25.3 (go1.12.9; linux; amd64) APN/1.0 HashiCorp/1.0 Terraform/0.12.12 | |
Authorization: AWS4-HMAC-SHA256 Credential=*****/20191029/ap-northeast-1/s3/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=*** | |
X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 | |
X-Amz-Date: 20191029T001855Z | |
Accept-Encoding: gzip | |
----------------------------------------------------- | |
2019/10/29 09:18:55 [DEBUG] [aws-sdk-go] DEBUG: Response s3/GetObject Details: | |
---[ RESPONSE ]-------------------------------------- | |
HTTP/1.1 200 OK | |
Connection: close | |
Content-Length: 40619 | |
Accept-Ranges: bytes | |
Content-Type: application/json | |
Date: Tue, 29 Oct 2019 00:18:56 GMT | |
Etag: "b6c4b13cb2002c6023369e9333f56f44" | |
Last-Modified: Tue, 29 Oct 2019 00:16:23 GMT | |
Server: AmazonS3 | |
X-Amz-Id-2: 3BCo+8B/A0KPkkU94JEZsJcs2AX+ZdnPxTbs+6r8nIGOdCLtxWv2r800nOoTKhDq3vfQMBOxpEA= | |
X-Amz-Request-Id: 03C4BECE5555CB39 | |
X-Amz-Version-Id: szuyK9GCrZYwHpO30GX8emLSMtsR.1q3 | |
----------------------------------------------------- | |
2019/10/29 09:18:55 [DEBUG] [aws-sdk-go] | |
2019/10/29 09:18:55 [DEBUG] [aws-sdk-go] DEBUG: Request dynamodb/GetItem Details: | |
---[ REQUEST POST-SIGN ]----------------------------- | |
POST / HTTP/1.1 | |
Host: dynamodb.ap-northeast-1.amazonaws.com | |
User-Agent: aws-sdk-go/1.25.3 (go1.12.9; linux; amd64) APN/1.0 HashiCorp/1.0 Terraform/0.12.12 | |
Content-Length: 152 | |
Accept-Encoding: identity | |
Authorization: AWS4-HMAC-SHA256 Credential=*****/20191029/ap-northeast-1/dynamodb/aws4_request, SignedHeaders=accept-encoding;content-length;content-type;host;x-amz-date;x-amz-target, Signature=*** | |
Content-Type: application/x-amz-json-1.0 | |
X-Amz-Date: 20191029T001855Z | |
X-Amz-Target: DynamoDB_20120810.GetItem | |
{"ConsistentRead":true,"Key":{"LockID":{"S":"my-project-terraform-state/dev/dev-md5"}},"ProjectionExpression":"LockID, Digest","TableName":"terraform"} | |
----------------------------------------------------- | |
2019/10/29 09:18:55 [DEBUG] [aws-sdk-go] DEBUG: Response dynamodb/GetItem Details: | |
---[ RESPONSE ]-------------------------------------- | |
HTTP/1.1 200 OK | |
Connection: close | |
Content-Length: 117 | |
Content-Type: application/x-amz-json-1.0 | |
Date: Tue, 29 Oct 2019 00:18:55 GMT | |
Server: Server | |
X-Amz-Crc32: 3288482162 | |
X-Amzn-Requestid: BE8ABH72O5I54K3VQ5K2S6REK7VV4KQNSO5AEMVJF66Q9ASUAAJG | |
----------------------------------------------------- | |
2019/10/29 09:18:55 [DEBUG] [aws-sdk-go] {"Item":{"Digest":{"S":"b6c4b13cb2002c6023369e9333f56f44"},"LockID":{"S":"my-project-terraform-state/dev/dev-md5"}}} | |
2019/10/29 09:18:55 [DEBUG] checking for provider in "." | |
2019/10/29 09:18:55 [DEBUG] checking for provider in "/usr/local/bin" | |
2019/10/29 09:18:55 [DEBUG] checking for provider in ".terraform/plugins/linux_amd64" | |
2019/10/29 09:18:55 [DEBUG] found provider "terraform-provider-archive_v1.3.0_x4" | |
2019/10/29 09:18:55 [DEBUG] found provid | |
er "terraform-provider-aws_v2.33.0_x4" | |
2019/10/29 09:18:55 [DEBUG] found provider "terraform-provider-external_v1.2.0_x4" | |
2019/10/29 09:18:55 [DEBUG] found provider "terraform-provider-null_v2.1.2_x4" | |
2019/10/29 09:18:55 [DEBUG] found provider "terraform-provider-template_v2.1.2_x4" | |
2019/10/29 09:18:55 [DEBUG] found valid plugin: "external", "1.2.0", "/mnt/c/develop/projects/my-project/infra/.terraform/plugins/linux_amd64/terraform-provider-external_v1.2.0_x4" | |
2019/10/29 09:18:55 [DEBUG] found valid plugin: "null", "2.1.2", "/mnt/c/develop/projects/my-project/infra/.terraform/plugins/linux_amd64/terraform-provider-null_v2.1.2_x4" | |
2019/10/29 09:18:55 [DEBUG] found valid plugin: "template", "2.1.2", "/mnt/c/develop/projects/my-project/infra/.terraform/plugins/linux_amd64/terraform-provider-template_v2.1.2_x4" | |
2019/10/29 09:18:55 [DEBUG] found valid plugin: "archive", "1.3.0", "/mnt/c/develop/projects/my-project/infra/.terraform/plugins/linux_amd64/terraform-provider-archive_v1.3.0_x4" | |
2019/10/29 09:18:55 [DEBUG] found valid plugin: "aws", "2.33.0", "/mnt/c/develop/projects/my-project/infra/.terraform/plugins/linux_amd64/terraform-provider-aws_v2.33.0_x4" | |
2019/10/29 09:18:55 [DEBUG] plugin requirements: "template"="~> 2.1" | |
2019/10/29 09:18:55 [DEBUG] plugin requirements: "aws"="~> 2.31" | |
2019/10/29 09:18:55 [DEBUG] plugin requirements: "null"="~> 2.1" | |
2019/10/29 09:18:55 [DEBUG] plugin requirements: "archive"="~> 1.3" | |
2019/10/29 09:18:55 [DEBUG] plugin requirements: "external"="~> 1.2" | |
2019/10/29 09:18:55 [DEBUG] checking for provider in "." | |
2019/10/29 09:18:55 [DEBUG] checking for provider in "/usr/local/bin" | |
2019/10/29 09:18:55 [DEBUG] checking for provider in ".terraform/plugins/linux_amd64" | |
2019/10/29 09:18:55 [DEBUG] found provider "terraform-provider-archive_v1.3.0_x4" | |
2019/10/29 09:18:55 [DEBUG] found provider "terraform-provider-aws_v2.33.0_x4" | |
2019/10/29 09:18:55 [DEBUG] found provider "terraform-provider-external_v1.2.0_x4" | |
2019/10/29 09:18:55 [DEBUG] found provider "terraform-provider-null_v2.1.2_x4" | |
Terraform has been successfully initialized! | |
2019/10/29 09:18:55 [DEBUG] found provider "terraform-provider-template_v2.1.2_x4" | |
2019/10/29 09:18:55 [DEBUG] found valid plugin: "aws", "2.33.0", "/mnt/c/develop/projects/my-project/infra/.terraform/plugins/linux_amd64/terraform-provider-aws_v2.33.0_x4" | |
2019/10/29 09:18:55 [DEBUG] found valid plugin: "external", "1.2.0", "/mnt/c/develop/projects/my-project/infra/.terraform/plugins/linux_amd64/terraform-provider-external_v1.2.0_x4" | |
2019/10/29 09:18:55 [DEBUG] found valid plugin: "null", "2.1.2", "/mnt/c/develop/projects/my-project/infra/.terraform/plugins/linux_amd64/terraform-provider-null_v2.1.2_x4" | |
2019/10/29 09:18:55 [DEBUG] found valid plugin: "template", "2.1.2", "/mnt/c/develop/projects/my-project/infra/.terraform/plugins/linux_amd64/terraform-provider-template_v2.1.2_x4" | |
2019/10/29 09:18:55 [DEBUG] found valid plugin: "archive", "1.3.0", "/mnt/c/develop/projects/my-project/infra/.terraform/plugins/linux_amd64/terraform-provider-archive_v1.3.0_x4" | |
2019/10/29 09:18:56 [DEBUG] checking for provider in ".terraform/plugins/linux_amd64" | |
2019/10/29 09:18:56 [DEBUG] found provider "terraform-provider-archive_v1.3.0_x4" | |
2019/10/29 09:18:56 [DEBUG] found provider "terraform-provider-aws_v2.33.0_x4" | |
2019/10/29 09:18:56 [DEBUG] found provider "terraform-provider-external_v1.2.0_x4" | |
2019/10/29 09:18:56 [DEBUG] found provider "terraform-provider-null_v2.1.2_x4" | |
2019/10/29 09:18:56 [DEBUG] found provider "terraform-provider-template_v2.1.2_x4" | |
You may now begin working with Terraform. Try running "terraform plan" to see | |
any changes that are required for your infrastructure. All Terraform commands | |
should now work. | |
If you ever set or change modules or backend configuration for Terraform, | |
rerun this command to reinitialize your working directory. If you forget, other | |
commands will detect it and remind you to do so if necessary. | |
2019/10/29 09:18:57 [INFO] Terraform version: 0.12.12 | |
2019/10/29 09:18:57 [INFO] Go runtime version: go1.12.9 | |
2019/10/29 09:18:57 [INFO] CLI args: []string{"/usr/local/bin/terraform", "plan"} | |
2019/10/29 09:18:57 [DEBUG] Attempting to open CLI config file: /home/speller/.terraformrc | |
2019/10/29 09:18:57 [DEBUG] File doesn't exist, but doesn't need to. Ignoring. | |
2019/10/29 09:18:57 [INFO] CLI command args: []string{"plan"} | |
2019/10/29 09:18:57 [TRACE] Meta.Backend: no config given or present on disk, so returning nil config | |
2019/10/29 09:18:57 [TRACE] Preserving existing state lineage "5d2f6eeb-215c-3494-76e5-df3fda70433b" | |
2019/10/29 09:18:57 [TRACE] Preserving existing state lineage "5d2f6eeb-215c-3494-76e5-df3fda70433b" | |
Backend reinitialization required. Please run "terraform init". | |
2019/10/29 09:18:57 [TRACE] Meta.Backend: working directory was previously initialized for "s3" backend | |
2019/10/29 09:18:57 [TRACE] Meta.Backend: previously-initialized "s3" backend is no longer present in config | |
Reason: Unsetting the previously set backend "s3" | |
The "backend" is the interface that Terraform uses to store state, | |
perform operations, etc. If this message is showing up, it means that the | |
Terraform configuration you're using is using a custom configuration for | |
the Terraform backend. | |
Changes to backend configurations require reinitialization. This allows | |
Terraform to setup the new configuration, copy existing state, etc. This is | |
only done during "terraform init". Please run that command now then try again. | |
If the change reason above is incorrect, please verify your configuration | |
hasn't changed and try again. At this point, no changes to your existing | |
configuration or state have been made. | |
Error: Initialization required. Please see the error message above. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment