Skip to content

Instantly share code, notes, and snippets.

View ross-humphrey's full-sized avatar
🧨

Ross ross-humphrey

🧨
  • @SysGroupPLIC
  • Reading, United Kingdom
  • 09:32 (UTC +01:00)
  • LinkedIn in/rosshumphreyuk
View GitHub Profile
@ross-humphrey
ross-humphrey / efs-spl.txt
Created December 19, 2019 09:47
🧪 Introduction to Amazon Elastic File System - Self Paced Lab
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
---------------------------------------------------------------------------------------------------------
@ross-humphrey
ross-humphrey / ec2-auto-scaling.txt
Created December 13, 2019 16:00
🧪 Introduction to Amazon EC2 Auto Scaling
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
@ross-humphrey
ross-humphrey / s3-spl.txt
Created December 13, 2019 15:34
🧪 Intoduction to Amazon S3 Lab
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.
--------------------------------------------------------------------------------------------------------------------
@ross-humphrey
ross-humphrey / vpc-spl.txt
Created December 11, 2019 16:55
🧪 Introduction to Amazon Virtual Private Cloud (VPC)
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.
---------------------------------------------------------------------------------------------
@ross-humphrey
ross-humphrey / elb-spl.txt
Last active December 11, 2019 16:11
🧪 Self Paced Lab: Elastic Block Store Notes
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.
-------------------------------------------------------------------------------------------------------------
@ross-humphrey
ross-humphrey / start-local-dynamo-db.sh
Created November 27, 2019 09:28
🐚 Shell script to start a local dynamo db
#!/bin/sh
java -Djava.library.path=./DynamoDBLocal_lib -jar DynamoDBLocal.jar -sharedDb
@ross-humphrey
ross-humphrey / connecting-to-local-dynamo-db.py
Created November 27, 2019 09:25
🏭 How to connect to a local dynamo db
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()))
@ross-humphrey
ross-humphrey / what_am_i_learning.md
Last active November 24, 2021 23:43
📚 What I am Learning / Reading 📚

Book

  • The Pragmatic Programmer

Programming Language:

  • Javascript

General:

  • Docker, Kubernetes and hosting the whole lot in AWS
@ross-humphrey
ross-humphrey / cognitopool.sh
Created November 5, 2019 18:14
🐱‍👤 Create a cognito pool for server to server authentication using Windows commands
# 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*****
@ross-humphrey
ross-humphrey / static-ip-lambda.txt
Created September 10, 2019 16:34
🔗Link to set up Lambda Function with static IP
https://medium.com/@matthewleak/aws-lambda-functions-with-a-static-ip-89a3ada0b471