5/30/2023 0 Comments Aws s3 sync![]() ![]() Your was credentials are stored in ~/.aws/credentials and you can validate that your AWS profile is working by running the command: ➜ aws sts get-caller-identity Then configure the AWS profile on the AWS CLI as follows: ➜ aws configure Go to IAM > Users, select your IAM user and click on the Security credentials tab to create an access and secret key. In order to configure the AWS CLI with your IAM user’s access and secret key credentials, you need to login to the AWS Console. If you wish to set up the AWS profile more securely, then I’d suggest you read and apply the steps described in setting up AWS CLI with AWS Single Sign-On (SSO). In this article, I’ll briefly explain how to configure the first method so that you can proceed more quickly to set up the Amazon S3 Bucket in AWS CDK. Access and secret key credentials from an IAM user. ![]() There are 2 ways of configuring a profile: In order to access your AWS account with the AWS CLI, you first need to configure an AWS Profile. Depending on if you’re running Linux, macOS, or Windows the installation goes like this: # macOS install method: The AWS CLI is a command line tool that allows you to interact with AWS services in your terminal. ![]() Install AWS CLI and configure an AWS profile Once you’ve installed AWS CDK you can validate that you’re running on the latest version by running the following command in the terminal: ➜ cdk versionĢ.23.0 (build 50444aa) 2. Use the NPM package manager in your terminal to install AWS CDK and TypeScript globally on your system: ➜ npm install -g aws-cdk typescriptĪdded 180 packages, and audited 181 packages in 7s If you’ve already done this, you can proceed to step 4.
0 Comments
Leave a Reply. |