From b16b7474146729ae64d75da0334af4da834a0ea6 Mon Sep 17 00:00:00 2001 From: dtomlinson Date: Sun, 3 May 2020 00:23:34 +0100 Subject: [PATCH] updating documentation --- runningnotes.md | 18 ++++++ tempnotes.md | 165 +++++++++++++++++++++++++++++++++++------------- todo.md | 125 ++---------------------------------- 3 files changed, 146 insertions(+), 162 deletions(-) diff --git a/runningnotes.md b/runningnotes.md index 2a47c34..ce2cf62 100644 --- a/runningnotes.md +++ b/runningnotes.md @@ -11,6 +11,7 @@ * [Fix Version Numbers](#FixVersionNumbers) * [Strapi in git](#Strapiingit) * [Cloudformation](#Cloudformation) + * [Output naming convention](#Outputnamingconvention) * [Creating templates](#Creatingtemplates) * [Adding resources](#Addingresources) * [Using parameters](#Usingparameters) @@ -225,6 +226,23 @@ You can then run Strapi with `npm run develop` or `NODE_ENV=production npm run s (example of deploying an S3 bucket with static site `index.html`.) +### Output naming convention + +You should follow a standard naming convention for your CF outputs. + +For example: + +```yaml +Outputs: + PublicVPCOutput: + Description: The VPC ID. + Value: !Ref PublicVPC + Export: + Name: !Sub "${AWS::StackName}-EBStrapiPublicVPC" +``` + +Defines a VPC. We can then pass in the stackname to another CF template and it can reference this VPC. The VPC names are static between projects (they don't have to be but here they are). + ### Creating templates To create a cloudformation template you should create a `template.yaml`. This yaml file should have at the top: diff --git a/tempnotes.md b/tempnotes.md index 285adbb..4279029 100644 --- a/tempnotes.md +++ b/tempnotes.md @@ -1,19 +1,35 @@ - -- [Decoupling](#Decoupling) -- [Creating Database + VPC + Subnets in Cloudformation](#CreatingDatabaseVPCSubnetsinCloudformation) -- [Single instance (no load balancer)](#Singleinstancenoloadbalancer) - _ [EC2::VPC](#EC2::VPC) - _ [Enable DNS](#EnableDNS) - _ [EC2::Subnet](#EC2::Subnet) - _ [EC2::InternetGateway](#EC2::InternetGateway) - _ [EC2::VPCGatewayAttachment](#EC2::VPCGatewayAttachment) - _ [AWS::EC2::RouteTable](#AWS::EC2::RouteTable) - _ [AWS::EC2::Route](#AWS::EC2::Route) - _ [AWS::EC2::SubnetRouteTableAssociation](#AWS::EC2::SubnetRouteTableAssociation) -- [Running notes](#Runningnotes) -- [Reference an input parameter, or a resource ID from inside current template](#ReferenceaninputparameteroraresourceIDfrominsidecurrenttemplate) \* [Using `Fn::Sub`](#UsingFn::Sub) -- [Dynamically referencing resources from another stack.](#Dynamicallyreferencingresourcesfromanotherstack.) +* [Decoupling](#Decoupling) +* [Creating Database + VPC + Subnets in Cloudformation](#CreatingDatabaseVPCSubnetsinCloudformation) +* [Single instance (no load balancer)](#Singleinstancenoloadbalancer) + * [EC2::VPC](#EC2::VPC) + * [Enable DNS](#EnableDNS) + * [EC2::Subnet](#EC2::Subnet) + * [EC2::InternetGateway](#EC2::InternetGateway) + * [EC2::VPCGatewayAttachment](#EC2::VPCGatewayAttachment) + * [AWS::EC2::RouteTable](#AWS::EC2::RouteTable) + * [AWS::EC2::Route](#AWS::EC2::Route) + * [AWS::EC2::SubnetRouteTableAssociation](#AWS::EC2::SubnetRouteTableAssociation) +* [Running notes](#Runningnotes) + * [Database](#Database) +* [Work Commands](#WorkCommands) + * [tags](#tags) + * [deploy](#deploy) + * [delete](#delete) + * [describe-stack-resources](#describe-stack-resources) +* [Adding SSL to ELB](#AddingSSLtoELB) + * [With load balancer](#Withloadbalancer) +* [EB Templates/Resources](#EBTemplatesResources) +* [Configuring security groups](#Configuringsecuritygroups) +* [Elastic Load Balancer](#ElasticLoadBalancer) + * [Elastic Scaler](#ElasticScaler) + * [RDS](#RDS) + * [Security group to allow EC2 instances to talk to each other](#SecuritygrouptoallowEC2instancestotalktoeachother) +* [Custom VPC + Subnets in EB](#CustomVPCSubnetsinEB) +* [Using cloudformation functions in EB config files](#UsingcloudformationfunctionsinEBconfigfiles) +* [Creating a read replica RDS](#CreatingareadreplicaRDS) +* [Multiple security groups on the same resource](#Multiplesecuritygroupsonthesameresource) +* [Private subnets](#Privatesubnets)