changing minsize to 2

This commit is contained in:
2020-05-01 01:48:07 +01:00
parent 9ba7de1ad2
commit 3fc49078ab
2 changed files with 17 additions and 3 deletions

View File

@@ -6,3 +6,5 @@ option_settings:
ELBSubnets: "subnet-051fe56dc37d8396d,subnet-0ea9f2f165a57be27,subnet-09b28d722f41b2dde" ELBSubnets: "subnet-051fe56dc37d8396d,subnet-0ea9f2f165a57be27,subnet-09b28d722f41b2dde"
aws:autoscaling:launchconfiguration: aws:autoscaling:launchconfiguration:
SecurityGroups: sg-0d339673ef68988a4 SecurityGroups: sg-0d339673ef68988a4
aws:autoscaling:asg:
MinSize: 2

View File

@@ -143,8 +143,6 @@ Default ports:
| SQL Server | 1433 | | SQL Server | 1433 |
| DynamoDB | 8000 | | DynamoDB | 8000 |
## Work Commands ## Work Commands
### tags ### tags
@@ -169,8 +167,22 @@ Default ports:
List of all RDS Engines available under "Engine" header: <https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_CreateDBInstance.html>. List of all RDS Engines available under "Engine" header: <https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_CreateDBInstance.html>.
### descrive-stack-resources ### describe-stack-resources
Will print a json list of all resources in the stack Will print a json list of all resources in the stack
`aws --profile admin cloudformation describe-stack-resources --stack-name strapi-vpc` `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: <https://github.com/awsdocs/elastic-beanstalk-samples>
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