GithubHelp home page GithubHelp logo

Comments (5)

whummer avatar whummer commented on August 15, 2024

Thanks for reporting @jonashdown - can you please provide a small code snippet of your CDK example, to help us reproduce this issue..? Thanks

from aws-cdk-local.

arunzone avatar arunzone commented on August 15, 2024

I too got the same problem, in my case the sample code is

export class CloudStoresCdkStack extends cdk.Stack {
  constructor(scope: cdk.Construct, id: string, posEnv: string, props?: cdk.StackProps) {
    super(scope, id, props);


    // import exisitng VPC
    const existingVpc = this.getExistingVPC();

  }

  public getExistingVPC(): ec2.IVpc {
    return ec2.Vpc.fromLookup(this, 'VPC', {isDefault: false});
  }

}

from aws-cdk-local.

whummer avatar whummer commented on August 15, 2024

Thanks for the update @arunzone . Can you please share some more details about your environment, and the error message you're seeing? Thanks

Just did a quick test deploying your sample code against the latest LocalStack Docker image - seems to be working:

$ awslocal ec2 create-vpc --cidr-block 161.0.0.1/24
...
$ cdklocal deploy
AppStack: deploying...
AppStack: creating CloudFormation changeset...

 ✅  AppStack

Stack ARN:
arn:aws:cloudformation:eu-central-1:000000000000:stack/AppStack/5aba1701

from aws-cdk-local.

michaelgmcd avatar michaelgmcd commented on August 15, 2024

@jonashdown Not sure if you're still running into this, but the issue for me was not having the proper services running (via the SERVICES environment variable) in my localstack instance. In this case, make sure you have ec2 included.

from aws-cdk-local.

dominikschubert avatar dominikschubert commented on August 15, 2024

Closing stale issue.

FYI: The SERVICES variable is not needed anymore and services are loaded lazily by default.

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.