This repository hosts the workshops for the AWS Development Competence Group. Please follow the list below to be ready for the first workshop.
To save time in the workshops, please complete this steps before the first workshop.
-
Install Yarn
$ npm install -g yarn
-
Install AWS CDK CLI
yarn global add aws-cdk
-
Install Docker
-
Install AWS SAM CLI
- Will be used to run Lambda functions locally
-
Install AWS CLI
- Install the v2 variant
You can avoid having to copy access keys back and forth between the AWS Management Console and the terminal by setting up a local profile with SSO. You can read more about named profiles here.
Create a file ~/.aws/credentials
if it doesn't exist. Open the file and add the following:
[your-profile-name]
sso_start_url = https://tretton37.awsapps.com/start
sso_region = eu-north-1
sso_account_id = YOUR_ACCOUNT_NUMBER
sso_role_name = AdministratorAccess
You can find your account number on the AWS SSO login page. You can have multiple profiles in this file. For example, you might want both a 1337-admin
and 1337-read
profile.
In your current terminal, run the following command:
$ export AWS_PROFILE=your-profile-name
$ aws sso login
Attempting to automatically open the SSO authorization page in your default browser.
...
This should send you to the AWS Management Console to authorize the login. When done, you should be able to use the AWS CLI in your terminal.
You need to bootstrap your AWS account to be able to use CDK. The bootstrap process will create all needed resources for you. These resources include an Amazon S3 bucket for storing files and IAM roles that grant permissions needed to perform deployments.
Read more about bootstrapping here.
$ cdk bootstrap aws://ACCOUNT-NUMBER/REGION