Manipulation of AWS EC2 Instances, S3 Buckets, Autoscaling Groups (ASG)

Confidence Level High  This article been formally reviewed and is signed off on by a relevant subject matter expert. 

Confidence Level High  This article been formally reviewed and is signed off on by a relevant subject matter expert. 

 


This article demonstrates how to perform various commonly used tasks with Amazon Web Services (AWS) which are applicable to HySDS.

 

Most AWS resources are region specific. HySDS resources reside in us-west-2 (Oregon). Before performing any actions in this article, ensure the correct region is selected (See #2 in pic below).

 

Access to the AWS permissions required to perform the tasks outlined in this article varies by JPL mission. Based on the setup, operators may not be able to perform some or all of these actions.

 

Stop an EC2 Instance

Figure 1: #1 AWS Console search box; #2 AWS Region menu

 

  1. Log into the AWS console using your JPL credentials at: goto.jpl.nasa.gov/awsconsole

  2. On the AWS Console, search for “EC2” in the Find Services search box (#1) and select it.

  3. In the EC2 dashboard, under the Resources section, click on Running Instances.

  4. Next, select the desired instance to stop (#3) from the left-hand column listing all running instances.

  5. Click on Actions → Instance State → Stop (#4) to stop the selected EC2 instance.

Figure 2: #3 Individual EC2 instances; #4 Stop selected running instances

Terminate an EC2 Instance

  1. Log into the AWS console using your JPL credentials at: goto.jpl.nasa.gov/awsconsole

  2. On the AWS Console, search for “EC2” in the Find Services search box (#1) and select it.

  3. In the EC2 dashboard, under the Resources section, click on Running Instances.

  4. Select the desired EC2 Instance to terminate.

  5. Click on Actions → Instance State → Terminate (#5) to terminate the selected EC2 instance.

Figure 3: #5 Terminate a selected instance

Create a S3 Storage Bucket

Figure 4: #6 AWS Console search box

 

  1. Log into the AWS console using your JPL credentials at: goto.jpl.nasa.gov/awsconsole

  2. On the AWS Console, search for “S3” in the Find Services search box (#6) and select it.

  3. Once in the Simple Storage Solution (S3) dashboard, click the Create Bucket link.

  4. Enter a bucket name (#7) on the Create bucket page. Confirm the desired AWS region (#8).

Figure 5: #7 S3 bucket name field; #8 AWS Region selection menu

Obtain IP Address of EC2 Instance

  1. Log into the AWS console using your JPL credentials at: goto.jpl.nasa.gov/awsconsole

  2. On the AWS Console, search for “EC2” in the Find Services search box (#1) and select it.

  3. In the EC2 dashboard, under the Resources section, click on Running Instances.

  4. Select the desired EC2 instance (#9). The IP address is shown in the lower info panel (#10).

Figure 6: #9 List of EC2 instances; #10 IP address of selected EC2 instances are displayed in various locations

 

Change Desired and Maximum Capacity in an Auto Scaling Group (ASG)

  1. Log into the AWS console using your JPL credentials at: goto.jpl.nasa.gov/awsconsole

  2. On the AWS Console, search for “EC2” in the Find Services search box (#1) and select it.

  3. In the EC2 dashboard left-hand menu, click the Auto Scaling Groups link towards the bottom (#11).

Figure 7: #11 Auto Scaling Groups Dashboard link

 

4. On the Auto Scaling Group dashboard, select the desired ASG (#12). Next click Action → Edit (#13).

Figure 8: #12 List of available Auto Scaling Groups; #13 Edit option for selected ASG’s

 

5. On the Edit Details pop-up window, scroll down to find the Desired, Minimum, and Maximum Capacity of EC2 nodes of the selected ASG (#14). Click Save once done.

Figure 9: #14 Auto Scaling Group edit options

 


Related Articles:

Have Questions? Ask a HySDS Developer:

Anyone can join our public Slack channel to learn more about HySDS. JPL employees can join #HySDS-Community

JPLers can also ask HySDS questions at Stack Overflow Enterprise

Search HySDS Wiki

Page Information:

Was this page useful?

Yes No

Contribution History:

Subject Matter Expert:

@Lan Dang

@Marjorie Lucas

@Topher Allen

Find an Error?

Is this document outdated or inaccurate? Please contact the assigned Page Maintainer:

@Marjorie Lucas

 

 

Note: JPL employees can also get answers to HySDS questions at Stack Overflow Enterprise: