GithubHelp home page GithubHelp logo

Comments (6)

sync-by-unito avatar sync-by-unito commented on August 15, 2024

➤ 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.

sync-by-unito avatar sync-by-unito commented on August 15, 2024

➤ 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.

sync-by-unito avatar sync-by-unito commented on August 15, 2024

➤ 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.

sync-by-unito avatar sync-by-unito commented on August 15, 2024

➤ 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.

sync-by-unito avatar sync-by-unito commented on August 15, 2024

➤ 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.

sync-by-unito avatar sync-by-unito commented on August 15, 2024

➤ 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.