Comments (6)
➤ Waldemar Hummer commented:
Thanks for reporting yonahforst . This should be fixed in a7189808717cff31aae3f8252167e1375d79d432 - can you please give it another try with the latest version 0.4.26? Please report here if the problem persists. Thanks
from aws-cdk-local.
➤ Yonah Forst commented:
whummer i think this fix causes the aws endpoints to never be reconfigured.
I get errors saying that the stack/log-group doesn't exist. I assume that's because the endpoints weren't reconfigured and sls is still trying to talk to the real aws endpoint
from aws-cdk-local.
➤ Waldemar Hummer commented:
Thanks for the update yonahforst . Haven't been able to reproduce this (seems to be working for the examples we tested). Can you please share a small, complete example to reproduce this issue? Thanks!
from aws-cdk-local.
➤ Yonah Forst commented:
sure thing whummer 😀
- add profile called localProfile to your ~/.aws/credentials
- run sls to create a new service
- replace the yml file with this:
service: temp1
custom:
defaultStage: local
stage: ${opt:stage, self:custom.defaultStage}
localstack:
host: http://${env:LOCALSTACK_HOST, 'localhost'}
edgePort: ${env:LOCALSTACK_EDGE_PORT, '4566'}
stages:
- local
provider:
name: aws
runtime: nodejs12.x
region: eu-west-1
stage: ${self:custom.stage}
profile: ${self:custom.stage}Profile
functions:
hello:
handler: handler.hello
plugins:
- serverless-localstack
- run sls deploy
- run sls info. You should get Stack with id temp1-local does not exist
- run sls logs -f hello. you should get The specified log group does not exist.
from aws-cdk-local.
➤ Waldemar Hummer commented:
Thanks for the update yonahforst . Looks like your Serverless stack is using eu-west-1
- just to confirm, are you seeing the same error if you configure DEFAULT_REGION=eu-west-1 in the environment of your LocalStack Docker container? Thanks
from aws-cdk-local.
➤ Yonah Forst commented:
hi @whummer, yes I already have DEFAULT_REGION=eu-west-1 set 🙂
I think the problem is here: https://github.com/localstack/serverless-localstack/blob/a7189808717cff31aae3f8252167e1375d79d432/src/index.js#L104-L111
if this.reconfigureAWS() fails as is said it might, then those endpoints never get reconfigured and stay set to the real aws endpoints
from aws-cdk-local.
Related Issues (20)
- Potentially cached values in cdk.context.json can break deployments HOT 4
- Bootstrap Error Stack with id %s does not exist CDKToolkit HOT 4
- [PRO] public subnets is not created HOT 5
- App deploys with cdk v2 but unable to run cdklocal. Error: Cannot find module 'aws-cdk/lib/api/aws-auth' HOT 1
- Queue.fromArn breaks the queueUrl resolution HOT 2
- DatabaseCluster.clusterEndpoint.hostname does not respect LOCALSTACK_HOSTNAME HOT 1
- Multi-account with LocalStack PRO and cdklocal does not honor the custom account ID HOT 5
- cdklocal deploy : unable to figure out localstack presence, building stacks is failing HOT 8
- sample-app failes to create SNS listener HOT 2
- 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. HOT 2
- Cdklocal explodes if no AWS profile is set HOT 3
- SNS Filters not honoring Message Body Filter
- Missing dependency on aws-cdk in package.json HOT 2
- Passing along flags to cdk deploy (--no-fail-on-empty-changeset) HOT 2
- Cognito stack fails for Default Authenticated role for Identity Pool HOT 3
- Cdklocal bootstrap fails with "The repository name already exists in the registry" HOT 1
- S3 bucket.add_event_notification() does not deploy - No resource provider found for "Custom::S3BucketNotifications" HOT 7
- Deploy API GW with a Simple Lambda Fails HOT 1
- Error: Cannot find module 'aws-cdk/lib/api/aws-auth' when using CDK installed with homebrew HOT 5
- `cdklocal bootstrap` command fails HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-cdk-local.