Accounts (AWS, GCP, CircleCI)

Getting Started with AWS

Signup for an AWS account

Create an IAM role for your use cases e.g. serverless-admin

You don't want to give the serverless-admin access to all feature of aws. Therefore you create a new IAM user that only has the rights a serverless developer needs e.g. access to AWS Lambda, Dynamodb, S3, API Gateway, CloudDeployment and Logs. You use this user for the AWS CLI and the Serverless framework.

Go to IAM
Create new user
Give it a name and select progammatic access and then next
Create a group with the permissions for api gateway, aws lambda and deploy

Overview of the permissions of the user:
Create user (with group serverless-admin)
Save Access key id and secret access key:
Never show this key in public or check it into version control. That's why I now go to user section and delete it and create a new one:

More infos on the required permissions:

Install AWS CLI

Source: https://docs.aws.amazon.com/de_de/cli/latest/userguide/cli-chap-getting-started.html

Configure multiple Profiles:

Set the profile:

Source: https://docs.aws.amazon.com/cli/latest/userguide/cli-multiple-profiles.html

Securely store your keys and secrets in your rsh file

You don't want to store your secrets in plain text in a file like .rshrc therefore you can use lpass cli [github / documentation] and store your secrets in your osx keychain and access them only by reference.

Installation

Set variables in lastpass

Just create a secret note within lastpass:

Login to lpass in the command line

Set environment variable (e.g. key_id (username) and secret(password)

Getting started with GCP

Accessing files in lpass

Setup an ecrypted folder and sync with google drive

Last updated