- The Pragmatic Programmer
- Javascript
- Docker, Kubernetes and hosting the whole lot in AWS
WHAT IS AMAZON EFS? | |
> Simple, scalable file storage for use with Ec2 instances in AWS. | |
> Storage capacity is elastic, growing and shrinking automatically as you add and remove files | |
> Provides a standard file interface and file system access semantics | |
> Multiple EC2 instances can access EFS at the same time, allowing for a common data source for workloads running in more than 1 EC2 instance. | |
> Designed for high availability and durability | |
--------------------------------------------------------------------------------------------------------- |
Introduction to Amazon EC2 Auto Scaling | |
--------------------------------------------------------------------------------------------------------------------------- | |
Amazon EC2 Auto Scaling: | |
> Helps you ensure you have the correct number of EC2 instances available to handle applications workload. | |
> You create collections of Ec2 instances called 'Auto Scaling Groups' | |
> Specify the minimum number | |
> Specify the maximum number |
Introduction to Amazon Simple Storage Service | |
-------------------------------------------------------------------------------------------------------------------- | |
S3 is an object storage service - scalable, available, secure and performant. | |
Provides easy-to-use management features to organize data - with fine tuned | |
access controls to mee organizational and compliance requirments. | |
Designed for (11 9's) durability. | |
-------------------------------------------------------------------------------------------------------------------- |
Introduction to Amazon Virtual Private Cloud (VPC) | |
--------------------------------------------------------------------------------------------- | |
WHAT IS VIRTUAL PRIVATE CLOUD (VPC)? | |
Lets you provision a locally isolated section of the AWS cloud where you can launch AWS resources in a virtual | |
network you define. You control the virtual networking env, including IP range, creation of subnets, config of route tables and gateways. | |
IPv4 and IPv6 can be used. | |
--------------------------------------------------------------------------------------------- |
Introduction to Amazon Elastic Block Store (EBS) Lab Notes: | |
------------------------------------------------------------------------------------------------------------- | |
EBS - volumes are like hard drives on a computer | |
The data on them persists through the lifetime of the volume and can be transported between virtual machines as needed | |
In the Console: | |
ELASTIC BLOCK STORE -> VOLUMES | |
Always recommended you give EBS volumes names. | |
------------------------------------------------------------------------------------------------------------- |
#!/bin/sh | |
java -Djava.library.path=./DynamoDBLocal_lib -jar DynamoDBLocal.jar -sharedDb |
import boto3 | |
#boto3 client | |
ddb = boto3.client('dynamodb', endpoint_url='http://localhost:8000') | |
response = ddb.list_tables() | |
print(response) | |
#boto3 service resource | |
ddb = boto3.resource('dynamodb', endpoint_url='http://localhost:8000') | |
print(list(ddb.tables.all())) |
# Windows script to set up Cognito Pool | |
# Handy guide for Server to Server credentials using Cognito @ https://lobster1234.github.io/2018/05/31/server-to-server-auth-with-amazon-cognito/ | |
# CREATE COGNITO USER POOL | |
SET POOLNAME="PoolName" | |
SET ENV="DEV" | |
aws cognito-idp create-user-pool --pool-name %POOLNAME%%ENV% | |
# MANUAL STEP (FOR NOW - COPY THE ID FROM THE OUTPUT ABOVE) | |
# Take the UserPool->Id, everything below is created from it: eu-west-1_g***** |
https://medium.com/@matthewleak/aws-lambda-functions-with-a-static-ip-89a3ada0b471 |