Page tree
Skip to end of metadata
Go to start of metadata

Quickstart

AWS Developer Guide

Use parameters for inputs https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/parameters-section-structure.html and mappings https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/mappings-section-structure.html for dictionary-like static key:value pairs 

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-service.html

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/sample-templates-services-us-west-2.html

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-using-cli.html

Use the CDK for Infrastructure as Code development for CloudFormation - AWS CDK

Infrastructure

AWS-1 - Getting issue details... STATUS

Design

Use CloudFormation Designer to map out the stack.  VPC resources are in the EC2 section.

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/working-with-templates-cfn-designer-walkthrough-createbasicwebserver.html


AWS CloudFormation for new VPC

AWS-10 - Getting issue details... STATUS

see AWS Event Driven Architecture#AWS2subnetInventory

Start with 
https://aws-quickstart.github.io/quickstart-aws-vpc/

https://github.com/aws-quickstart/quickstart-aws-vpc



Create / delete
CF stack
biometric:cloudformation michaelobrien$ aws cloudformation deploy --template-file vpc-cfn.yaml --stack-name vpc --region=us-west-1
Waiting for changeset to be created..
Waiting for stack create/update to complete
Successfully created/updated stack - vpc

update the yaml - rerun deploy to  UPDATE  the stack
delete the stack
aws cloudformation delete-stack --stack-name vpc --region=us-west-1

Example stack at 

https://aws-quickstart.github.io/quickstart-aws-vpc/

biometric:cloudformation michaelobrien$ aws s3 mb s3://cf-uswest1-packet-global --region=us-west-1
make_bucket: cf-uswest1-packet-global
biometric:cloudformation michaelobrien$ aws cloudformation deploy --template-file aws-vpc.template.yaml --parameter-overrides AvailabilityZones=us-west-1b,us-west-1c --stack-name vpc-aws --region=us-west-1 --s3-bucket cf-uswest1-packet-global 

Waiting for changeset to be created..
Waiting for stack create/update to completeSuccessfully created/updated stack - vpc-aws



Parameters






AvailabilityZonesus-west-2a,us-west-2b-

CreateAdditionalPrivateSubnetsfalse-

CreateNATGatewaystrue-

CreatePrivateSubnetstrue-

CreatePublicSubnetstrue-

CreateVPCFlowLogsToCloudWatchfalse-

KeyPairNamedeprecated-

NATInstanceTypedeprecated-

NumberOfAZs2-

PrivateSubnet1ACIDR10.0.0.0/19-

PrivateSubnet1BCIDR10.0.192.0/21-

PrivateSubnet2ACIDR10.0.32.0/19-

PrivateSubnet2BCIDR10.0.200.0/21-

PrivateSubnet3ACIDR10.0.64.0/19-

PrivateSubnet3BCIDR10.0.208.0/21-

PrivateSubnet4ACIDR10.0.96.0/19-

PrivateSubnet4BCIDR10.0.216.0/21-

PrivateSubnetATag1Network=Private-

PrivateSubnetATag2--

PrivateSubnetATag3--

PrivateSubnetBTag1Network=Private-

PrivateSubnetBTag2--

PrivateSubnetBTag3--

PublicSubnet1CIDR10.0.128.0/20-

PublicSubnet2CIDR10.0.144.0/20-

PublicSubnet3CIDR10.0.160.0/20-

PublicSubnet4CIDR10.0.176.0/20-

PublicSubnetTag1Network=Public-

PublicSubnetTag2--

PublicSubnetTag3--

VPCCIDR10.0.0.0/16-

VPCFlowLogsCloudWatchKMSKey--

VPCFlowLogsLogFormat${version} ${account-id} ${interface-id} ${srcaddr} ${dstaddr} ${srcport} ${dstport} ${protocol} ${packets} ${bytes} ${start} ${end} ${action} ${log-status}-

VPCFlowLogsLogGroupRetention14-

VPCFlowLogsMaxAggregationInterval600-

VPCFlowLogsTrafficTypeREJECT-

VPCTenancydefault-

Outputs







NAT1EIP54.148.254.81NAT 1 IP addressQuick-Start-VPC-NAT1EIP

NAT2EIP54.185.136.217NAT 2 IP addressQuick-Start-VPC-NAT2EIP

NATGateway1IDnat-0a7a0bb0f12d6ace6NATGateway 1 IDQuick-Start-VPC-NATGateway1

NATGateway2IDnat-0183a5892397f5797NATGateway 2 IDQuick-Start-VPC-NATGateway2

PrivateSubnet1ACIDR10.0.0.0/19Private subnet 1A CIDR in Availability Zone 1Quick-Start-VPC-PrivateSubnet1ACIDR

PrivateSubnet1AIDsubnet-0dd1caeb94290c5dbPrivate subnet 1A ID in Availability Zone 1Quick-Start-VPC-PrivateSubnet1AID

PrivateSubnet1ARouteTablertb-0107465a0eabe3923Private subnet 1A route tableQuick-Start-VPC-PrivateSubnet1ARouteTable

PrivateSubnet2ACIDR10.0.32.0/19Private subnet 2A CIDR in Availability Zone 2Quick-Start-VPC-PrivateSubnet2ACIDR

PrivateSubnet2AIDsubnet-0cd9cd13a193b498aPrivate subnet 2A ID in Availability Zone 2Quick-Start-VPC-PrivateSubnet2AID

PrivateSubnet2ARouteTablertb-0f197e86663162f8dPrivate subnet 2A route tableQuick-Start-VPC-PrivateSubnet2ARouteTable

PublicSubnet1CIDR10.0.128.0/20Public subnet 1 CIDR in Availability Zone 1Quick-Start-VPC-PublicSubnet1CIDR

PublicSubnet1IDsubnet-0757564be2909ff71Public subnet 1 ID in Availability Zone 1Quick-Start-VPC-PublicSubnet1ID

PublicSubnet2CIDR10.0.144.0/20Public subnet 2 CIDR in Availability Zone 2Quick-Start-VPC-PublicSubnet2CIDR

PublicSubnet2IDsubnet-0eb4feabb4345b22ePublic subnet 2 ID in Availability Zone 2Quick-Start-VPC-PublicSubnet2ID

PublicSubnetRouteTablertb-0194deb3dbd42661aPublic subnet route tableQuick-Start-VPC-PublicSubnetRouteTable

S3VPCEndpointvpce-055c44c8d9ebae99bS3 VPC EndpointQuick-Start-VPC-S3VPCEndpoint

VPCCIDR10.0.0.0/16VPC CIDRQuick-Start-VPC-VPCCIDR

VPCIDvpc-0fad496920023472eVPC IDQuick-Start-VPC-VPCID

AWS Cloudformer

CloudFormer is deprecated - see https://former2.com/ - get a minimum access admin account setup first before adding the CORS workaround


  • No labels

1 Comment

  1. check on k8s diagram gen from yaml