1. Install AWS CLI
- Step 1: Go to this page to download AWS CLI
Installing or updating to the latest version of the AWS CLI - AWS Command Line Interface
- Step 2: Type
aws --version in terminal to verify the installation.
C:\\Users\\Admin> aws --version
aws-cli/2.11.11 Python/3.11.2 Windows/10 exe/AMD64 prompt/off
2. Install AWS CDK
- Step 1: Install AWS CDK globally using the following NPM command.
npm install -g aws-cdk
- Step 2: Type
cdk --version in cmd to verify the installation.
C:\\Users\\Admin> cdk --version
2.170.0 (build 060af6c)
3. Configure Credentials to access AWS services from Visual Studio
3.1. Create an IAM User
- Step 1: Navigate to IAM > Users dashboard.
- Step 1: Click on "Create users."
- Step 2: Name the user:
aws-cdk
- Step 3: Attach the
AdministratorAccess policy to this user.
- Step 4: Generate an access key and secret key.
- Step 5: Save the credentials securely, as they will be used in AWS CDK Configuration.
3.2. Configure AWS Credentials