hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.82k stars 9.17k forks source link

[Bug]: Error when creating an SQS queue on 3rd party (Cloudian) #35605

Open davidfm opened 9 months ago

davidfm commented 9 months ago

Terraform Core Version

1.5.6

AWS Provider Version

5.35.0

Affected Resource(s)

aws_sqs_queue

Expected Behavior

A new SQS queue is created

Actual Behavior

Error, queue is not created.

Relevant Error/Panic Output Snippet

╷
│ Error: creating SQS Queue (davef-tf-test): operation error SQS: CreateQueue,
https response error StatusCode: 400,
RequestID: cdeda104-004d-115c-a87e-005056aac88c,
deserialization failed,
failed to decode response body, invalid character '<' looking for beginning of value
│
│
with aws_sqs_queue.my_queue,
│
│
│
on main.tf line 15, in resource "aws_sqs_queue" "my_queue":
15: resource "aws_sqs_queue" "my_queue" {

Terraform Configuration Files

Provider config

``` provider "aws" { alias = "cloudian" endpoints { s3 = "https://s3-hel.xxxxxxx.internal:443" iam = "https://iam.xxxxxxx.internal:16443" sts = "https://sts.xxxxxxx.internal" sqs = "http://sqs.xxxxxxx.internal:18090" } region = "us-east-1" skip_region_validation = true s3_use_path_style = true skip_credentials_validation = true skip_metadata_api_check = true skip_requesting_account_id = true access_key = XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX secret_key = XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX insecure = true } ```

Code

``` resource "aws_sqs_queue" "my_queue" { provider = aws.cloudian name = "dave-tf-test" } ```

Steps to Reproduce

terraform apply the previous code

Debug Output

2024-02-02T11:11:16.543+0100 [INFO]  backend/local: apply calling Apply
2024-02-02T11:11:16.543+0100 [DEBUG] Building and walking apply graph for NormalMode plan
2024-02-02T11:11:16.543+0100 [DEBUG] Resource state not found for node "aws_sqs_queue.my_queue", instance aws_sqs_queue.my_queue
2024-02-02T11:11:16.543+0100 [DEBUG] ProviderTransformer: "aws_sqs_queue.my_queue (expand)" (*terraform.nodeExpandApplyableResource) needs provider["registry.terraform.io/hashicorp/aws"].cloudian
2024-02-02T11:11:16.543+0100 [DEBUG] ProviderTransformer: "aws_sqs_queue.my_queue" (*terraform.NodeApplyableResourceInstance) needs provider["registry.terraform.io/hashicorp/aws"].cloudian
2024-02-02T11:11:16.543+0100 [DEBUG] pruning unused provider["registry.terraform.io/hashicorp/aws"]
2024-02-02T11:11:16.543+0100 [DEBUG] ReferenceTransformer: "aws_sqs_queue.my_queue" references: []
2024-02-02T11:11:16.544+0100 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/hashicorp/aws\"].cloudian" references: []
2024-02-02T11:11:16.544+0100 [DEBUG] ReferenceTransformer: "aws_sqs_queue.my_queue (expand)" references: []
2024-02-02T11:11:16.544+0100 [DEBUG] Starting graph walk: walkApply
2024-02-02T11:11:16.544+0100 [DEBUG] created provider logger: level=debug
2024-02-02T11:11:16.544+0100 [INFO]  provider: configuring client automatic mTLS
2024-02-02T11:11:16.552+0100 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/hashicorp/aws/5.35.0/linux_amd64/terraform-provider-aws_v5.35.0_x5 args=[.terraform/providers/registry.terraform.io/hashicorp/aws/5.35.0/linux_amd64/terraform-provider-aws_v5.35.0_x5]
2024-02-02T11:11:16.553+0100 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/hashicorp/aws/5.35.0/linux_amd64/terraform-provider-aws_v5.35.0_x5 pid=27320
2024-02-02T11:11:16.553+0100 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/hashicorp/aws/5.35.0/linux_amd64/terraform-provider-aws_v5.35.0_x5
2024-02-02T11:11:16.615+0100 [INFO]  provider.terraform-provider-aws_v5.35.0_x5: configuring server automatic mTLS: timestamp=2024-02-02T11:11:16.615+0100
2024-02-02T11:11:16.622+0100 [DEBUG] provider: using plugin: version=5
2024-02-02T11:11:16.622+0100 [DEBUG] provider.terraform-provider-aws_v5.35.0_x5: plugin address: address=/tmp/plugin537396965 network=unix timestamp=2024-02-02T11:11:16.622+0100
2024-02-02T11:11:18.014+0100 [DEBUG] provider.terraform-provider-aws_v5.35.0_x5: Configuring Terraform AWS Provider: tf_req_id=b93b9c50-84df-dc25-3256-c348a5ad473e tf_rpc=ConfigureProvider @caller=github.com/hashicorp/terraform-provider-aws/internal/conns/config.go:132 tf_mux_provider=*schema.GRPCProviderServer tf_provider_addr=registry.terraform.io/hashicorp/aws @module=aws timestamp=2024-02-02T11:11:18.014+0100
2024-02-02T11:11:18.014+0100 [DEBUG] provider.terraform-provider-aws_v5.35.0_x5: Resolving credentials provider: tf_req_id=b93b9c50-84df-dc25-3256-c348a5ad473e tf_mux_provider=*schema.GRPCProviderServer tf_provider_addr=registry.terraform.io/hashicorp/aws tf_rpc=ConfigureProvider @caller=github.com/hashicorp/aws-sdk-go-base/v2@v2.0.0-beta.46/logging/tf_logger.go:47 @module=aws.aws-base timestamp=2024-02-02T11:11:18.014+0100
2024-02-02T11:11:18.014+0100 [DEBUG] provider.terraform-provider-aws_v5.35.0_x5: Using authentication parameters: tf_req_id=b93b9c50-84df-dc25-3256-c348a5ad473e @module=aws.aws-base tf_aws.auth_fields=["access key", "secret key"] tf_provider_addr=registry.terraform.io/hashicorp/aws @caller=github.com/hashicorp/aws-sdk-go-base/v2@v2.0.0-beta.46/logging/tf_logger.go:47 tf_aws.auth_fields.source=provider tf_mux_provider=*schema.GRPCProviderServer tf_rpc=ConfigureProvider timestamp=2024-02-02T11:11:18.014+0100
2024-02-02T11:11:18.014+0100 [INFO]  provider.terraform-provider-aws_v5.35.0_x5: Retrieved credentials: tf_req_id=b93b9c50-84df-dc25-3256-c348a5ad473e tf_rpc=ConfigureProvider tf_aws.credentials_source=StaticCredentials tf_mux_provider=*schema.GRPCProviderServer tf_provider_addr=registry.terraform.io/hashicorp/aws @caller=github.com/hashicorp/aws-sdk-go-base/v2@v2.0.0-beta.46/logging/tf_logger.go:39 @module=aws.aws-base timestamp=2024-02-02T11:11:18.014+0100
2024-02-02T11:11:18.014+0100 [DEBUG] provider.terraform-provider-aws_v5.35.0_x5: Loading configuration: tf_provider_addr=registry.terraform.io/hashicorp/aws tf_req_id=b93b9c50-84df-dc25-3256-c348a5ad473e @caller=github.com/hashicorp/aws-sdk-go-base/v2@v2.0.0-beta.46/logging/tf_logger.go:47 @module=aws.aws-base tf_mux_provider=*schema.GRPCProviderServer tf_rpc=ConfigureProvider timestamp=2024-02-02T11:11:18.014+0100
2024-02-02T11:11:18.014+0100 [DEBUG] provider.terraform-provider-aws_v5.35.0_x5: Creating AWS SDK v1 session: tf_mux_provider=*schema.GRPCProviderServer tf_provider_addr=registry.terraform.io/hashicorp/aws @caller=github.com/hashicorp/terraform-provider-aws/internal/conns/config.go:156 @module=aws tf_req_id=b93b9c50-84df-dc25-3256-c348a5ad473e tf_rpc=ConfigureProvider timestamp=2024-02-02T11:11:18.014+0100
2024-02-02T11:11:18.014+0100 [DEBUG] provider.terraform-provider-aws_v5.35.0_x5: Retrieving AWS account details: tf_provider_addr=registry.terraform.io/hashicorp/aws tf_rpc=ConfigureProvider tf_mux_provider=*schema.GRPCProviderServer tf_req_id=b93b9c50-84df-dc25-3256-c348a5ad473e @caller=github.com/hashicorp/terraform-provider-aws/internal/conns/config.go:171 @module=aws timestamp=2024-02-02T11:11:18.014+0100
2024-02-02T11:11:18.016+0100 [WARN]  provider.terraform-provider-aws_v5.35.0_x5: Response contains warning diagnostic: diagnostic_severity=WARNING diagnostic_summary="AWS account ID not found for provider" tf_proto_version=5.4 tf_rpc=Configure @caller=github.com/hashicorp/terraform-plugin-go@v0.20.0/tfprotov5/internal/diag/diagnostics.go:64 @module=sdk.proto diagnostic_detail="See https://registry.terraform.io/providers/hashicorp/aws/latest/docs#skip_requesting_account_id for implications." tf_provider_addr=registry.terraform.io/hashicorp/aws tf_req_id=b93b9c50-84df-dc25-3256-c348a5ad473e timestamp=2024-02-02T11:11:18.016+0100
2024-02-02T11:11:18.018+0100 [WARN]  Provider "registry.terraform.io/hashicorp/aws" produced an invalid plan for aws_sqs_queue.my_queue, but we are tolerating it because it is using the legacy plugin SDK.
    The following problems may be the cause of any confusing errors from downstream operations:
      - .receive_wait_time_seconds: planned value cty.NumberIntVal(0) for a non-computed attribute
      - .visibility_timeout_seconds: planned value cty.NumberIntVal(30) for a non-computed attribute
      - .message_retention_seconds: planned value cty.NumberIntVal(345600) for a non-computed attribute
      - .fifo_queue: planned value cty.False for a non-computed attribute
      - .max_message_size: planned value cty.NumberIntVal(262144) for a non-computed attribute
      - .content_based_deduplication: planned value cty.False for a non-computed attribute
      - .delay_seconds: planned value cty.NumberIntVal(0) for a non-computed attribute
aws_sqs_queue.my_queue: Creating...
2024-02-02T11:11:18.018+0100 [INFO]  Starting apply for aws_sqs_queue.my_queue
2024-02-02T11:11:18.018+0100 [DEBUG] aws_sqs_queue.my_queue: applying the planned Create change
2024-02-02T11:11:18.019+0100 [DEBUG] provider.terraform-provider-aws_v5.35.0_x5: [DEBUG] setting computed for "tags_all" from ComputedKeys
2024-02-02T11:11:18.019+0100 [DEBUG] provider.terraform-provider-aws_v5.35.0_x5: [DEBUG] Waiting for state to become: [success]
2024-02-02T11:11:18.020+0100 [DEBUG] provider.terraform-provider-aws_v5.35.0_x5: HTTP Request Sent: tf_req_id=61db62c0-4239-dba0-8650-e054a7e84029 @caller=github.com/hashicorp/aws-sdk-go-base/v2@v2.0.0-beta.46/logging/tf_logger.go:45 http.request.header.amz_sdk_request="attempt=1; max=25" http.request.header.authorization="AWS4-HMAC-SHA256 Credential=xxxxxxxxxxxxxxxxxxxxxx/20240202/us-east-1/sqs/aws4_request, SignedHeaders=amz-sdk-invocation-id;amz-sdk-request;content-length;content-type;host;x-amz-date;x-amz-target, Signature=*****" net.peer.name=sqs.xxxxx.internal http.url=http://sqs.xxxxx.internal:18090/ http.method=POST http.request.body="{"Attributes":{"ReceiveMessageWaitTimeSeconds":"0","VisibilityTimeout":"30","DelaySeconds":"0","MessageRetentionPeriod":"345600","MaximumMessageSize":"262144"},"QueueName":"dave-tf-test"}
" http.request.header.x_amz_date=20240202T101118Z rpc.service=SQS tf_rpc=ApplyResourceChange http.request.header.amz_sdk_invocation_id=c507859b-886a-4841-acc5-745b04783d73 net.peer.port=18090 rpc.method=CreateQueue http.request_content_length=187 tf_aws.signing_region= tf_mux_provider=*schema.GRPCProviderServer messaging.system=AmazonSQS tf_provider_addr=registry.terraform.io/hashicorp/aws @module=aws aws.region=us-east-1 http.request.header.x_amz_target=AmazonSQS.CreateQueue http.user_agent="APN/1.0 HashiCorp/1.0 Terraform/1.5.6 (+https://www.terraform.io) terraform-provider-aws/5.35.0 (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go-v2/1.24.1 os/linux lang/go#1.20.13 md/GOOS#linux md/GOARCH#amd64 api/sqs#1.29.7" http.request.header.content_type=application/x-amz-json-1.0 tf_aws.sdk=aws-sdk-go-v2 rpc.system=aws-api tf_resource_type=aws_sqs_queue timestamp=2024-02-02T11:11:18.019+0100
2024-02-02T11:11:18.383+0100 [DEBUG] provider.terraform-provider-aws_v5.35.0_x5: HTTP Response Received: http.response.header.date="Fri, 02 Feb 2024 10:11:18 GMT" rpc.method=CreateQueue tf_aws.signing_region= tf_mux_provider=*schema.GRPCProviderServer tf_resource_type=aws_sqs_queue aws.region=us-east-1 http.response.header.x_amzn_requestid=cdeda106-004d-115c-a87e-005056aac88c tf_aws.sdk=aws-sdk-go-v2 tf_req_id=61db62c0-4239-dba0-8650-e054a7e84029 http.response.body="<?xml version="1.0" encoding="UTF-8"?><ErrorResponse xmlns="https://sqs.us-east-2.amazonaws.com/doc/2012-11-05/"><Error><Code>MissingParameter</Code><Message>A required parameter for the specified action is not supplied.</Message></Error><RequestId>cdeda106-004d-115c-a87e-005056aac88c</RequestId></ErrorResponse>
" messaging.system=AmazonSQS rpc.system=aws-api tf_provider_addr=registry.terraform.io/hashicorp/aws @caller=github.com/hashicorp/aws-sdk-go-base/v2@v2.0.0-beta.46/logging/tf_logger.go:45 @module=aws http.duration=362 http.response.header.content_type=application/xml;charset=UTF-8 http.response_content_length=313 http.status_code=400 rpc.service=SQS tf_rpc=ApplyResourceChange timestamp=2024-02-02T11:11:18.382+0100
2024-02-02T11:11:18.383+0100 [DEBUG] provider.terraform-provider-aws_v5.35.0_x5: request failed with unretryable error https response error StatusCode: 400, RequestID: cdeda106-004d-115c-a87e-005056aac88c, deserialization failed, failed to decode response body, invalid character '<' looking for beginning of value: @caller=github.com/hashicorp/aws-sdk-go-base/v2@v2.0.0-beta.46/logging/tf_logger.go:45 aws.region=us-east-1 tf_mux_provider=*schema.GRPCProviderServer tf_req_id=61db62c0-4239-dba0-8650-e054a7e84029 rpc.method=CreateQueue tf_provider_addr=registry.terraform.io/hashicorp/aws tf_rpc=ApplyResourceChange messaging.system=AmazonSQS rpc.service=SQS rpc.system=aws-api @module=aws tf_aws.sdk=aws-sdk-go-v2 tf_resource_type=aws_sqs_queue timestamp=2024-02-02T11:11:18.383+0100
2024-02-02T11:11:18.383+0100 [ERROR] provider.terraform-provider-aws_v5.35.0_x5: Response contains error diagnostic: tf_provider_addr=registry.terraform.io/hashicorp/aws tf_req_id=61db62c0-4239-dba0-8650-e054a7e84029 tf_resource_type=aws_sqs_queue @module=sdk.proto diagnostic_summary="creating SQS Queue (dave-tf-test): operation error SQS: CreateQueue, https response error StatusCode: 400, RequestID: cdeda106-004d-115c-a87e-005056aac88c, deserialization failed, failed to decode response body, invalid character '<' looking for beginning of value" tf_proto_version=5.4 @caller=github.com/hashicorp/terraform-plugin-go@v0.20.0/tfprotov5/internal/diag/diagnostics.go:62 diagnostic_detail= diagnostic_severity=ERROR tf_rpc=ApplyResourceChange timestamp=2024-02-02T11:11:18.383+0100
2024-02-02T11:11:18.400+0100 [DEBUG] State storage *statemgr.Filesystem declined to persist a state snapshot
2024-02-02T11:11:18.400+0100 [ERROR] vertex "aws_sqs_queue.my_queue" error: creating SQS Queue (dave-tf-test): operation error SQS: CreateQueue, https response error StatusCode: 400, RequestID: cdeda106-004d-115c-a87e-005056aac88c, deserialization failed, failed to decode response body, invalid character '<' looking for beginning of value
╷
│ Warning: AWS account ID not found for provider
│ 
│   with provider["registry.terraform.io/hashicorp/aws"].cloudian,
│   on provider.tf line 5, in provider "aws":
│    5: provider "aws" {
│ 
│ See https://registry.terraform.io/providers/hashicorp/aws/latest/docs#skip_requesting_account_id for implications.
╵
╷
│ Error: creating SQS Queue (dave-tf-test): operation error SQS: CreateQueue, https response error StatusCode: 400, RequestID: cdeda106-004d-115c-a87e-005056aac88c, deserialization failed, failed to decode response body, invalid character '<' looking for beginning of value
│ 
│   with aws_sqs_queue.my_queue,
│   on main.tf line 15, in resource "aws_sqs_queue" "my_queue":
│   15: resource "aws_sqs_queue" "my_queue" {
│ 
╵
2024-02-02T11:11:18.409+0100 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2024-02-02T11:11:18.417+0100 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/aws/5.35.0/linux_amd64/terraform-provider-aws_v5.35.0_x5 pid=27320
2024-02-02T11:11:18.417+0100 [DEBUG] provider: plugin exited

Panic Output

No response

Important Factoids

Cloudian version: 7.4.2 Compiled: 2022-09-08 11:37

Just to give you more information, in case it helps, creating the queue with the AWS CLI works as expected CLI version:

aws-cli/2.13.14 Python/3.11.4 Linux/5.15.0-89-generic exe/x86_64.ubuntu.20 prompt/off
AWS CLI config

``` ################################################## [profile test] region = us-east-1 services = test-services [services test-services] s3 = endpoint_url=https://s3-hel.xxxxxxxxx.internal:443 iam = endpoint_url=https://iam.xxxxxxxxx.internal:16443 sts = endpoint_url=https://sts.xxxxxxxxx.internal sqs = endpoint_url=http://sqs.xxxxxxxxx.internal:18090 ```

AWS CLI command

``` aws sqs create-queue --queue-name "dave-manual-test" --debug --output yaml ```

AWS CLI output

``` QueueUrl: http://sqs.region1.cloudian.com/42fd751af0a63e317e1e1c80acca377a/dave-manual-test ```

CLI debug output

``` 2024-02-02 11:27:05,114 - MainThread - awscli.clidriver - DEBUG - CLI version: aws-cli/2.13.14 Python/3.11.4 Linux/5.15.0-89-generic exe/x86_64.ubuntu.20 2024-02-02 11:27:05,114 - MainThread - awscli.clidriver - DEBUG - Arguments entered to CLI: ['sqs', 'create-queue', '--queue-name', 'dave-manual-test', '--debug', '--output', 'yaml'] 2024-02-02 11:27:05,120 - MainThread - botocore.hooks - DEBUG - Event building-command-table.main: calling handler 2024-02-02 11:27:05,120 - MainThread - botocore.hooks - DEBUG - Event building-command-table.main: calling handler 2024-02-02 11:27:05,120 - MainThread - botocore.hooks - DEBUG - Event building-command-table.main: calling handler > 2024-02-02 11:27:05,120 - MainThread - botocore.hooks - DEBUG - Event building-command-table.main: calling handler 2024-02-02 11:27:05,120 - MainThread - botocore.hooks - DEBUG - Event building-command-table.main: calling handler 2024-02-02 11:27:05,120 - MainThread - botocore.hooks - DEBUG - Event building-command-table.main: calling handler 2024-02-02 11:27:05,120 - MainThread - botocore.hooks - DEBUG - Event building-command-table.main: calling handler 2024-02-02 11:27:05,120 - MainThread - botocore.hooks - DEBUG - Event building-command-table.main: calling handler > 2024-02-02 11:27:05,120 - MainThread - botocore.hooks - DEBUG - Event building-command-table.main: calling handler 2024-02-02 11:27:05,120 - MainThread - botocore.hooks - DEBUG - Event building-command-table.main: calling handler > 2024-02-02 11:27:05,120 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/local/aws-cli/v2/2.13.14/dist/awscli/data/cli.json 2024-02-02 11:27:05,121 - MainThread - botocore.hooks - DEBUG - Event top-level-args-parsed: calling handler 2024-02-02 11:27:05,121 - MainThread - botocore.hooks - DEBUG - Event top-level-args-parsed: calling handler 2024-02-02 11:27:05,121 - MainThread - botocore.hooks - DEBUG - Event top-level-args-parsed: calling handler 2024-02-02 11:27:05,121 - MainThread - botocore.hooks - DEBUG - Event top-level-args-parsed: calling handler 2024-02-02 11:27:05,121 - MainThread - botocore.hooks - DEBUG - Event top-level-args-parsed: calling handler 2024-02-02 11:27:05,121 - MainThread - botocore.hooks - DEBUG - Event top-level-args-parsed: calling handler 2024-02-02 11:27:05,122 - MainThread - awscli.clidriver - DEBUG - CLI version: aws-cli/2.13.14 Python/3.11.4 Linux/5.15.0-89-generic exe/x86_64.ubuntu.20 prompt/off 2024-02-02 11:27:05,122 - MainThread - awscli.clidriver - DEBUG - Arguments entered to CLI: ['sqs', 'create-queue', '--queue-name', 'dave-manual-test', '--debug', '--output', 'yaml'] 2024-02-02 11:27:05,122 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler 2024-02-02 11:27:05,122 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler 2024-02-02 11:27:05,122 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler 2024-02-02 11:27:05,122 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler 2024-02-02 11:27:05,122 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler 2024-02-02 11:27:05,123 - MainThread - botocore.utils - DEBUG - IMDS ENDPOINT: http://169.254.169.254/ 2024-02-02 11:27:05,124 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler 2024-02-02 11:27:05,124 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler 2024-02-02 11:27:05,129 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/local/aws-cli/v2/2.13.14/dist/awscli/botocore/data/sqs/2012-11-05/service-2.json 2024-02-02 11:27:05,131 - MainThread - botocore.hooks - DEBUG - Event building-command-table.sqs: calling handler 2024-02-02 11:27:05,137 - MainThread - botocore.hooks - DEBUG - Event building-command-table.sqs: calling handler > 2024-02-02 11:27:05,137 - MainThread - awscli.clidriver - DEBUG - OrderedDict([('queue-name', ), ('attributes', ), ('tags', )]) 2024-02-02 11:27:05,137 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.sqs.create-queue: calling handler 2024-02-02 11:27:05,137 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.sqs.create-queue: calling handler 2024-02-02 11:27:05,137 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.sqs.create-queue: calling handler 2024-02-02 11:27:05,138 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.sqs.create-queue: calling handler 2024-02-02 11:27:05,143 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/local/aws-cli/v2/2.13.14/dist/awscli/botocore/data/sqs/2012-11-05/paginators-1.json 2024-02-02 11:27:05,143 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.sqs.create-queue: calling handler 2024-02-02 11:27:05,144 - MainThread - botocore.hooks - DEBUG - Event before-building-argument-table-parser.sqs.create-queue: calling handler > 2024-02-02 11:27:05,144 - MainThread - botocore.hooks - DEBUG - Event before-building-argument-table-parser.sqs.create-queue: calling handler > 2024-02-02 11:27:05,144 - MainThread - botocore.hooks - DEBUG - Event before-building-argument-table-parser.sqs.create-queue: calling handler > 2024-02-02 11:27:05,144 - MainThread - botocore.hooks - DEBUG - Event building-command-table.sqs_create-queue: calling handler 2024-02-02 11:27:05,144 - MainThread - botocore.hooks - DEBUG - Event building-command-table.sqs_create-queue: calling handler > 2024-02-02 11:27:05,144 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.sqs.create-queue.queue-name: calling handler 2024-02-02 11:27:05,144 - MainThread - botocore.hooks - DEBUG - Event process-cli-arg.sqs.create-queue: calling handler 2024-02-02 11:27:05,144 - MainThread - awscli.arguments - DEBUG - Unpacked value of 'dave-manual-test' for parameter "queue_name": 'dave-manual-test' 2024-02-02 11:27:05,144 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.sqs.create-queue.attributes: calling handler 2024-02-02 11:27:05,144 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.sqs.create-queue.tags: calling handler 2024-02-02 11:27:05,144 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.sqs.create-queue.cli-input-json: calling handler 2024-02-02 11:27:05,144 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.sqs.create-queue.cli-input-yaml: calling handler 2024-02-02 11:27:05,144 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.sqs.create-queue.generate-cli-skeleton: calling handler 2024-02-02 11:27:05,145 - MainThread - botocore.hooks - DEBUG - Event calling-command.sqs.create-queue: calling handler > 2024-02-02 11:27:05,145 - MainThread - botocore.hooks - DEBUG - Event calling-command.sqs.create-queue: calling handler > 2024-02-02 11:27:05,145 - MainThread - botocore.hooks - DEBUG - Event calling-command.sqs.create-queue: calling handler > 2024-02-02 11:27:05,145 - MainThread - botocore.credentials - DEBUG - Looking for credentials via: env 2024-02-02 11:27:05,145 - MainThread - botocore.credentials - INFO - Found credentials in environment variables. 2024-02-02 11:27:05,145 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/local/aws-cli/v2/2.13.14/dist/awscli/botocore/data/endpoints.json 2024-02-02 11:27:05,154 - MainThread - botocore.hooks - DEBUG - Event choose-service-name: calling handler 2024-02-02 11:27:05,160 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/local/aws-cli/v2/2.13.14/dist/awscli/botocore/data/sqs/2012-11-05/endpoint-rule-set-1.json 2024-02-02 11:27:05,160 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/local/aws-cli/v2/2.13.14/dist/awscli/botocore/data/partitions.json 2024-02-02 11:27:05,160 - MainThread - botocore.hooks - DEBUG - Event creating-client-class.sqs: calling handler 2024-02-02 11:27:05,160 - MainThread - botocore.configprovider - DEBUG - Looking for endpoint for sqs via: environment_service 2024-02-02 11:27:05,160 - MainThread - botocore.configprovider - DEBUG - Looking for endpoint for sqs via: environment_global 2024-02-02 11:27:05,160 - MainThread - botocore.configprovider - DEBUG - Looking for endpoint for sqs via: config_service 2024-02-02 11:27:05,160 - MainThread - botocore.configprovider - INFO - Found endpoint for sqs via: config_service. 2024-02-02 11:27:05,161 - MainThread - botocore.endpoint - DEBUG - Setting sqs timeout as (60, 60) 2024-02-02 11:27:05,162 - MainThread - botocore.regions - DEBUG - Calling endpoint provider with parameters: {'Region': 'us-east-1', 'UseDualStack': False, 'UseFIPS': False, 'Endpoint': 'http://sqs.xxxxxxx.internal:18090'} 2024-02-02 11:27:05,162 - MainThread - botocore.regions - DEBUG - Endpoint provider result: http://sqs.xxxxxxx.internal:18090 2024-02-02 11:27:05,162 - MainThread - botocore.hooks - DEBUG - Event provide-client-params.sqs.CreateQueue: calling handler 2024-02-02 11:27:05,162 - MainThread - botocore.hooks - DEBUG - Event before-parameter-build.sqs.CreateQueue: calling handler 2024-02-02 11:27:05,162 - MainThread - botocore.hooks - DEBUG - Event before-call.sqs.CreateQueue: calling handler 2024-02-02 11:27:05,162 - MainThread - botocore.endpoint - DEBUG - Making request for OperationModel(name=CreateQueue) with params: {'url_path': '/', 'query_string': '', 'method': 'POST', 'headers': {'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8', 'User-Agent': 'aws-cli/2.13.14 Python/3.11.4 Linux/5.15.0-89-generic exe/x86_64.ubuntu.20 prompt/off command/sqs.create-queue'}, 'body': {'Action': 'CreateQueue', 'Version': '2012-11-05', 'QueueName': 'dave-manual-test'}, 'url': 'http://sqs.xxxxxxx.internal:18090/', 'context': {'client_region': 'us-east-1', 'client_config': , 'has_streaming_input': False, 'auth_type': None}} 2024-02-02 11:27:05,162 - MainThread - botocore.hooks - DEBUG - Event request-created.sqs.CreateQueue: calling handler > 2024-02-02 11:27:05,162 - MainThread - botocore.hooks - DEBUG - Event choose-signer.sqs.CreateQueue: calling handler 2024-02-02 11:27:05,162 - MainThread - botocore.auth - DEBUG - Calculating signature using v4 auth. 2024-02-02 11:27:05,162 - MainThread - botocore.auth - DEBUG - CanonicalRequest: POST / content-type:application/x-www-form-urlencoded; charset=utf-8 host:sqs.xxxxxxx.internal:18090 x-amz-date:20240202T102705Z content-type;host;x-amz-date 9f68714f68af958352dc0c042263ab3777a32f33a1ccfeb73ac1121179753c16 2024-02-02 11:27:05,162 - MainThread - botocore.auth - DEBUG - StringToSign: AWS4-HMAC-SHA256 20240202T102705Z 20240202/us-east-1/sqs/aws4_request 0974655df56241e54c71af0d0e38008f25bc08a915f3f6d1e629f6c043607112 2024-02-02 11:27:05,162 - MainThread - botocore.auth - DEBUG - Signature: 6bfe3d0f8304b67a51e2de4255357bf66d92b842a63a30fb8b3175f13e07bbbc 2024-02-02 11:27:05,162 - MainThread - botocore.endpoint - DEBUG - Sending http request: 2024-02-02 11:27:05,163 - MainThread - urllib3.connectionpool - DEBUG - Starting new HTTP connection (1): localhost:8080 2024-02-02 11:27:05,368 - MainThread - urllib3.connectionpool - DEBUG - http://localhost:8080 "POST http://sqs.xxxxxxx.internal:18090/ HTTP/1.1" 200 378 2024-02-02 11:27:05,369 - MainThread - botocore.parsers - DEBUG - Response headers: {'Date': 'Fri, 02 Feb 2024 10:27:05 GMT', 'x-amzn-RequestId': 'cdeda108-004d-115c-a87e-005056aac88c', 'Content-Type': 'application/xml;charset=UTF-8', 'Content-Length': '378'} 2024-02-02 11:27:05,370 - MainThread - botocore.parsers - DEBUG - Response body: b'http://sqs.region1.cloudian.com/42fd751af0a63e317e1e1c80acca377a/dave-manual-testcdeda108-004d-115c-a87e-005056aac88c' 2024-02-02 11:27:05,370 - MainThread - botocore.hooks - DEBUG - Event needs-retry.sqs.CreateQueue: calling handler > 2024-02-02 11:27:05,371 - MainThread - botocore.retries.standard - DEBUG - Not retrying request. 2024-02-02 11:27:05,371 - MainThread - botocore.hooks - DEBUG - Event after-call.sqs.CreateQueue: calling handler > 2024-02-02 11:27:05,371 - MainThread - awscli.formatter - DEBUG - RequestId: cdeda108-004d-115c-a87e-005056aac88c ```

References

No response

Would you like to implement a fix?

None

github-actions[bot] commented 9 months ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue

justinretzolk commented 7 months ago

Hey @davidfm 👋 Thank you for taking the time to raise this! While we hope that the Terraform AWS Provider works as seamlessly as possible with AWS-compatible systems like this, that support is best-effort. We don't currently have in place, and aren't currently prioritizing efforts to test against these external systems, so unless the bug effects the resource on AWS, I can't guarantee this issue will be prioritized.