AWS Toolkit for VS Code User Guide AWS Toolkit for VS Code User Guide
Total Page:16
File Type:pdf, Size:1020Kb
AWS Toolkit for VS Code User Guide AWS Toolkit for VS Code User Guide AWS Toolkit for VS Code: User Guide Copyright © Amazon Web Services, Inc. and/or its affiliates. All rights reserved. Amazon's trademarks and trade dress may not be used in connection with any product or service that is not Amazon's, in any manner that is likely to cause confusion among customers, or in any manner that disparages or discredits Amazon. All other trademarks not owned by Amazon are the property of their respective owners, who may or may not be affiliated with, connected to, or sponsored by Amazon. AWS Toolkit for VS Code User Guide Table of Contents AWS Toolkit for Visual Studio Code ...................................................................................................... 1 What is the AWS Toolkit for Visual Studio Code ............................................................................. 1 Related information ................................................................................................................... 1 Setting Up ........................................................................................................................................ 2 Installing the Toolkit for VS Code ................................................................................................ 2 Prerequisites ...................................................................................................................... 2 Install the Toolkit for VS Code ............................................................................................. 3 Establishing credentials ............................................................................................................... 4 Using AWS-supported credentials ......................................................................................... 4 Using an external credential process ..................................................................................... 9 Connecting to AWS .................................................................................................................... 9 Connect to AWS through the Toolkit for VS Code ................................................................... 9 Use multiple AWS accounts with the Toolkit ........................................................................ 12 Changing AWS Regions ............................................................................................................. 12 Add a Region to the AWS Explorer ..................................................................................... 13 Hide a Region from the AWS Explorer ................................................................................. 14 Configuring your toolchain ........................................................................................................ 15 Configure a toolchain for .NET Core .................................................................................... 15 Configure a toolchain for Node.js ....................................................................................... 16 Configure a toolchain for Python ....................................................................................... 16 Configure a toolchain for Java ........................................................................................... 16 Configure a toolchain for Go ............................................................................................. 16 Using Your toolchain ........................................................................................................ 17 Navigating the Toolkit for VS Code .................................................................................................... 18 Fundamental UI Components ..................................................................................................... 18 The AWS Explorer ............................................................................................................ 18 The AWS CDK Explorer ...................................................................................................... 19 Command Locations ................................................................................................................. 19 Visual Studio Code Command Palette ................................................................................. 19 AWS Explorer Menu ......................................................................................................... 21 Working with AWS Services ............................................................................................................... 22 AWS Explorer ........................................................................................................................... 22 Amazon API Gateway ........................................................................................................ 24 AWS App Runner .............................................................................................................. 24 AWS CloudFormation stacks .............................................................................................. 30 Amazon CloudWatch Logs ................................................................................................. 31 Amazon EventBridge ......................................................................................................... 33 AWS Lambda Functions ..................................................................................................... 35 Amazon S3 ...................................................................................................................... 40 AWS Systems Manager ...................................................................................................... 43 AWS Step Functions ......................................................................................................... 47 Amazon ECS ............................................................................................................................ 54 Using IntelliSense for task-definition files ............................................................................ 54 AWS CDK Explorer .................................................................................................................... 55 AWS CDK applications ....................................................................................................... 55 AWS Serverless Application ....................................................................................................... 58 Assumptions and prerequisites ........................................................................................... 58 IAM permissions for serverless applications ......................................................................... 59 Creating a new serverless application (local) ........................................................................ 59 Opening a serverless application (local) ............................................................................... 59 Running and debugging a serverless application from template (local) .................................... 60 Deploying a serverless application to the AWS Cloud ............................................................ 61 Deleting a serverless application from the AWS Cloud ........................................................... 62 Running and debugging Lambda functions directly from code ................................................ 62 iii AWS Toolkit for VS Code User Guide Running and debugging local Amazon API Gateway resources ................................................ 65 Configuration options for debugging serverless applications .................................................. 67 Troubleshooting ............................................................................................................... 72 Security ........................................................................................................................................... 74 Data protection ........................................................................................................................ 74 Identity and Access Management ............................................................................................... 75 Logging and Monitoring ............................................................................................................ 75 Compliance Validation .............................................................................................................. 75 Resilience ................................................................................................................................ 76 Infrastructure Security .............................................................................................................. 76 Configuration and vulnerability analysis ...................................................................................... 77 Document history ............................................................................................................................. 78 iv AWS Toolkit for VS Code User Guide What is the AWS Toolkit for Visual Studio Code AWS Toolkit for Visual Studio Code This is the user guide for the AWS Toolkit for VS Code. If you are looking for the AWS Toolkit for Visual Studio, see the User Guide for the AWS Toolkit for Visual Studio. What is the AWS Toolkit for Visual Studio Code The Toolkit for VS Code is an open-source extension for the Visual Studio