Example: biology

Amazon EC2 Auto Scaling - AWS Documentation

Amazon EC2 auto ScalingUser GuideAmazon EC2 auto Scaling User GuideAmazon EC2 auto Scaling : User GuideCopyright 2020 Amazon Web Services, Inc. and/or its affiliates. All rights 's trademarks and trade dress may not be used in connection with any product or service that is notAmazon's, in any manner that is likely to cause confusion among customers, or in any manner that disparages ordiscredits Amazon . All other trademarks not owned by Amazon are the property of their respective owners, who mayor may not be affiliated with, connected to, or sponsored by EC2 auto Scaling User GuideTable of ContentsWhat is Amazon EC2 auto Scaling ? .. 1 auto Scaling components .. 1 Getting started .. 2 Accessing Amazon EC2 auto Scaling .. 2 Pricing for Amazon EC2 auto Scaling .. 3 PCI DSS compliance .. 3 Related services .. 3 auto Scaling 3 Example: Covering variable demand.

Amazon EC2 Auto Scaling User Guide Table of Contents What Is Amazon EC2 Auto Scaling? ..... 1

Tags:

  Amazon, Guide, Auto, Scaling, Amazon ec2 auto scaling

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Advertisement

Transcription of Amazon EC2 Auto Scaling - AWS Documentation

1 Amazon EC2 auto ScalingUser GuideAmazon EC2 auto Scaling User GuideAmazon EC2 auto Scaling : User GuideCopyright 2020 Amazon Web Services, Inc. and/or its affiliates. All rights 's trademarks and trade dress may not be used in connection with any product or service that is notAmazon's, in any manner that is likely to cause confusion among customers, or in any manner that disparages ordiscredits Amazon . All other trademarks not owned by Amazon are the property of their respective owners, who mayor may not be affiliated with, connected to, or sponsored by EC2 auto Scaling User GuideTable of ContentsWhat is Amazon EC2 auto Scaling ? .. 1 auto Scaling components .. 1 Getting started .. 2 Accessing Amazon EC2 auto Scaling .. 2 Pricing for Amazon EC2 auto Scaling .. 3 PCI DSS compliance .. 3 Related services .. 3 auto Scaling 3 Example: Covering variable demand.

2 4 Example: Web app architecture .. 5 Example: Distributing instances across Availability Zones .. 6 Instance lifecycle .. 7 Scale 8 Instances in service .. 8 Scale 9 Attach an instance .. 9 Detach an instance .. 9 Lifecycle hooks .. 9 Enter and exit standby .. 10 Service quotas .. 10 Setting up .. 11 Sign up for AWS .. 11 Prepare to use Amazon EC2 .. 11 Install the AWS CLI .. 11 Getting started .. 12 Step 1: Create a launch template .. 13 Step 2: Create an auto Scaling group .. 14 Step 3: Verify your auto Scaling group .. 15(Optional) Terminate an instance in your auto Scaling group .. 15 Step 4: Next steps .. 16 Step 5: (Optional) Delete your Scaling infrastructure .. 16 Tutorial: Set up a scaled and load-balanced application .. 18 Prerequisites .. 18 Deploy your application (console) .. 19 Create a launch template .. 19 Create a launch configuration.

3 20 Create an auto Scaling group .. 21(Optional) Verify that your load balancer is attached .. 22 Deploy your application (AWS CLI) .. 22 Create a launch template .. 22 Create a launch configuration .. 23 Create an auto Scaling group with a load balancer .. 23 Next steps .. 23 Clean up your AWS resources .. 24 Launch 25 Creating a launch template for an auto Scaling group .. 25 Creating your launch template (console) .. 26 Creating a launch template from an existing instance (console) .. 31 Creating a launch template (AWS CLI) .. 31 Copying a launch configuration to a launch template .. 32 Replacing a launch configuration with a launch template .. 33 Launch configurations .. 35 Creating a launch configuration .. 35 Creating your launch configuration (console) .. 36iiiAmazon EC2 auto Scaling User GuideCreating a launch configuration (AWS CLI).

4 37 Configuring IMDS .. 37 Creating a launch configuration using an EC2 instance .. 38 Create a launch configuration using an EC2 instance .. 39 Create a launch configuration from an instance and override the block devices (AWS CLI) .. 40 Create a launch configuration and override the instance type (AWS CLI) .. 41 Changing a launch configuration .. 42 Requesting Spot Instances .. 43 Configuring instance tenancy .. 44 Launching instances in a VPC .. 46 Default 46IP addressing in a VPC .. 46 Instance placement tenancy .. 47 Linking EC2-Classic instances to a VPC .. 47 More resources for learning about VPCs .. 48 auto Scaling groups .. 49 Using multiple instance types and purchase options .. 50 Allocation 50 Controlling the proportion of On-Demand instances .. 52 Best practices for Spot Instances .. 53 Prerequisites .. 54 Creating an auto Scaling group (console).

