diff --git a/.ebextensions/07-custom-vpc.config b/.ebextensions/07-custom-vpc.config index 0e5625b..05a51ba 100644 --- a/.ebextensions/07-custom-vpc.config +++ b/.ebextensions/07-custom-vpc.config @@ -6,3 +6,5 @@ option_settings: ELBSubnets: "subnet-051fe56dc37d8396d,subnet-0ea9f2f165a57be27,subnet-09b28d722f41b2dde" aws:autoscaling:launchconfiguration: SecurityGroups: sg-0d339673ef68988a4 + aws:autoscaling:asg: + MinSize: 2 diff --git a/tempnotes.md b/tempnotes.md index da25ec4..46f69bc 100644 --- a/tempnotes.md +++ b/tempnotes.md @@ -143,8 +143,6 @@ Default ports: | SQL Server | 1433 | | DynamoDB | 8000 | - - ## Work Commands ### tags @@ -169,8 +167,22 @@ Default ports: List of all RDS Engines available under "Engine" header: . -### descrive-stack-resources +### describe-stack-resources Will print a json list of all resources in the stack `aws --profile admin cloudformation describe-stack-resources --stack-name strapi-vpc` + +Using `jq` for formatting: + +`aws --profile admin cloudformation describe-stack-resources --stack-name strapi-vpc | jq -r '.StackResources[] | .ResourceType + ": " + .PhysicalResourceId'` + +Good repo for examples: + +Doc: +Add the ELB subnets to the VPC config + +Create another custom security group for the EC2 instance - should be private +autoscaling should have current public security group + +Load balancer should have the current subnets