Provision VPC and EC2 Instance (AWS) - Clean Up
  • 18 Oct 2024
  • Dark
    Light
  • PDF

Provision VPC and EC2 Instance (AWS) - Clean Up

  • Dark
    Light
  • PDF

Article summary

Now that we’ve created our VPC and spun up our web server, let’s take a quick look at how we can automate the tear down of those same assets.  For this process, you will need the VPC ID that was copied in the previous section.

Instance Clean Up Video

Step 1

Navigate to Operations Manager and select the VPC and EC2 Instance Cleanup-Workshop automation.

Step 2

Run the Form Trigger trigger.

Step 3

Enter the VPC ID copied from the manual task in the previous section and click Run Manually. The results will open in a new tab.

Step 4

When the workflow completes, right click on the Child Job task and select Open.

Step 5

Here you can see the workflow that was run within the Child Job task.  Use the scroll bar to review the steps taken in the child job workflow.  At a high level, this workflow:

  • Described the VPC
  • Got the EC2 instance in the VPC
  • Terminated the EC2 instance
  • Deleted the Security Group
  • Deleted the Subnet
  • Detached and deleted the Internet Gateway
  • And Deleted the VPC

Step 6

If you would like to confirm your instance was removed, navigate to Configuration Manager within IAP.  Here, you can see that your VPC instance is no longer available.

 This completes our Provision VPC and EC2 instance use-case walkthrough.



Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.