5 54 Creating an auto Scaling group (AWS CLI) .. 55 Instance weighting .. 59 Creating a group using a launch template .. 65 Creating a group using the EC2 launch wizard .. 67 Creating a group using a launch configuration .. 67 Creating a group using an EC2 instance .. 69 Limitations and prerequisites .. 70 Create an auto Scaling group from an EC2 instance (AWS CLI) .. 70 Tagging auto Scaling groups and instances .. 72 Tag restrictions .. 73 Tagging lifecycle .. 73 Add or modify tags for your auto Scaling group .. 73 Delete 75 Elastic Load 76 Elastic Load Balancing types .. 77 Attaching a load balancer .. 77 Adding ELB health checks .. 80 Adding an Availability Zone .. 81 Compute Optimizer recommendations .. 84 Viewing recommendations .. 84 Considerations for evaluating the recommendations .. 85 Replacing instances based on maximum instance lifetime.

6 85 Replacing instances based on an instance refresh .. 88 Start or cancel an instance refresh .. 89 Merging auto Scaling groups .. 91 Merge zones (AWS CLI) .. 91 Deleting your auto Scaling infrastructure .. 93 Delete your auto Scaling group .. 93(Optional) Delete the launch configuration .. 93(Optional) Delete the launch template .. 94(Optional) Delete the load balancer and target groups .. 94(Optional) Delete CloudWatch alarms .. 95 Scaling your group .. 96ivAmazon EC2 auto Scaling User GuideScaling 96 Setting capacity limits .. 97 Maintaining a fixed number of instances .. 98 Manual 98 Changing the size of your auto Scaling group (console) .. 98 Changing the size of your auto Scaling group (AWS CLI) .. 99 Attach EC2 instances to your auto Scaling group .. 101 Detach EC2 instances from your auto Scaling group .. 105 Dynamic 108 How Scaling policies work.

7 108 Scaling policy types .. 109 Multiple Scaling 109 Target tracking Scaling policies .. 110 Step and simple Scaling 115 Scaling based on Amazon SQS .. 124 Verifying a Scaling activity .. 128 Disabling a Scaling policy .. 130 Deleting a Scaling policy .. 132 AWS CLI examples for Scaling policies .. 133 Scaling cooldowns .. 135 Default cooldown period .. 136 Scaling -specific cooldown period .. 136 Example simple Scaling cooldown scenario .. 137 Cooldowns and multiple instances .. 138 Cooldowns and lifecycle hooks .. 138 Scheduled 139 Create and manage scheduled actions (console) .. 139 Create and manage scheduled actions (AWS CLI) .. 140 auto Scaling instance termination .. 141 Default termination policy .. 142 Customizing the termination policy .. 143 Instance scale-in protection .. 144 Common scenarios .. 146 Lifecycle hooks .. 148 How lifecycle hooks work.

8 150 Prepare for notifications .. 150 Add lifecycle hooks .. 151 Complete a lifecycle hook custom action .. 152 Test the notification .. 153 Configuring lifecycle hook notifications .. 153 Temporarily removing instances .. 156 How the standby state works .. 157 Health status of an instance in a standby state .. 158 Temporarily remove an instance (console) .. 158 Temporarily remove an instance (AWS CLI) .. 158 Suspending 161 Scaling processes .. 161 Choosing to 161 Suspend and resume Scaling processes (console) .. 164 Suspend and resume Scaling processes (AWS CLI) .. 165 Checking instance health .. 166 Instance health status .. 166 Determining instance health .. 166 Health check grace period .. 167vAmazon EC2 auto Scaling User GuideReplacing unhealthy instances .. 168 Using custom health 168 Capacity Rebalancing .. 169 How it works .. 169 Enabling Capacity Rebalancing.

9 169 Adding a termination lifecycle hook .. 174 Monitoring with Personal Health Dashboard .. 175 Monitoring with CloudWatch .. 176 Enabling auto Scaling group metrics .. 177 Available metrics and dimensions .. 177 Viewing graphed metrics for your auto Scaling groups and instances .. 179 Working with Amazon CloudWatch .. 180 Configuring monitoring for auto Scaling instances .. 181 Logging API calls with AWS CloudTrail .. 182 Amazon EC2 auto Scaling information in CloudTrail .. 183 Understanding Amazon EC2 auto Scaling log file entries .. 183 Monitoring with Amazon SNS notifications .. 184 SNS 185 Configuring Amazon SNS notifications for Amazon EC2 auto Scaling .. 186 Automating with EventBridge .. 188 auto Scaling events .. 189 Create a Lambda function .. 192 Route events to your Lambda function .. 193 Security .. 195 Data protection .. 195 Encrypting your data using AWS KMS.

10 196 Identity and access management .. 196 Access control .. 196 How Amazon EC2 auto Scaling works with IAM .. 197 Service-linked roles .. 202 Identity-based policy examples .. 205 Launch template support .. 214 IAM role for applications that run on Amazon EC2 instances .. 218 Required CMK key policy for use with encrypted volumes .. 220 Compliance validation .. 223 Resilience .. 224 Infrastructure security .. 224 Using VPC endpoints for private connectivity .. 224 Create an interface VPC endpoint .. 225 Create a VPC endpoint policy .. 225 Troubleshooting .. 227 General troubleshooting issues .. 227 Launch template permissions are missing .. 227 IAM role permissions are missing .. 227 Retrieving an error message .. 227 Instance launch failure .. 229 The security group <name of the security group> does not exist. Launching EC2 instance failed. 230 The key pair <key pair associated with your EC2 instance> does not exist.


Related search queries