Open davidfm opened 9 months ago
Voting for Prioritization
Volunteering to Work on This Issue
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.
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
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 codeDebug Output
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 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-test cdeda108-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