Skip to content

Instantly share code, notes, and snippets.

@BroMattMiller
Created November 27, 2024 13:44
Show Gist options
  • Save BroMattMiller/54b3c5ab4ac2f052157daa66536d392e to your computer and use it in GitHub Desktop.
Save BroMattMiller/54b3c5ab4ac2f052157daa66536d392e to your computer and use it in GitHub Desktop.
Terraform S3 Native State Locking
$ TF_LOG=trace terraform apply
2024-11-27T06:40:39.777-0700 [INFO] Terraform version: 1.10.0
2024-11-27T06:40:39.777-0700 [DEBUG] using github.com/hashicorp/go-tfe v1.70.0
2024-11-27T06:40:39.777-0700 [DEBUG] using github.com/hashicorp/hcl/v2 v2.23.0
2024-11-27T06:40:39.777-0700 [DEBUG] using github.com/hashicorp/terraform-svchost v0.1.1
2024-11-27T06:40:39.777-0700 [DEBUG] using github.com/zclconf/go-cty v1.15.1-0.20241111215639-63279be090d7
2024-11-27T06:40:39.777-0700 [INFO] Go runtime version: go1.23.3
2024-11-27T06:40:39.777-0700 [INFO] CLI args: []string{"/usr/bin/terraform", "apply"}
2024-11-27T06:40:39.777-0700 [TRACE] Stdout is a terminal of width 132
2024-11-27T06:40:39.777-0700 [TRACE] Stderr is a terminal of width 132
2024-11-27T06:40:39.777-0700 [TRACE] Stdin is a terminal
2024-11-27T06:40:39.777-0700 [DEBUG] Attempting to open CLI config file: /home/mmiller/.terraformrc
2024-11-27T06:40:39.777-0700 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2024-11-27T06:40:39.777-0700 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2024-11-27T06:40:39.777-0700 [DEBUG] ignoring non-existing provider search directory /home/mmiller/.terraform.d/plugins
2024-11-27T06:40:39.777-0700 [DEBUG] ignoring non-existing provider search directory /home/mmiller/.local/share/terraform/plugins
2024-11-27T06:40:39.777-0700 [DEBUG] ignoring non-existing provider search directory /usr/local/share/terraform/plugins
2024-11-27T06:40:39.777-0700 [DEBUG] ignoring non-existing provider search directory /usr/share/terraform/plugins
2024-11-27T06:40:39.777-0700 [INFO] CLI command args: []string{"apply"}
2024-11-27T06:40:39.778-0700 [TRACE] Meta.Backend: built configuration for "s3" backend with hash value 2331978323
2024-11-27T06:40:39.778-0700 [TRACE] Meta.Backend: working directory was previously initialized for "s3" backend
2024-11-27T06:40:39.778-0700 [TRACE] Meta.Backend: using already-initialized, unchanged "s3" backend configuration
2024-11-27T06:40:39.778-0700 [TRACE] backend-s3.aws-base: Resolving AWS configuration: tf_backend.operation=Configure tf_backend.req_id=837c026c-35ce-3509-dd32-9e8543231c11 tf_backend.s3.bucket=state.test.biblestudy.tools tf_backend.s3.path=terraform.tfstate
2024-11-27T06:40:39.778-0700 [DEBUG] backend-s3.aws-base: Resolving credentials provider: tf_backend.operation=Configure tf_backend.req_id=837c026c-35ce-3509-dd32-9e8543231c11 tf_backend.s3.bucket=state.test.biblestudy.tools tf_backend.s3.path=terraform.tfstate
2024-11-27T06:40:39.778-0700 [TRACE] backend-s3.aws-base: Building default HTTP client: tf_backend.operation=Configure tf_backend.req_id=837c026c-35ce-3509-dd32-9e8543231c11 tf_backend.s3.bucket=state.test.biblestudy.tools tf_backend.s3.path=terraform.tfstate
2024-11-27T06:40:39.778-0700 [DEBUG] backend-s3.aws-base: Loading configuration: tf_backend.operation=Configure tf_backend.req_id=837c026c-35ce-3509-dd32-9e8543231c11 tf_backend.s3.bucket=state.test.biblestudy.tools tf_backend.s3.path=terraform.tfstate
2024-11-27T06:40:39.778-0700 [DEBUG] backend-s3.aws-base: Retrieving credentials: tf_backend.operation=Configure tf_backend.req_id=837c026c-35ce-3509-dd32-9e8543231c11 tf_backend.s3.bucket=state.test.biblestudy.tools tf_backend.s3.path=terraform.tfstate
2024-11-27T06:40:39.779-0700 [INFO] backend-s3.aws-base: Retrieved credentials: tf_backend.operation=Configure tf_backend.req_id=837c026c-35ce-3509-dd32-9e8543231c11 tf_backend.s3.bucket=state.test.biblestudy.tools tf_backend.s3.path=terraform.tfstate tf_aws.credentials_source=EnvConfigCredentials
2024-11-27T06:40:39.779-0700 [TRACE] backend-s3.aws-base: Building default HTTP client: tf_backend.operation=Configure tf_backend.req_id=837c026c-35ce-3509-dd32-9e8543231c11 tf_backend.s3.bucket=state.test.biblestudy.tools tf_backend.s3.path=terraform.tfstate
2024-11-27T06:40:39.779-0700 [DEBUG] backend-s3.aws-base: Loading configuration: tf_backend.operation=Configure tf_backend.req_id=837c026c-35ce-3509-dd32-9e8543231c11 tf_backend.s3.bucket=state.test.biblestudy.tools tf_backend.s3.path=terraform.tfstate
2024-11-27T06:40:39.779-0700 [DEBUG] backend-s3.aws-base: Retrieving caller identity from STS: tf_backend.operation=Configure tf_backend.req_id=837c026c-35ce-3509-dd32-9e8543231c11 tf_backend.s3.bucket=state.test.biblestudy.tools tf_backend.s3.path=terraform.tfstate
2024-11-27T06:40:39.779-0700 [DEBUG] backend-s3.aws-base: HTTP Request Sent: aws.region=us-east-1 rpc.method=GetCallerIdentity rpc.service=STS rpc.system=aws-api tf_aws.sdk=aws-sdk-go-v2 tf_aws.signing_region="" tf_backend.operation=Configure tf_backend.req_id=837c026c-35ce-3509-dd32-9e8543231c11 tf_backend.s3.bucket=state.test.biblestudy.tools tf_backend.s3.path=terraform.tfstate http.user_agent="APN/1.0 HashiCorp/1.0 Terraform/1.10.0 (+https://www.terraform.io) aws-sdk-go-v2/1.31.0 os/linux lang/go#1.23.3 md/GOOS#linux md/GOARCH#amd64 api/sts#1.31.0" http.request_content_length=43 http.request.header.amz_sdk_invocation_id=39178189-1ab4-43e0-b60e-0ffc71e4c603
http.request.body=
| Action=GetCallerIdentity&Version=2011-06-15
http.url=https://sts.us-east-1.amazonaws.com/ net.peer.name=sts.us-east-1.amazonaws.com http.request.header.x_amz_security_token="*****" http.request.header.amz_sdk_request="attempt=1; max=5" http.request.header.x_amz_date=20241127T134039Z http.request.header.content_type=application/x-www-form-urlencoded http.method=POST http.request.header.authorization="AWS4-HMAC-SHA256 Credential=ASIA************YMYG/20241127/us-east-1/sts/aws4_request, SignedHeaders=amz-sdk-invocation-id;amz-sdk-request;content-length;content-type;host;x-amz-date;x-amz-security-token, Signature=*****"
2024-11-27T06:40:40.156-0700 [DEBUG] backend-s3.aws-base: HTTP Response Received: aws.region=us-east-1 rpc.method=GetCallerIdentity rpc.service=STS rpc.system=aws-api tf_aws.sdk=aws-sdk-go-v2 tf_aws.signing_region="" tf_backend.operation=Configure tf_backend.req_id=837c026c-35ce-3509-dd32-9e8543231c11 tf_backend.s3.bucket=state.test.biblestudy.tools tf_backend.s3.path=terraform.tfstate http.response.header.x_amzn_requestid=1b9696e2-5971-47ff-95b0-bb28132dac32 http.response.header.content_type=text/xml
http.response.body=
| <GetCallerIdentityResponse xmlns="https://sts.amazonaws.com/doc/2011-06-15/">
| <GetCallerIdentityResult>
| <Arn>arn:aws:sts::058043570872:assumed-role/AWSReservedSSO_AdministratorAccess_99f6ed53552af910/matt</Arn>
| <UserId>AROA*************YCTP:matt</UserId>
| <Account>058043570872</Account>
| </GetCallerIdentityResult>
| <ResponseMetadata>
| <RequestId>1b9696e2-5971-47ff-95b0-bb28132dac32</RequestId>
| </ResponseMetadata>
| </GetCallerIdentityResponse>
http.duration=376 http.status_code=200 http.response_content_length=466 http.response.header.date="Wed, 27 Nov 2024 13:40:39 GMT"
2024-11-27T06:40:40.156-0700 [INFO] backend-s3.aws-base: Retrieved caller identity from STS: tf_backend.operation=Configure tf_backend.req_id=837c026c-35ce-3509-dd32-9e8543231c11 tf_backend.s3.bucket=state.test.biblestudy.tools tf_backend.s3.path=terraform.tfstate
2024-11-27T06:40:40.156-0700 [DEBUG] backend-s3.aws-base: Retrieving caller identity from STS: tf_backend.operation=Configure tf_backend.req_id=837c026c-35ce-3509-dd32-9e8543231c11 tf_backend.s3.bucket=state.test.biblestudy.tools tf_backend.s3.path=terraform.tfstate
2024-11-27T06:40:40.157-0700 [DEBUG] backend-s3.aws-base: HTTP Request Sent: aws.region=us-east-1 rpc.method=GetCallerIdentity rpc.service=STS rpc.system=aws-api tf_aws.sdk=aws-sdk-go-v2 tf_aws.signing_region="" tf_backend.operation=Configure tf_backend.req_id=837c026c-35ce-3509-dd32-9e8543231c11 tf_backend.s3.bucket=state.test.biblestudy.tools tf_backend.s3.path=terraform.tfstate http.method=POST http.request_content_length=43 http.request.header.x_amz_security_token="*****" http.request.header.content_type=application/x-www-form-urlencoded
http.request.body=
| Action=GetCallerIdentity&Version=2011-06-15
http.request.header.amz_sdk_invocation_id=ab6ef4e5-4b54-4ee1-b010-23f830604966 http.url=https://sts.us-east-1.amazonaws.com/ net.peer.name=sts.us-east-1.amazonaws.com http.user_agent="APN/1.0 HashiCorp/1.0 Terraform/1.10.0 (+https://www.terraform.io) aws-sdk-go-v2/1.31.0 os/linux lang/go#1.23.3 md/GOOS#linux md/GOARCH#amd64 api/sts#1.31.0" http.request.header.authorization="AWS4-HMAC-SHA256 Credential=ASIA************YMYG/20241127/us-east-1/sts/aws4_request, SignedHeaders=amz-sdk-invocation-id;amz-sdk-request;content-length;content-type;host;x-amz-date;x-amz-security-token, Signature=*****" http.request.header.amz_sdk_request="attempt=1; max=5" http.request.header.x_amz_date=20241127T134040Z
2024-11-27T06:40:40.247-0700 [DEBUG] backend-s3.aws-base: HTTP Response Received: aws.region=us-east-1 rpc.method=GetCallerIdentity rpc.service=STS rpc.system=aws-api tf_aws.sdk=aws-sdk-go-v2 tf_aws.signing_region="" tf_backend.operation=Configure tf_backend.req_id=837c026c-35ce-3509-dd32-9e8543231c11 tf_backend.s3.bucket=state.test.biblestudy.tools tf_backend.s3.path=terraform.tfstate http.response.header.date="Wed, 27 Nov 2024 13:40:40 GMT"
http.response.body=
| <GetCallerIdentityResponse xmlns="https://sts.amazonaws.com/doc/2011-06-15/">
| <GetCallerIdentityResult>
| <Arn>arn:aws:sts::058043570872:assumed-role/AWSReservedSSO_AdministratorAccess_99f6ed53552af910/matt</Arn>
| <UserId>AROA*************YCTP:matt</UserId>
| <Account>058043570872</Account>
| </GetCallerIdentityResult>
| <ResponseMetadata>
| <RequestId>8292ae11-ba83-4359-b616-e06e5e231000</RequestId>
| </ResponseMetadata>
| </GetCallerIdentityResponse>
http.duration=90 http.status_code=200 http.response_content_length=466 http.response.header.x_amzn_requestid=8292ae11-ba83-4359-b616-e06e5e231000 http.response.header.content_type=text/xml
2024-11-27T06:40:40.247-0700 [INFO] backend-s3.aws-base: Retrieved caller identity from STS: tf_backend.operation=Configure tf_backend.req_id=837c026c-35ce-3509-dd32-9e8543231c11 tf_backend.s3.bucket=state.test.biblestudy.tools tf_backend.s3.path=terraform.tfstate
2024-11-27T06:40:40.248-0700 [TRACE] Meta.Backend: instantiated backend of type *s3.Backend
2024-11-27T06:40:40.248-0700 [TRACE] providercache.fillMetaCache: scanning directory .terraform/providers
2024-11-27T06:40:40.248-0700 [TRACE] getproviders.SearchLocalDirectory: found registry.terraform.io/hashicorp/aws v5.72.1 for linux_amd64 at .terraform/providers/registry.terraform.io/hashicorp/aws/5.72.1/linux_amd64
2024-11-27T06:40:40.249-0700 [TRACE] getproviders.SearchLocalDirectory: found registry.terraform.io/hashicorp/aws v5.73.0 for linux_amd64 at .terraform/providers/registry.terraform.io/hashicorp/aws/5.73.0/linux_amd64
2024-11-27T06:40:40.249-0700 [TRACE] getproviders.SearchLocalDirectory: found registry.terraform.io/hashicorp/aws v5.74.0 for linux_amd64 at .terraform/providers/registry.terraform.io/hashicorp/aws/5.74.0/linux_amd64
2024-11-27T06:40:40.249-0700 [TRACE] getproviders.SearchLocalDirectory: found registry.terraform.io/hashicorp/aws v5.75.0 for linux_amd64 at .terraform/providers/registry.terraform.io/hashicorp/aws/5.75.0/linux_amd64
2024-11-27T06:40:40.249-0700 [TRACE] getproviders.SearchLocalDirectory: found registry.terraform.io/hashicorp/aws v5.75.1 for linux_amd64 at .terraform/providers/registry.terraform.io/hashicorp/aws/5.75.1/linux_amd64
2024-11-27T06:40:40.249-0700 [TRACE] getproviders.SearchLocalDirectory: found registry.terraform.io/hashicorp/aws v5.76.0 for linux_amd64 at .terraform/providers/registry.terraform.io/hashicorp/aws/5.76.0/linux_amd64
2024-11-27T06:40:40.249-0700 [TRACE] getproviders.SearchLocalDirectory: found registry.terraform.io/hashicorp/aws v5.77.0 for linux_amd64 at .terraform/providers/registry.terraform.io/hashicorp/aws/5.77.0/linux_amd64
2024-11-27T06:40:40.249-0700 [TRACE] getproviders.SearchLocalDirectory: found registry.terraform.io/hashicorp/aws v5.78.0 for linux_amd64 at .terraform/providers/registry.terraform.io/hashicorp/aws/5.78.0/linux_amd64
2024-11-27T06:40:40.250-0700 [TRACE] providercache.fillMetaCache: including .terraform/providers/registry.terraform.io/hashicorp/aws/5.72.1/linux_amd64 as a candidate package for registry.terraform.io/hashicorp/aws 5.72.1
2024-11-27T06:40:40.250-0700 [TRACE] providercache.fillMetaCache: including .terraform/providers/registry.terraform.io/hashicorp/aws/5.73.0/linux_amd64 as a candidate package for registry.terraform.io/hashicorp/aws 5.73.0
2024-11-27T06:40:40.250-0700 [TRACE] providercache.fillMetaCache: including .terraform/providers/registry.terraform.io/hashicorp/aws/5.74.0/linux_amd64 as a candidate package for registry.terraform.io/hashicorp/aws 5.74.0
2024-11-27T06:40:40.250-0700 [TRACE] providercache.fillMetaCache: including .terraform/providers/registry.terraform.io/hashicorp/aws/5.75.0/linux_amd64 as a candidate package for registry.terraform.io/hashicorp/aws 5.75.0
2024-11-27T06:40:40.250-0700 [TRACE] providercache.fillMetaCache: including .terraform/providers/registry.terraform.io/hashicorp/aws/5.75.1/linux_amd64 as a candidate package for registry.terraform.io/hashicorp/aws 5.75.1
2024-11-27T06:40:40.250-0700 [TRACE] providercache.fillMetaCache: including .terraform/providers/registry.terraform.io/hashicorp/aws/5.76.0/linux_amd64 as a candidate package for registry.terraform.io/hashicorp/aws 5.76.0
2024-11-27T06:40:40.250-0700 [TRACE] providercache.fillMetaCache: including .terraform/providers/registry.terraform.io/hashicorp/aws/5.77.0/linux_amd64 as a candidate package for registry.terraform.io/hashicorp/aws 5.77.0
2024-11-27T06:40:40.250-0700 [TRACE] providercache.fillMetaCache: including .terraform/providers/registry.terraform.io/hashicorp/aws/5.78.0/linux_amd64 as a candidate package for registry.terraform.io/hashicorp/aws 5.78.0
2024-11-27T06:40:42.070-0700 [DEBUG] checking for provisioner in "."
2024-11-27T06:40:42.073-0700 [DEBUG] checking for provisioner in "/usr/bin"
2024-11-27T06:40:42.073-0700 [TRACE] Meta.Backend: backend *s3.Backend does not support operations, so wrapping it in a local backend
2024-11-27T06:40:42.074-0700 [INFO] backend/local: starting Apply operation
2024-11-27T06:40:42.074-0700 [TRACE] backend/local: requesting state manager for workspace "default"
2024-11-27T06:40:42.074-0700 [DEBUG] backend-s3: HTTP Request Sent: aws.region=us-east-1 aws.s3.bucket=state.test.biblestudy.tools rpc.method=ListObjectsV2 rpc.service=S3 rpc.system=aws-api tf_aws.sdk=aws-sdk-go-v2 tf_aws.signing_region="" tf_backend.operation=Workspaces tf_backend.req_id=ec377ece-cbef-f5a6-ccdf-ceb23a3b295e tf_backend.s3.bucket=state.test.biblestudy.tools tf_backend.workspace-prefix=env:/ http.request.header.amz_sdk_request="attempt=1; max=5" http.request.header.x_amz_date=20241127T134042Z http.request.header.accept_encoding=identity http.request.header.x_amz_content_sha256=e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 http.request.header.amz_sdk_invocation_id=77d1e4bc-30dc-4d0c-9579-fa827b05c299 http.request.body="" http.url="https://s3.us-east-1.amazonaws.com/state.test.biblestudy.tools?list-type=2&max-keys=1000&prefix=env%3A%2F" http.request.header.x_amz_security_token="*****" http.user_agent="APN/1.0 HashiCorp/1.0 Terraform/1.10.0 (+https://www.terraform.io) m/C aws-sdk-go-v2/1.31.0 os/linux lang/go#1.23.3 md/GOOS#linux md/GOARCH#amd64 api/s3#1.63.0" http.request.header.authorization="AWS4-HMAC-SHA256 Credential=ASIA************YMYG/20241127/us-east-1/s3/aws4_request, SignedHeaders=accept-encoding;amz-sdk-invocation-id;amz-sdk-request;host;x-amz-content-sha256;x-amz-date;x-amz-security-token, Signature=*****" http.method=GET net.peer.name=s3.us-east-1.amazonaws.com
2024-11-27T06:40:42.435-0700 [DEBUG] backend-s3: HTTP Response Received: aws.region=us-east-1 aws.s3.bucket=state.test.biblestudy.tools rpc.method=ListObjectsV2 rpc.service=S3 rpc.system=aws-api tf_aws.sdk=aws-sdk-go-v2 tf_aws.signing_region="" tf_backend.operation=Workspaces tf_backend.req_id=ec377ece-cbef-f5a6-ccdf-ceb23a3b295e tf_backend.s3.bucket=state.test.biblestudy.tools tf_backend.workspace-prefix=env:/ http.response.header.content_type=application/xml http.response.header.server=AmazonS3 http.response.header.x_amz_request_id=N1XH439QK6TXS2SV http.response.header.x_amz_bucket_region=us-east-1 http.status_code=200 http.response.header.x_amz_id_2=dagQyXWAtLLNKkeDe5ZP8HyM0vwCWjeqZWNdwJZCuIK0RzLEA9TSxZWQM1rDre7k9e3jplR5jROCySjhe3JqvkfOKZL33A1lwT/9KJgetX0= http.response.header.date="Wed, 27 Nov 2024 13:40:43 GMT"
http.response.body=
| <?xml version="1.0" encoding="UTF-8"?>
| <ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Name>state.test.biblestudy.tools</Name><Prefix>env:/</Prefix><KeyCount>0</KeyCount><MaxKeys>1000</MaxKeys><IsTruncated>false</IsTruncated></ListBucketResult>
http.duration=360
2024-11-27T06:40:42.436-0700 [TRACE] backend/local: requesting state lock for workspace "default"
2024-11-27T06:40:42.436-0700 [INFO] backend-s3: Attempting to lock remote state (S3 Native only)...: tf_backend.lock.id=6a691cd8-9934-50b6-3a54-1ab5abf357a4 tf_backend.lock.info="" tf_backend.lock.operation=OperationTypeApply tf_backend.lock.path=state.test.biblestudy.tools/terraform.tfstate tf_backend.lock.version=1.10.0 tf_backend.lock.who=mmiller@dell2 tf_backend.operation=Lock tf_backend.req_id=4142fd3c-fe8c-2486-a948-869785407a49 tf_backend.s3.bucket=state.test.biblestudy.tools tf_backend.s3.path=terraform.tfstate
2024-11-27T06:40:42.436-0700 [DEBUG] backend-s3: Uploading lock file: tf_backend.lock.id=6a691cd8-9934-50b6-3a54-1ab5abf357a4 tf_backend.lock.info="" tf_backend.lock.operation=OperationTypeApply tf_backend.lock.path=state.test.biblestudy.tools/terraform.tfstate tf_backend.lock.version=1.10.0 tf_backend.lock.who=mmiller@dell2 tf_backend.operation=Lock tf_backend.req_id=4142fd3c-fe8c-2486-a948-869785407a49 tf_backend.s3.bucket=state.test.biblestudy.tools tf_backend.s3.path=terraform.tfstate
2024-11-27T06:40:42.436-0700 [DEBUG] backend-s3: HTTP Request Sent: aws.region=us-east-1 aws.s3.bucket=state.test.biblestudy.tools aws.s3.key=terraform.tfstate.tflock rpc.method=PutObject rpc.service=S3 rpc.system=aws-api tf_aws.sdk=aws-sdk-go-v2 tf_aws.signing_region="" tf_backend.lock.id=6a691cd8-9934-50b6-3a54-1ab5abf357a4 tf_backend.lock.info="" tf_backend.lock.operation=OperationTypeApply tf_backend.lock.path=state.test.biblestudy.tools/terraform.tfstate tf_backend.lock.version=1.10.0 tf_backend.lock.who=mmiller@dell2 tf_backend.operation=Lock tf_backend.req_id=4142fd3c-fe8c-2486-a948-869785407a49 tf_backend.s3.bucket=state.test.biblestudy.tools tf_backend.s3.path=terraform.tfstate http.request_content_length=227 http.request.header.x_amz_content_sha256=UNSIGNED-PAYLOAD http.request.header.x_amz_date=20241127T134042Z http.request.header.amz_sdk_request="attempt=1; max=5" http.method=PUT http.url=https://s3.us-east-1.amazonaws.com/state.test.biblestudy.tools/terraform.tfstate.tflock?x-id=PutObject net.peer.name=s3.us-east-1.amazonaws.com http.request.header.authorization="AWS4-HMAC-SHA256 Credential=ASIA************YMYG/20241127/us-east-1/s3/aws4_request, SignedHeaders=accept-encoding;amz-sdk-invocation-id;amz-sdk-request;content-length;content-type;host;if-none-match;x-amz-content-sha256;x-amz-date;x-amz-security-token, Signature=*****" http.request.header.if_none_match="*" http.request.header.content_type=application/json http.request.header.amz_sdk_invocation_id=3303953c-f8a9-401a-8b84-7da067d53286 http.request.header.accept_encoding=identity http.request.body="[Redacted: 227 bytes, Type: application/json]" http.user_agent="APN/1.0 HashiCorp/1.0 Terraform/1.10.0 (+https://www.terraform.io) aws-sdk-go-v2/1.31.0 os/linux lang/go#1.23.3 md/GOOS#linux md/GOARCH#amd64 api/s3#1.63.0" http.request.header.x_amz_security_token="*****"
2024-11-27T06:40:42.566-0700 [DEBUG] backend-s3: HTTP Response Received: aws.region=us-east-1 aws.s3.bucket=state.test.biblestudy.tools aws.s3.key=terraform.tfstate.tflock rpc.method=PutObject rpc.service=S3 rpc.system=aws-api tf_aws.sdk=aws-sdk-go-v2 tf_aws.signing_region="" tf_backend.lock.id=6a691cd8-9934-50b6-3a54-1ab5abf357a4 tf_backend.lock.info="" tf_backend.lock.operation=OperationTypeApply tf_backend.lock.path=state.test.biblestudy.tools/terraform.tfstate tf_backend.lock.version=1.10.0 tf_backend.lock.who=mmiller@dell2 tf_backend.operation=Lock tf_backend.req_id=4142fd3c-fe8c-2486-a948-869785407a49 tf_backend.s3.bucket=state.test.biblestudy.tools tf_backend.s3.path=terraform.tfstate http.status_code=400 http.response.header.server=AmazonS3 http.response.header.x_amz_request_id=N1XX5V9QPZDJ31ZG http.response.header.x_amz_id_2="7b65LbRn1YeMtxhUk1vC0ZhXYnYRlO+KiGM6+ctHvLdJpJMxuI3/T6NGGbU3vZWuOqSRuHsHd3JRB6D4WE5QGTQZrKXh/xNB3Qj3cs9ePYw=" http.response.header.content_type=application/xml http.response.header.date="Wed, 27 Nov 2024 13:40:41 GMT"
http.response.body=
| <?xml version="1.0" encoding="UTF-8"?>
| <Error><Code>InvalidRequest</Code><Message>Content-MD5 OR x-amz-checksum- HTTP header is required for Put Object requests with Object Lock parameters</Message><RequestId>N1XX5V9QPZDJ31ZG</RequestId><HostId>7b65LbRn1YeMtxhUk1vC0ZhXYnYRlO+KiGM6+ctHvLdJpJMxuI3/T6NGGbU3vZWuOqSRuHsHd3JRB6D4WE5QGTQZrKXh/xNB3Qj3cs9ePYw=</HostId></Error>
http.duration=129
2024-11-27T06:40:42.566-0700 [DEBUG] backend-s3: request failed with unretryable error https response error StatusCode: 400, RequestID: N1XX5V9QPZDJ31ZG, HostID: 7b65LbRn1YeMtxhUk1vC0ZhXYnYRlO+KiGM6+ctHvLdJpJMxuI3/T6NGGbU3vZWuOqSRuHsHd3JRB6D4WE5QGTQZrKXh/xNB3Qj3cs9ePYw=, api error InvalidRequest: Content-MD5 OR x-amz-checksum- HTTP header is required for Put Object requests with Object Lock parameters: aws.region=us-east-1 aws.s3.bucket=state.test.biblestudy.tools aws.s3.key=terraform.tfstate.tflock rpc.method=PutObject rpc.service=S3 rpc.system=aws-api tf_aws.sdk=aws-sdk-go-v2 tf_backend.lock.id=6a691cd8-9934-50b6-3a54-1ab5abf357a4 tf_backend.lock.info="" tf_backend.lock.operation=OperationTypeApply tf_backend.lock.path=state.test.biblestudy.tools/terraform.tfstate tf_backend.lock.version=1.10.0 tf_backend.lock.who=mmiller@dell2 tf_backend.operation=Lock tf_backend.req_id=4142fd3c-fe8c-2486-a948-869785407a49 tf_backend.s3.bucket=state.test.biblestudy.tools tf_backend.s3.path=terraform.tfstate
2024-11-27T06:40:42.567-0700 [DEBUG] backend-s3: HTTP Request Sent: aws.region=us-east-1 aws.s3.bucket=state.test.biblestudy.tools aws.s3.key=terraform.tfstate.tflock rpc.method=GetObject rpc.service=S3 rpc.system=aws-api tf_aws.sdk=aws-sdk-go-v2 tf_aws.signing_region="" tf_backend.lock.id=6a691cd8-9934-50b6-3a54-1ab5abf357a4 tf_backend.lock.info="" tf_backend.lock.operation=OperationTypeApply tf_backend.lock.path=state.test.biblestudy.tools/terraform.tfstate tf_backend.lock.version=1.10.0 tf_backend.lock.who=mmiller@dell2 tf_backend.operation=Lock tf_backend.req_id=4142fd3c-fe8c-2486-a948-869785407a49 tf_backend.s3.bucket=state.test.biblestudy.tools tf_backend.s3.path=terraform.tfstate http.request.header.x_amz_content_sha256=e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 http.url=https://s3.us-east-1.amazonaws.com/state.test.biblestudy.tools/terraform.tfstate.tflock?x-id=GetObject http.user_agent="APN/1.0 HashiCorp/1.0 Terraform/1.10.0 (+https://www.terraform.io) aws-sdk-go-v2/1.31.0 os/linux lang/go#1.23.3 md/GOOS#linux md/GOARCH#amd64 api/s3#1.63.0" http.request.header.authorization="AWS4-HMAC-SHA256 Credential=ASIA************YMYG/20241127/us-east-1/s3/aws4_request, SignedHeaders=accept-encoding;amz-sdk-invocation-id;amz-sdk-request;host;x-amz-content-sha256;x-amz-date;x-amz-security-token, Signature=*****" http.request.header.x_amz_security_token="*****" http.request.header.amz_sdk_request="attempt=1; max=5" http.request.header.x_amz_date=20241127T134042Z http.method=GET net.peer.name=s3.us-east-1.amazonaws.com http.request.header.accept_encoding=identity http.request.header.amz_sdk_invocation_id=b92d0bf8-bd6f-4923-8153-c80660b3020a http.request.body=""
Acquiring state lock. This may take a few moments...
2024-11-27T06:40:42.882-0700 [DEBUG] backend-s3: HTTP Response Received: aws.region=us-east-1 aws.s3.bucket=state.test.biblestudy.tools aws.s3.key=terraform.tfstate.tflock rpc.method=GetObject rpc.service=S3 rpc.system=aws-api tf_aws.sdk=aws-sdk-go-v2 tf_aws.signing_region="" tf_backend.lock.id=6a691cd8-9934-50b6-3a54-1ab5abf357a4 tf_backend.lock.info="" tf_backend.lock.operation=OperationTypeApply tf_backend.lock.path=state.test.biblestudy.tools/terraform.tfstate tf_backend.lock.version=1.10.0 tf_backend.lock.who=mmiller@dell2 tf_backend.operation=Lock tf_backend.req_id=4142fd3c-fe8c-2486-a948-869785407a49 tf_backend.s3.bucket=state.test.biblestudy.tools tf_backend.s3.path=terraform.tfstate http.response.header.date="Wed, 27 Nov 2024 13:40:42 GMT" http.response.header.server=AmazonS3 http.response.header.x_amz_request_id=N1XYNAWBA7S8NC1V http.response.header.x_amz_id_2="pQbIZOu5Ec858qaN6Z2cRYXhar9UnO6FKYBa3TgpwvSrzlntxpycooaedZ2AXQP5Ofwcf0a+JZvVfiqyNnSOD4JYoPNo7Vb2tju3FadAjrM=" http.response.header.content_type=application/xml http.response.body="[Redacted: -1 bytes, Type: application/xml]" http.duration=314 http.status_code=404
2024-11-27T06:40:42.883-0700 [DEBUG] backend-s3: request failed with unretryable error https response error StatusCode: 404, RequestID: N1XYNAWBA7S8NC1V, HostID: pQbIZOu5Ec858qaN6Z2cRYXhar9UnO6FKYBa3TgpwvSrzlntxpycooaedZ2AXQP5Ofwcf0a+JZvVfiqyNnSOD4JYoPNo7Vb2tju3FadAjrM=, NoSuchKey: : aws.region=us-east-1 aws.s3.bucket=state.test.biblestudy.tools aws.s3.key=terraform.tfstate.tflock rpc.method=GetObject rpc.service=S3 rpc.system=aws-api tf_aws.sdk=aws-sdk-go-v2 tf_backend.lock.id=6a691cd8-9934-50b6-3a54-1ab5abf357a4 tf_backend.lock.info="" tf_backend.lock.operation=OperationTypeApply tf_backend.lock.path=state.test.biblestudy.tools/terraform.tfstate tf_backend.lock.version=1.10.0 tf_backend.lock.who=mmiller@dell2 tf_backend.operation=Lock tf_backend.req_id=4142fd3c-fe8c-2486-a948-869785407a49 tf_backend.s3.bucket=state.test.biblestudy.tools tf_backend.s3.path=terraform.tfstate
│ Error: Error acquiring the state lock
│ Error message: operation error S3: PutObject, https response error StatusCode: 400, RequestID: N1XX5V9QPZDJ31ZG, HostID:
│ 7b65LbRn1YeMtxhUk1vC0ZhXYnYRlO+KiGM6+ctHvLdJpJMxuI3/T6NGGbU3vZWuOqSRuHsHd3JRB6D4WE5QGTQZrKXh/xNB3Qj3cs9ePYw=, api error
│ InvalidRequest: Content-MD5 OR x-amz-checksum- HTTP header is required for Put Object requests with Object Lock parameters
│ unable to retrieve file from S3 bucket 'state.test.biblestudy.tools' with key 'terraform.tfstate.tflock': operation error S3:
│ GetObject, https response error StatusCode: 404, RequestID: N1XYNAWBA7S8NC1V, HostID:
│ pQbIZOu5Ec858qaN6Z2cRYXhar9UnO6FKYBa3TgpwvSrzlntxpycooaedZ2AXQP5Ofwcf0a+JZvVfiqyNnSOD4JYoPNo7Vb2tju3FadAjrM=, NoSuchKey:
│ Terraform acquires a state lock to protect the state from being written
│ by multiple users at the same time. Please resolve the issue above and try
│ again. For most commands, you can disable locking with the "-lock=false"
│ flag, but this is not recommended.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment