Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnAirRobe/51539c68ee647733926331f9d7456819 to your computer and use it in GitHub Desktop.
Save johnAirRobe/51539c68ee647733926331f9d7456819 to your computer and use it in GitHub Desktop.
Terraform Incompatible provider version error
TF_LOG=trace AWS_PROFILE=test AWS_REGION=us-east-1 TS_ENV=sandbox terraspace init cloudfront-assets-marketplace
2022-04-06T16:13:39.223+1000 [INFO] Terraform version: 1.1.7
2022-04-06T16:13:39.223+1000 [INFO] Go runtime version: go1.17.2
2022-04-06T16:13:39.223+1000 [INFO] CLI args: []string{"/Users/nousunio/.tfenv/versions/1.1.7/terraform", "--version"}
2022-04-06T16:13:39.223+1000 [TRACE] Stdout is not a terminal
2022-04-06T16:13:39.223+1000 [TRACE] Stderr is a terminal of width 184
2022-04-06T16:13:39.223+1000 [TRACE] Stdin is a terminal
2022-04-06T16:13:39.223+1000 [DEBUG] Attempting to open CLI config file: /Users/nousunio/.terraformrc
2022-04-06T16:13:39.223+1000 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2022-04-06T16:13:39.223+1000 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2022-04-06T16:13:39.223+1000 [DEBUG] ignoring non-existing provider search directory /Users/nousunio/.terraform.d/plugins
2022-04-06T16:13:39.223+1000 [DEBUG] ignoring non-existing provider search directory /Users/nousunio/Library/Application Support/io.terraform/plugins
2022-04-06T16:13:39.223+1000 [DEBUG] ignoring non-existing provider search directory /Library/Application Support/io.terraform/plugins
2022-04-06T16:13:39.223+1000 [INFO] CLI command args: []string{"version", "--version"}
Building .terraspace-cache/us-east-1/sandbox/stacks/cloudfront-assets-marketplace
Built in .terraspace-cache/us-east-1/sandbox/stacks/cloudfront-assets-marketplace
Current directory: .terraspace-cache/us-east-1/sandbox/stacks/cloudfront-assets-marketplace
=> terraform init -get -input=false
Initializing the backend...
2022-04-06T16:13:53.326+1000 [INFO] Terraform version: 1.1.7
2022-04-06T16:13:53.326+1000 [INFO] Go runtime version: go1.17.2
2022-04-06T16:13:53.326+1000 [INFO] CLI args: []string{"/Users/nousunio/.tfenv/versions/1.1.7/terraform", "init", "-get", "-input=false"}
2022-04-06T16:13:53.326+1000 [TRACE] Stdout is not a terminal
2022-04-06T16:13:53.326+1000 [TRACE] Stderr is not a terminal
2022-04-06T16:13:53.326+1000 [TRACE] Stdin is not a terminal
2022-04-06T16:13:53.326+1000 [DEBUG] Attempting to open CLI config file: /Users/nousunio/.terraformrc
2022-04-06T16:13:53.326+1000 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2022-04-06T16:13:53.326+1000 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2022-04-06T16:13:53.326+1000 [DEBUG] ignoring non-existing provider search directory /Users/nousunio/.terraform.d/plugins
2022-04-06T16:13:53.326+1000 [DEBUG] ignoring non-existing provider search directory /Users/nousunio/Library/Application Support/io.terraform/plugins
2022-04-06T16:13:53.326+1000 [DEBUG] ignoring non-existing provider search directory /Library/Application Support/io.terraform/plugins
2022-04-06T16:13:53.327+1000 [INFO] CLI command args: []string{"init", "-get", "-input=false"}
2022-04-06T16:13:53.329+1000 [TRACE] Meta.Backend: built configuration for "s3" backend with hash value 2716147322
2022-04-06T16:13:53.329+1000 [TRACE] Preserving existing state lineage "7070ad32-b5aa-6297-b02f-1421864f414f"
2022-04-06T16:13:53.329+1000 [TRACE] Preserving existing state lineage "7070ad32-b5aa-6297-b02f-1421864f414f"
Initializing provider plugins...
- Finding hashicorp/random versions matching "~> 2.0"...
2022-04-06T16:13:53.329+1000 [TRACE] Meta.Backend: working directory was previously initialized for "s3" backend
2022-04-06T16:13:53.329+1000 [TRACE] Meta.Backend: using already-initialized, unchanged "s3" backend configuration
2022-04-06T16:13:53.330+1000 [INFO] AWS Auth provider used: "SharedCredentialsProvider"
2022-04-06T16:13:53.331+1000 [DEBUG] Trying to get account information via sts:GetCallerIdentity
2022-04-06T16:13:53.331+1000 [DEBUG] [aws-sdk-go] DEBUG: Request sts/GetCallerIdentity Details:
---[ REQUEST POST-SIGN ]-----------------------------
POST / HTTP/1.1
Host: sts.amazonaws.com
User-Agent: APN/1.0 HashiCorp/1.0 Terraform/1.1.7 aws-sdk-go/1.42.35 (go1.17.2; darwin; arm64)
Content-Length: 43
Authorization: AWS4-HMAC-SHA256 Credential=AKIAYX4TYKK4WRV7DAGT/20220406/us-east-1/sts/aws4_request, SignedHeaders=content-length;content-type;host;x-amz-date, Signature=41329936989d0efc86f9b94f4a3c548fd40928acaefa6e9edc8df023d5d9fb36
Content-Type: application/x-www-form-urlencoded; charset=utf-8
X-Amz-Date: 20220406T061353Z
Accept-Encoding: gzip
Action=GetCallerIdentity&Version=2011-06-15
-----------------------------------------------------
2022-04-06T16:13:54.325+1000 [DEBUG] [aws-sdk-go] DEBUG: Response sts/GetCallerIdentity Details:
---[ RESPONSE ]--------------------------------------
HTTP/1.1 200 OK
Connection: close
Content-Length: 401
Content-Type: text/xml
Date: Wed, 06 Apr 2022 06:13:53 GMT
Keep-Alive: timeout=5
X-Amzn-Requestid: 1b16fca6-b4a8-416b-8288-9a7e58b47912
-----------------------------------------------------
2022-04-06T16:13:54.325+1000 [DEBUG] [aws-sdk-go] <GetCallerIdentityResponse xmlns="https://sts.amazonaws.com/doc/2011-06-15/">
<GetCallerIdentityResult>
<Arn>arn:aws:iam::601068425913:user/john</Arn>
<UserId>AIDAYX4TYKK4QKA2H6CWB</UserId>
<Account>601068425913</Account>
</GetCallerIdentityResult>
<ResponseMetadata>
<RequestId>1b16fca6-b4a8-416b-8288-9a7e58b47912</RequestId>
</ResponseMetadata>
</GetCallerIdentityResponse>
2022-04-06T16:13:54.326+1000 [DEBUG] [aws-sdk-go] DEBUG: Request s3/ListObjects Details:
---[ REQUEST POST-SIGN ]-----------------------------
GET /?max-keys=1000&prefix=env%3A%2F HTTP/1.1
Host: terraform-state-601068425913-us-east-1-sandbox.s3.amazonaws.com
User-Agent: APN/1.0 HashiCorp/1.0 Terraform/1.1.7 aws-sdk-go/1.42.35 (go1.17.2; darwin; arm64)
Authorization: AWS4-HMAC-SHA256 Credential=AKIAYX4TYKK4WRV7DAGT/20220406/us-east-1/s3/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=04df3bd5175554ba9d43c18aa9e16657f980335b95906d5aee777855f96d4cd2
X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
X-Amz-Date: 20220406T061354Z
Accept-Encoding: gzip
-----------------------------------------------------
2022-04-06T16:13:55.303+1000 [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: Wed, 06 Apr 2022 06:13:56 GMT
Server: AmazonS3
X-Amz-Bucket-Region: us-east-1
X-Amz-Id-2: Mom/cpiMdBmkto+kEnoxJJXM+05PrAQINVg+Ae1OI7sGY8BGx1ANRkGdy5+bCn2qe8O8dTZFxPg=
X-Amz-Request-Id: J859S2WQV22P9ZTR
-----------------------------------------------------
2022-04-06T16:13:55.304+1000 [DEBUG] [aws-sdk-go] <?xml version="1.0" encoding="UTF-8"?>
<ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Name>terraform-state-601068425913-us-east-1-sandbox</Name><Prefix>env:/</Prefix><Marker></Marker><MaxKeys>1000</MaxKeys><IsTruncated>false</IsTruncated></ListBucketResult>
2022-04-06T16:13:55.306+1000 [TRACE] Meta.selectWorkspace: the currently selected workspace is present in the configured backend (default)
2022-04-06T16:13:55.307+1000 [TRACE] Meta.Backend: instantiated backend of type *s3.Backend
2022-04-06T16:13:55.307+1000 [DEBUG] checking for provisioner in "."
2022-04-06T16:13:55.307+1000 [DEBUG] checking for provisioner in "/Users/nousunio/.tfenv/versions/1.1.7"
2022-04-06T16:13:55.307+1000 [TRACE] Meta.Backend: backend *s3.Backend does not support operations, so wrapping it in a local backend
2022-04-06T16:13:55.307+1000 [DEBUG] [aws-sdk-go] DEBUG: Request s3/ListObjects Details:
---[ REQUEST POST-SIGN ]-----------------------------
GET /?max-keys=1000&prefix=env%3A%2F HTTP/1.1
Host: terraform-state-601068425913-us-east-1-sandbox.s3.amazonaws.com
User-Agent: APN/1.0 HashiCorp/1.0 Terraform/1.1.7 aws-sdk-go/1.42.35 (go1.17.2; darwin; arm64)
Authorization: AWS4-HMAC-SHA256 Credential=AKIAYX4TYKK4WRV7DAGT/20220406/us-east-1/s3/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=3630c95479e045f16a1a74d838e9bed0dc51d1113c533e492035af74e8325825
X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
X-Amz-Date: 20220406T061355Z
Accept-Encoding: gzip
-----------------------------------------------------
2022-04-06T16:13:56.246+1000 [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: Wed, 06 Apr 2022 06:13:57 GMT
Server: AmazonS3
X-Amz-Bucket-Region: us-east-1
X-Amz-Id-2: KK+g8zK6vXJ30TzzCA599toKoy9DGv+lhmNB7hUtyMyMy6bEKjaQsYH2ZxvvaN+XYp/zKAxt8rc=
X-Amz-Request-Id: TE5NZJRKR5WXE2C4
-----------------------------------------------------
2022-04-06T16:13:56.246+1000 [DEBUG] [aws-sdk-go] <?xml version="1.0" encoding="UTF-8"?>
<ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Name>terraform-state-601068425913-us-east-1-sandbox</Name><Prefix>env:/</Prefix><Marker></Marker><MaxKeys>1000</MaxKeys><IsTruncated>false</IsTruncated></ListBucketResult>
2022-04-06T16:13:56.247+1000 [DEBUG] [aws-sdk-go] DEBUG: Request s3/GetObject Details:
---[ REQUEST POST-SIGN ]-----------------------------
GET /us-east-1/sandbox/stacks/cloudfront-assets-marketplace/terraform.tfstate HTTP/1.1
Host: terraform-state-601068425913-us-east-1-sandbox.s3.amazonaws.com
User-Agent: APN/1.0 HashiCorp/1.0 Terraform/1.1.7 aws-sdk-go/1.42.35 (go1.17.2; darwin; arm64)
Authorization: AWS4-HMAC-SHA256 Credential=AKIAYX4TYKK4WRV7DAGT/20220406/us-east-1/s3/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=58ce6bf47bbbe3892cf88e3f9f8010a066537d7556565db13dcc73eb4bbdecb7
X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
X-Amz-Date: 20220406T061356Z
Accept-Encoding: gzip
-----------------------------------------------------
2022-04-06T16:13:57.187+1000 [DEBUG] [aws-sdk-go] DEBUG: Response s3/GetObject Details:
---[ RESPONSE ]--------------------------------------
HTTP/1.1 404 Not Found
Connection: close
Transfer-Encoding: chunked
Content-Type: application/xml
Date: Wed, 06 Apr 2022 06:13:56 GMT
Server: AmazonS3
X-Amz-Id-2: 7MGkTj3fBBnCjQX63h2HS+blmQG88K37nOsH4DSa4VWC5GHl1kAQ1uZvCPIcLTbMwTkcihVWjQs=
X-Amz-Request-Id: QXHR9E4Z0CE1SGWY
-----------------------------------------------------
2022-04-06T16:13:57.188+1000 [DEBUG] [aws-sdk-go] <?xml version="1.0" encoding="UTF-8"?>
<Error><Code>NoSuchKey</Code><Message>The specified key does not exist.</Message><Key>us-east-1/sandbox/stacks/cloudfront-assets-marketplace/terraform.tfstate</Key><RequestId>QXHR9E4Z0CE1SGWY</RequestId><HostId>7MGkTj3fBBnCjQX63h2HS+blmQG88K37nOsH4DSa4VWC5GHl1kAQ1uZvCPIcLTbMwTkcihVWjQs=</HostId></Error>
2022-04-06T16:13:57.188+1000 [DEBUG] [aws-sdk-go] DEBUG: Validate Response s3/GetObject failed, attempt 0/5, error NoSuchKey: The specified key does not exist.
status code: 404, request id: QXHR9E4Z0CE1SGWY, host id: 7MGkTj3fBBnCjQX63h2HS+blmQG88K37nOsH4DSa4VWC5GHl1kAQ1uZvCPIcLTbMwTkcihVWjQs=
2022-04-06T16:13:57.188+1000 [DEBUG] [aws-sdk-go] DEBUG: Request dynamodb/GetItem Details:
---[ REQUEST POST-SIGN ]-----------------------------
POST / HTTP/1.1
Host: dynamodb.us-east-1.amazonaws.com
User-Agent: APN/1.0 HashiCorp/1.0 Terraform/1.1.7 aws-sdk-go/1.42.35 (go1.17.2; darwin; arm64)
Content-Length: 242
Accept-Encoding: identity
Authorization: AWS4-HMAC-SHA256 Credential=AKIAYX4TYKK4WRV7DAGT/20220406/us-east-1/dynamodb/aws4_request, SignedHeaders=accept-encoding;content-length;content-type;host;x-amz-date;x-amz-target, Signature=bcda0ad1f7dbcc3d098c67a62f726d4b1e424cce3c47a8e8c7156b34686a663f
Content-Type: application/x-amz-json-1.0
X-Amz-Date: 20220406T061357Z
X-Amz-Target: DynamoDB_20120810.GetItem
{"ConsistentRead":true,"Key":{"LockID":{"S":"terraform-state-601068425913-us-east-1-sandbox/us-east-1/sandbox/stacks/cloudfront-assets-marketplace/terraform.tfstate-md5"}},"ProjectionExpression":"LockID, Digest","TableName":"terraform_locks"}
-----------------------------------------------------
2022-04-06T16:13:58.183+1000 [DEBUG] [aws-sdk-go] DEBUG: Response dynamodb/GetItem Details:
---[ RESPONSE ]--------------------------------------
HTTP/1.1 200 OK
Connection: close
Content-Length: 2
Content-Type: application/x-amz-json-1.0
Date: Wed, 06 Apr 2022 06:13:58 GMT
Server: Server
X-Amz-Crc32: 2745614147
X-Amzn-Requestid: 9IT0IBBL7R5J0763IIV8JBSKRRVV4KQNSO5AEMVJF66Q9ASUAAJG
-----------------------------------------------------
2022-04-06T16:13:58.183+1000 [DEBUG] [aws-sdk-go] {}
2022-04-06T16:13:58.183+1000 [WARN] failed to fetch state md5: invalid md5
2022-04-06T16:13:58.184+1000 [DEBUG] Service discovery for registry.terraform.io at https://registry.terraform.io/.well-known/terraform.json
2022-04-06T16:13:58.184+1000 [TRACE] HTTP client GET request to https://registry.terraform.io/.well-known/terraform.json
- Finding hashicorp/null versions matching "~> 2.0"...
2022-04-06T16:13:58.252+1000 [DEBUG] GET https://registry.terraform.io/v1/providers/hashicorp/random/versions
2022-04-06T16:13:58.252+1000 [TRACE] HTTP client GET request to https://registry.terraform.io/v1/providers/hashicorp/random/versions
2022-04-06T16:13:58.310+1000 [DEBUG] GET https://registry.terraform.io/v1/providers/hashicorp/null/versions
2022-04-06T16:13:58.310+1000 [TRACE] HTTP client GET request to https://registry.terraform.io/v1/providers/hashicorp/null/versions
- Finding hashicorp/aws versions matching ">= 3.28.0"...
2022-04-06T16:13:58.376+1000 [DEBUG] GET https://registry.terraform.io/v1/providers/hashicorp/aws/versions
2022-04-06T16:13:58.376+1000 [TRACE] HTTP client GET request to https://registry.terraform.io/v1/providers/hashicorp/aws/versions
- Installing hashicorp/aws v4.8.0...
2022-04-06T16:13:58.447+1000 [TRACE] providercache.fillMetaCache: scanning directory .terraform/providers
2022-04-06T16:13:58.447+1000 [TRACE] getproviders.SearchLocalDirectory: found registry.terraform.io/hashicorp/aws v4.8.0 for darwin_arm64 at .terraform/providers/registry.terraform.io/hashicorp/aws/4.8.0/darwin_arm64
2022-04-06T16:13:58.447+1000 [TRACE] providercache.fillMetaCache: including .terraform/providers/registry.terraform.io/hashicorp/aws/4.8.0/darwin_arm64 as a candidate package for registry.terraform.io/hashicorp/aws 4.8.0
2022-04-06T16:13:58.447+1000 [DEBUG] GET https://registry.terraform.io/v1/providers/hashicorp/random/2.3.1/download/darwin/arm64
2022-04-06T16:13:58.447+1000 [TRACE] HTTP client GET request to https://registry.terraform.io/v1/providers/hashicorp/random/2.3.1/download/darwin/arm64
2022-04-06T16:13:58.517+1000 [TRACE] providercache.fillMetaCache: using cached result from previous scan of .terraform/providers
2022-04-06T16:13:58.517+1000 [DEBUG] GET https://registry.terraform.io/v1/providers/hashicorp/null/2.1.2/download/darwin/arm64
2022-04-06T16:13:58.517+1000 [TRACE] HTTP client GET request to https://registry.terraform.io/v1/providers/hashicorp/null/2.1.2/download/darwin/arm64
2022-04-06T16:13:58.582+1000 [TRACE] providercache.fillMetaCache: using cached result from previous scan of .terraform/providers
2022-04-06T16:13:58.582+1000 [DEBUG] GET https://registry.terraform.io/v1/providers/hashicorp/aws/4.8.0/download/darwin/arm64
2022-04-06T16:13:58.582+1000 [TRACE] HTTP client GET request to https://registry.terraform.io/v1/providers/hashicorp/aws/4.8.0/download/darwin/arm64
2022-04-06T16:13:58.648+1000 [DEBUG] GET https://releases.hashicorp.com/terraform-provider-aws/4.8.0/terraform-provider-aws_4.8.0_SHA256SUMS
2022-04-06T16:13:58.649+1000 [TRACE] HTTP client GET request to https://releases.hashicorp.com/terraform-provider-aws/4.8.0/terraform-provider-aws_4.8.0_SHA256SUMS
2022-04-06T16:13:58.725+1000 [DEBUG] GET https://releases.hashicorp.com/terraform-provider-aws/4.8.0/terraform-provider-aws_4.8.0_SHA256SUMS.72D7468F.sig
2022-04-06T16:13:58.725+1000 [TRACE] HTTP client GET request to https://releases.hashicorp.com/terraform-provider-aws/4.8.0/terraform-provider-aws_4.8.0_SHA256SUMS.72D7468F.sig
2022-04-06T16:13:58.738+1000 [TRACE] providercache.Dir.InstallPackage: installing registry.terraform.io/hashicorp/aws v4.8.0 from https://releases.hashicorp.com/terraform-provider-aws/4.8.0/terraform-provider-aws_4.8.0_darwin_arm64.zip
2022-04-06T16:13:58.738+1000 [TRACE] HTTP client GET request to https://releases.hashicorp.com/terraform-provider-aws/4.8.0/terraform-provider-aws_4.8.0_darwin_arm64.zip
- Installed hashicorp/aws v4.8.0 (signed by HashiCorp)
2022-04-06T16:14:07.762+1000 [DEBUG] Provider signed by 34365D9472D7468F HashiCorp Security (hashicorp.com/security) <security@hashicorp.com>
2022-04-06T16:14:08.846+1000 [TRACE] providercache.fillMetaCache: scanning directory .terraform/providers
2022-04-06T16:14:08.846+1000 [TRACE] getproviders.SearchLocalDirectory: found registry.terraform.io/hashicorp/aws v4.8.0 for darwin_arm64 at .terraform/providers/registry.terraform.io/hashicorp/aws/4.8.0/darwin_arm64
2022-04-06T16:14:08.846+1000 [TRACE] providercache.fillMetaCache: including .terraform/providers/registry.terraform.io/hashicorp/aws/4.8.0/darwin_arm64 as a candidate package for registry.terraform.io/hashicorp/aws 4.8.0
│ Error: Incompatible provider version
│ Provider registry.terraform.io/hashicorp/random v2.3.1 does not have a
│ package available for your current platform, darwin_arm64.
│ Provider releases are separate from Terraform CLI releases, so not all
│ providers are available for all platforms. Other versions of this provider
│ may have different platforms supported.
│ Error: Incompatible provider version
│ Provider registry.terraform.io/hashicorp/null v2.1.2 does not have a
│ package available for your current platform, darwin_arm64.
│ Provider releases are separate from Terraform CLI releases, so not all
│ providers are available for all platforms. Other versions of this provider
│ may have different platforms supported.
Error running command: terraform init -get -input=false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment