localstack / aws-cdk-local

Thin wrapper script for using the AWS CDK CLI with LocalStack
Apache License 2.0
263 stars 17 forks source link

Environment aws://00000000000/eu-central-1 failed bootstrapping: UnknownEndpoint: Inaccessible host: `localhost' at port `4566'. This service may not be available in the `eu-central-1' region. #78

Closed merowinger92 closed 1 year ago

merowinger92 commented 1 year ago

I get the above error message despite having credentials and localstack running. I can access it in the browser normally.

Doing some research hints from a similar issue with serverless-localstackexisted and is already solved: https://github.com/localstack/serverless-localstack/issues/125

A workaround is setting LOCALSTACK_HOSTNAME=127.0.0.1before using cdklocal.

It was solved with following pull request: LOCALSTACK_HOSTNAME=127.0.0.1

My system is a M1 MacOS 13.1.

whummer commented 1 year ago

Fixed via #79 👍 Thanks!

joe4dev commented 1 year ago

FYI: We just (2023-02-15T12:22:38.576Z) released a new version of aws-cdk-local 2.17.0, which implements an IPv4 fallback to fix IPv6-related issues on macOS. See: https://github.com/localstack/aws-cdk-local/pull/80