aws-toolkit-vscode | Local Lambda debug , SAM/CFN syntax | AWS library

 by   aws TypeScript Version: pre-ec2 License: Apache-2.0

kandi X-RAY | aws-toolkit-vscode Summary

kandi X-RAY | aws-toolkit-vscode Summary

aws-toolkit-vscode is a TypeScript library typically used in Cloud, AWS, Visual Studio Code applications. aws-toolkit-vscode has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can download it from GitHub.

The AWS Toolkit for Visual Studio Code is an extension for working with AWS services such as AWS Lambda. The Toolkit is available from the Visual Studio Marketplace. This is an open source project because we want you to be involved. We love issues, feature requests, code reviews, pull requests or any positive contribution. See CONTRIBUTING.md.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              aws-toolkit-vscode has a medium active ecosystem.
              It has 1125 star(s) with 194 fork(s). There are 45 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 286 open issues and 746 have been closed. On average issues are closed in 208 days. There are 63 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of aws-toolkit-vscode is pre-ec2

            kandi-Quality Quality

              aws-toolkit-vscode has 0 bugs and 0 code smells.

            kandi-Security Security

              aws-toolkit-vscode has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              aws-toolkit-vscode code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              aws-toolkit-vscode is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              aws-toolkit-vscode releases are available to install and integrate.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of aws-toolkit-vscode
            Get all kandi verified functions for this library.

            aws-toolkit-vscode Key Features

            No Key Features are available at this moment for aws-toolkit-vscode.

            aws-toolkit-vscode Examples and Code Snippets

            No Code Snippets are available at this moment for aws-toolkit-vscode.

            Community Discussions

            QUESTION

            Configure AWS toolkit for Visual Studio code
            Asked 2022-Feb-03 at 09:37

            Trying to install and configure AWS toolkit to Visual Studio Code. Command Command palette->Create Credentials profile brings two files :

            ...

            ANSWER

            Answered 2022-Feb-03 at 08:51

            You'll need to get the access and secret key from AWS and insert them in place of the XXXXXXX placeholders.

            You can get this information in the AWS Cloud -> IAM -> Access Management -> Users -> Select your user -> Security credentials -> Access Keys

            You will find here the Access Key ID, but the Secret Key is only shown once when you are creating this item. You maybe have it stored somewhere, or you can create another Access Key pair and use that.

            I have done this and I can connect to AWS Toolkit fine.

            AWS Toolkit Config

            Source https://stackoverflow.com/questions/70968025

            QUESTION

            Debugging Python Lambda Functions in VSCode
            Asked 2021-Oct-09 at 16:10

            I have successfully been using AWS Toolkit to debug node.js lambda functions for a couple of years now. For my latest project I wanted to write my lambda functions in python. I have followed the directions in the tutorial below.

            https://codeolives.com/2020/01/02/vs-code-with-python-aws-lambda-a-complete-tutorial-to-develop-and-deploy-python-lambda-functions-using-vs-code-part-2/

            This tutorial really seems identical to what I have been doing to debug node.js. However, when I hit the "run and debug", I get this error.

            2021-10-08 17:04:00 [INFO]: Running PythonPipBuilder:ResolveDependencies

            2021-10-08 17:04:03 [INFO]: Build Failed

            2021-10-08 17:04:04 [INFO]: Error: PythonPipBuilder:ResolveDependencies - {debugpy==1.5.0(wheel)}

            2021-10-08 17:04:04 [WARN]: "sam build" failed: C:/path_to_user/AppData/Local/Temp/aws-toolkit-vscode/vsctkYP3zOS/app___vsctk___template.yaml

            Obviously it's saying that it can't resolve debugpy but I am just beginning to use python and I am not sure what this is or how to resolve it. A google search didn't turn up anything that resolved the issue. If anyone could enlighten me, I'd really appreciate it

            ...

            ANSWER

            Answered 2021-Oct-09 at 16:10

            One of the biggest advantages of Python is that lambda_handler functions are just another function in a python file. You can use Pytest and such to Unit Test the actual handler just like any other function without worrying about the Docker/SAM setup for the lambda.

            Now, this is not perfect. Mocking a Context Object can be difficult if you are relying on it at all (If you aren't, passing an empty dict {} to the second paramater is just fine) and its not exactly the same environment obviously. Imports can be different, as well as logging can be weird.

            If you have SAM and Docker already, the mocking library moto can help with this, though it is also not perfect (and honestly, more for mocking lambda calls from within other functions than mocking the actual lambda)

            As for your actual error and question...

            Try removing the ==X.X.X from your requirements.txt and let pip try to get the latest - I know that isn't wonderful but it will let you know if that potential library for some reason is having trouble being pip installed into the docker container.

            If that works, then it is likely a connection issue between your docker set up and pypy - you may have to modify your pip connection data to know where to look or to look somewhere specific.

            Source https://stackoverflow.com/questions/69502900

            QUESTION

            aws lambda development - s3 access not working in local debug environment, only on deployed
            Asked 2020-Oct-26 at 20:55

            I am trying to get local AWS Lambda development/debugging with Python3.8 working. I am using vscode and I have the AWS Toolkit extension enabled. It worked fine for the basic "hello world" lambda function that they give you. Now I want to modify the example to read some text from a file in S3, and when I try to debug it locally I get the error message "An error occurred (AccessDenied) when calling the GetObject operation: Access Denied" but if I deploy the SAM application to AWS, it works fine in the actual AWS environment.

            As far as I can tell, I added the S3ReadPolicy correctly in the template.yaml file, because (as stated) it works fine in AWS when it gets deployed - the role it creates has the S3 read permissions correctly added. But local runs crash and burn.

            What am I doing wrong?

            Here's the good results that I see when I test it on AWS after deploying it to AWS:

            ...

            ANSWER

            Answered 2020-Oct-26 at 20:55

            As far as I know, the SAM functionality does not inherit the credentials profile that you set for the AWS Toolkit.

            You can set the profile explicitly for SAM in your launch.json, for example:

            Source https://stackoverflow.com/questions/64541885

            QUESTION

            Local AWS Lambda debugging with layers
            Asked 2020-Aug-18 at 12:17

            I created a SAM application and want to debug it locally. The app has some dependencies which are specified in a Lambda Layer. This lambda layer is implemented and tested with other funtions - it runs ok.

            I specified the need of this layer in templates.json:

            ...

            ANSWER

            Answered 2020-Aug-18 at 12:17

            According to the docs,

            Layers are extracted to the /opt directory in the function execution environment. Each runtime looks for libraries in a different location under /opt, depending on the language. Structure your layer so that function code can access libraries without additional configuration.

            You can try to simulate this locally with your docker image by mounting the content of your layer into the proper subfolder of /opt. For Python, the right place to mount seems to be /opt/python.

            Source https://stackoverflow.com/questions/63034786

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install aws-toolkit-vscode

            You can download it from GitHub.

            Support

            The Quick Start Guide provides an overview of common Toolkit tasks.The User Guide contains detailed instructions for getting up and running with the Toolkit.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries

            Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular AWS Libraries

            localstack

            by localstack

            og-aws

            by open-guides

            aws-cli

            by aws

            awesome-aws

            by donnemartin

            amplify-js

            by aws-amplify

            Try Top Libraries by aws

            aws-cli

            by awsPython

            aws-cdk

            by awsTypeScript

            chalice

            by awsPython

            amazon-sagemaker-examples

            by awsJupyter Notebook