GithubHelp home page GithubHelp logo

1337-aws-cg-workshops's Introduction

AWS Development Competence Group

This repository hosts the workshops for the AWS Development Competence Group. Please follow the list below to be ready for the first workshop.

Prerequisites

To save time in the workshops, please complete this steps before the first workshop.

Install required tools/CLIs

  1. Install Yarn

    $ npm install -g yarn
    
  2. Install AWS CDK CLI

    yarn global add aws-cdk
    
  3. Install AWS SAM CLI

  4. Install AWS CLI

    • Install the v2 variant

Setup local AWS Profile using SSO

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.

1. Create a named profile in the credentials file

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.

2. Try it out

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.

Bootstrap environment for use with AWS CDK

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

1337-aws-cg-workshops's People

Contributors

eliasbrange avatar

Stargazers

Žan Horvat avatar

Watchers

James Cloos avatar  avatar

Forkers

sigismund

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.