logo

How To: vRealize Automation and AWS Integration

Over the week, I was asked to prepare a POC that uses vRealize Automation to provision AWS workloads. Being a AWS noob, I had to reference few articles to get this going.

Here are the steps to help you:

Using: vRealize Automation 6.2.1

AWS Sign-up

  1. Create an AWS Account. You’ll be needing Credit Card information for this.
  2. After the Account Creation – you need to wait a maximum of 24 hours before you can start using it.
    NOTE: you can use a Free Tier for 1 year.

 

Create AWS Identity and Access Management (IAM) Users

  1. Go to Security Credential
  2. Create a User
  3. Assign Permission to the User (In my case, for testing, I assigned Administrator permission)
  4. Create Security Access Key Pair
  5. Keep the Key Pair as you’ll be needing this in the vRA Endpoint

 

Create AWS Machine Image

In AWS World, AWS Machine Image (AMI) are Templates. We need to either create or copy from someone an AMI Image. This will be the basis for the Blueprint in vRA.

Official AWS Guide for AMI using using EBS storage: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami-ebs.html

Official AWS Guide for AMI using Instance storage backed:  http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/Creating_InstanceStoreBacked_WinAMI.html

In a nutshell,

  1. Launch an EC2 Instance
  2. Customize how you want it (just like a VMware Template!)
  3. Stop EC2 Instance (optional)
  4. Click Actions -> Create Image

2015-06-10_7-12-57

 

vRealize Automation Setup

1. Create Endpoint using the Security Access Key Pair

2. View Data Collection option and click Start

2015-06-10_7-15-21

3. Once it finishes, Go to Groups -> Fabric Admin and select which region you want to deploy. I selected Asia Pacific region in my example below.
After pressing OK, this will initiate a Data Gathering procedure on the selected region.
NOTE: You should be logged on as Fabric Administrator

2015-06-10_7-19-25

4. To monitor Data Collection, Go to Infrastructure -> Compute Resources. Highlight to the region and Select Data Collection. Mine took an hour to populate (slow internet )

2015-06-10_7-21-12

vRealize Automation : Create Reservation

1. Go to Infrastructure -> Reservation, and fill-out the items

2015-06-10_7-34-11

 

2. In the Resources Tab, choose how you want vRA to “tag” the instance created at AWS for the specific Reservation.  This will depend on how you want your billing to be structured. For this example, I chose Auto-Generate per business Group.

Other options include:

– AutoGenerate Per Machine

– Specific Key Pair

2015-06-10_7-43-28

 

3. The VPC defines where/ how the Network will be placed for the provisioned instance in this Reservation. I just use the default VPC for now.

 

vRealize Automation Blueprint

Now we need to create a blueprint for our Catalog so our User’s can consume it from the portal

1.Go to Infrastructure -> Blueprints and Create Amazon EC2 Blueprint

2015-06-10_7-49-47

2. In the Blueprint Information page, fill-out the items. Check  “Display location on request” to provide options on where to provision the Instance

2015-06-10_7-51-203. In the next tab, Select the Available Instance Types (specs) for the specified blueprint

2015-06-10_7-53-544. Click the Amazon Machine Image and Select the AMI. (Step Above)

Note: You can filter the dialog box to display only private ones (created by you!)

2015-06-10_7-56-31

 

5. Once the Blueprint is created you need to publish it to be able to add in Catalog/ Services

2015-06-10_7-57-59

 

vRealize Automation : Create Service

In my homelab, I created Services depending on the OS Type. This may differ depending on your strategy and how you want your users interact with the catalog.

1. Go to Administration -> Catalog Management -> Services, Add Amazon Web Service

2015-06-10_8-03-03

 

2. After creation, Highlight the newly Created  Service and click Manage Catalog Items.

2015-06-10_8-04-27

 

3. In the next window, Click the + sign and Add the new Blueprint we created on the previous section. After adding, the service should look like below

2015-06-10_8-06-30

 

4. (OPTIONAL): Assign Icons to the Blueprint by going to Administration -> Catalog Management -> Catalog Items.

 

vRealize Automation : Create Entitlement

Entitlement dictates who can use the Service and/or Catalog Items

1. Go to Administration -> Catalog Management -> Entitlements, Make sure to add Users/Groups that will have access to the Entitlement. (CHOOSE ACTIVE  as well)

2015-06-10_8-11-05

 

2. After clicking Next, Select the Service AND Actions you want this Entitlement to associate with.

Service:

2015-06-10_8-12-35

 

3. Once done, you are all set in Consuming AWS Service from vRA!

 

Consuming the Service

Here’s what mine looks like (Service per OS Type)

2015-06-10_8-18-44

 

1. Once you click on the request, depending on the Blueprint was setup, it would look like below:

2015-06-10_8-20-26

 

2. In AWS Portal, you would see the instance being provisioned. The Name field is dictated by the Machine Prefix you choose in the Blueprint section.

2015-06-10_8-22-45

 

3. In vRA, if you choose to Destroy the Instance, you’ll get prompted if you want to Destroy the Volume as well. This means if you want o destroy the underlying files or just un-register the Instance.

2015-06-10_8-28-00

4. Once Destroyed, it will be marked as Terminated in AWS Portal

2015-06-10_8-30-37

 

Questions

1. How do I gain access to the Instanced from AWS?

It will be dependent on the KeyPair that was generated

2. How can I remotely access the Instance from AWS?

I will be dependent on the VPC you setup in AWS

 

 

Hope this helps!

 

 

Leave a Reply

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.