Collection of Amazon Web Services Cloud resources and Utilities
Utilities I could use
- script that ensured an S3 bucket is created with the given name and prefix - to use in SAM based scripts that require a S3 bucket
- add SSL, hostname, domainname
- pass in S3 and stack name config better
Feb 27, 2019; repurpose this repository; it will contain resources that can launch various AWS stacks and implementations; it will be 100% self-contained with the caveat that Docker images have been built and deployed to Docker Hub (using the Docker resources in this git) to push the other implementations. The Dockerfile is a helper to build the stack as long as there is an AWS credentials available to the container.
This image was designed to be able to bootstrap this GIT into an AWS runtime
Assume this is built as 'mcliff/aws'
docker run --rm mcliff/aws:1.0.0
To run locally without anything
docker build -t local .
docker run local
This was built on an EC2 instance set up that has docker installed.
- Build the image (and tag)
docker build -t mcliff1/aws .
docker build -t mcliff/aws .
These steps created a latest tag; repeated with :0.0.1
appended to the end for a v0.0.1 tag as well, that is what other build scripts should reference
These templates are based natively in Cloud Formation, each on should have a clearly defined Parameters section and Outputs section.
- ec2-slsworkstation.json - creates EC2 REACT/SLS Dev workstation in the selected VPC and Subnet
- vpc.json - creates a VPC in the region imported into with public and private subnets in 3 availability zones
- bastion.json - adds a bastion host (uses vpc.json)
- rds-snapshot.json - restores a RDS database from snapshot (uses vpc.json)
- rds-postgres.json - creates a new RDS PostgreSQL database (uses vpc.json)
ec2-slsworkstation.json |
---|
The ec2-slsworkstation.json Cloud Formation template will build out a Serverless workstation with NodeJS, NPM, SLS, and REACT frameworks install.
|
ec2-kaggle.json |
---|
The ec2-kaggle.json Cloud Formation template will build out a workstation with Docker and the latest Kaggle image pulled.
|
vpc.json |
---|
The *vpc.json* Cloud Formation template will build out a VPC with private and public subnets. This provides outputs for subnet and security information that other scripts may leverage. This provides the basis for other templates.
|
bastion.json |
---|
The bastion.json Cloud Formation template will build create a bastion host on a VPC from the template.
Creates EC2 instance and security group, the new security group allows connectivity from outside the VPC, the instance also gets the security group that allows internal access to all resources (private and public) in the specified VPC.
[VPC.json](#vpc)
|
rds-snapshot.json |
---|
The *rds-snapshot.json* Cloud Formation template will build create a RDS instance in the VPC, from a snapshot.
Can restore any RDS DB instance
|
rds-postgres.json |
---|
The *rds-postgres.json* Cloud Formation template will build create a PostgreSQL instance in the VPC.
Builds a new RDS PostgreSQL database in the Private Subnets of the VPC.
|
back to top These use the Serverless framework, which is designed to provide abstraction to the underlying Cloud provider (AWS in our case).
Frameworks with API Gateway/Lambda
- simpleservice - builds a generic Lambda function and API gateway for POST to /; logs and echos both the event and context objects
- urlshortener - service to take a link, create a short-link and store in DynamoDB
- linklist - provides a framework for serverless list of links with comments uses Cognito, CloudFront, DynamoDB
- staticweb - provides framework to host S3 content behind a provided domainname
- slsweb - provides framework for serverless web (with Route 53, CloudFront, ...)
- restitemapi - a REST API for a generic item
contains some serverless code
- ref: building a sls dev environment - setting up credential
Simple Service |
---|
Creates a Lambda function that is generic.
|
Item REST API |
---|
Creates RESTful endpoint for **item** object, which is a generic *JSON* object. The key is **ItemKey**, this will automatically be generated if not present.
|
SLSWEB |
---|
This project implements a Stack that will deploy a fully functional serverless website. Builds evertyhing in _us-east-1_ region (CloudFront ACM certs must be there). create a serverless workstation (if you don't have one) From AWS CLI
1 2 From AWS Console - use Steps to build 1 Check out this Git Repository and change into the
Work Process, once we make an update to the Git repository, then run the CodeBuild process. Alternatives
To fully deploy this (we assume we have some GIT Repo or code base to deploy as web content) Building this I set my content in https://github.com/mcliff1/acg-react Next Steps - have SNS Topic message get sent after the build is complete Start flushing out changes to the REACT side of the app |