Localstack using CDKlocal sends requests to wrong url for DynamoDB #10803
Labels
area: integration/cdk
Issues related to AWS Cloud Development Kit
aws:apigateway
Amazon API Gateway
aws:dynamodb
Amazon DynamoDB
aws:lambda
AWS Lambda
status: backlog
Triaged but not yet being worked on
type: bug
Bug report
Is there an existing issue for this?
Current Behavior
I have a cdk app with api gateway, lambda and dynamodb. This is from the the course - https://frontendmasters.com/courses/go-aws/
Link to code repo - https://github.com/Melkeydev/FrontEndMasters/tree/chapter_3/cdkExample
I am using local stack and followed every instruction.
After deploying when I send the request to gateway/register I get below error for some reason cdklocak is sending request amazon's dynamoDB
{"errorMessage":"RequestError: send request failed\ncaused by: Post "https://dynamodb.ap-south-1.amazonaws.com/\": tls: failed to verify certificate: x509: certificate is valid for *.amplifyapp.localhost.localstack.cloud, *.cloudfront.localhost.localstack.cloud, *.dkr.ecr.eu-central-1.localhost.localstack.cloud, *.dkr.ecr.eu-west-1.localhost.localstack.cloud, *.dkr.ecr.us-east-1.localhost.localstack.cloud, *.dkr.ecr.us-east-2.localhost.localstack.cloud, *.dkr.ecr.us-west-1.localhost.localstack.cloud, *.dkr.ecr.us-west-2.localhost.localstack.cloud, *.elb.localhost.localstack.cloud, *.eu-central-1.opensearch.localhost.localstack.cloud, *.eu-west-1.opensearch.localhost.localstack.cloud, *.execute-api.localhost.localstack.cloud, *.lambda-url.eu-central-1.localhost.localstack.cloud, *.lambda-url.eu-west-1.localhost.localstack.cloud, *.lambda-url.us-east-1.localhost.localstack.cloud, *.lambda-url.us-east-2.localhost.localstack.cloud, *.lambda-url.us-west-1.localhost.localstack.cloud, *.lambda-url.us-west-2.localhost.localstack.cloud, *.localhost.localstack.cloud, *.opensearch.localhost.localstack.cloud, *.s3-website.localhost.localstack.cloud, *.s3.localhost.localstack.cloud, *.scm.localhost.localstack.cloud, *.snowflake.localhost.localstack.cloud, *.us-east-1.opensearch.localhost.localstack.cloud, *.us-east-2.opensearch.localhost.localstack.cloud, *.us-west-1.opensearch.localhost.localstack.cloud, *.us-west-2.opensearch.localhost.localstack.cloud, localhost.localstack.cloud, sqs.eu-central-1.localhost.localstack.cloud, sqs.eu-west-1.localhost.localstack.cloud, sqs.us-east-1.localhost.localstack.cloud, sqs.us-east-2.localhost.localstack.cloud, sqs.us-west-1.localhost.localstack.cloud, sqs.us-west-2.localhost.localstack.cloud, not dynamodb.ap-south-1.amazonaws.com","errorType":"baseError"}
Expected Behavior
Data should be inserted in DynamoDB
Steps To Reproduce
How are you starting localstack
localstack start
Client commands (e.g., AWS SDK code snippet, or sequence of "awslocal" commands)
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: