question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AWS examples in docs/readme are wrong/dont work

See original GitHub issue

If you use this guide, you get:

 ⨯ Unable to compile TypeScript:
    main.ts(3,23): error TS2305: Module '"./.gen/providers/aws"' has no exported member 'Instance'.

And if you use the example in the typescript readme of this repo, you get the same but with

'"./.gen/providers/aws"' has no exported member named 'EC2'. Did you mean 'ec2'

Thats after adding the AWS terraformProviders and running cdktf get, and then cdktf deploy.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
DanielMSchmidtcommented, Jan 7, 2022

Looks like we can close this 👍

1reaction
jritsemacommented, Jan 7, 2022

If you change the code in the typescript example to this (e.g. use a lowercase ec2), it works:

Thanks, this worked for me!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting AWS CodeBuild
Use the information in this topic to help you identify, diagnose, and address issues. To learn how to log and monitor CodeBuild builds...
Read more >
Integrating ReadMe with Amazon API Gateway to Keep Your ...
The example in this post uses Python 3 and the AWS Serverless Application Model (AWS SAM) to deploy private APIs with custom domain...
Read more >
Bootstrapping - AWS Cloud Development Kit (AWS CDK) v2
Use the AWS CDK Toolkit's cdk bootstrap command. This is the simplest method and works well if you have only a few environments...
Read more >
aws-cdk/pipelines module - AWS Documentation - Amazon.com
The README for the original API, as well as a migration guide, ... The following example creates a CodePipeline that deploys an application...
Read more >
Best practices for working with AWS Lambda functions
This saves cost by reducing function run time. To avoid potential data leaks across invocations, don't use the execution environment to store user...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found