Create a Placement Group and place instances under it
Hello Everyone
Welcome to CloudAffaire and this is Debjeet. In this blog post, we are going to create a Placement Group and place instances under it.
Below is the prerequisite for this demo
One active AWS account
Create a Placement Group and place instances under it
Step 1: Login to AWS console and click ‘EC2’ under compute
Step 2: Navigate to ‘Placement Groups’ located under NETWORK & SECURITY. Click ‘Create Placement Group’.
Step 3: Provide name and strategy for the placement group. Click ‘Create’
Note: We can choose either cluster or spread as placement group strategy. In this demo, we are selecting the spread strategy so that we can utilize the free tire eligible instances.
Our new Placement Group has been created.
Next, we are going to launch EC2 instances using this placement group.
Step 4: Navigate to ‘Instance’ located under INSTANCES. Click ‘Launch Instance’.
Step 5: Select any free tire eligible AMI and click ‘Select’
Step 6: Choose t2.micro as instance type and click ‘Next: Configure Instance Details’
Step 7: Provide the number of instances and select the placement group from drop down. Click ‘Review and Launch’
Note: To make the placement group effective you need to add more than one instance. You can add additional instances to this placement group later but its recommended by AWS to launch all the instance at once to avoid any capacity issue in the future. You can customize the instance’s configuration but in this demo, we are focusing on placing instances using the placement group. Hence we are skipping additional instance configurations.
Step 8: Review the instance configuration and click ‘Launch’
Step 9: Select Key Pair and click ‘Launch Instances’
One success message will appear, click ‘View Instances’
Three new instances have been created with different IP allocation and subnet.
Hope you have enjoyed this blog post. In the next blog, we are going to discuss Key Pairs.