Copyright Amazon Web Services, Inc. and its affiliates. All rights reserved.This sample code is made available under the MIT-0 license. See the LICENSE file.
Errors or corrections? Contact [email protected].
In this module you will firstly deploy the base AWS VPC network environment via the first CloudFormation template, then using the second CloudFormation template deploy the workshop resources into the US-WEST-2 (Oregon) region which contains the following:
-
1 x Windows instance (used as the access machine for the workshop)
-
1 x Linux Instance (used to perform the data migrations)
- From your local workstation, open a web browser to the AWS console and login with your AWS Account URL https://console.aws.amazon.com
- In the AWS Console window that you opened, in the top right hand corner, next to your account name, click on the drop down and change your region to us-west-2 (Oregon)
-
From the top left of the screen click Services and type & select EC2
-
From the left hand window pane, navigate to Network & Security, click on Key Pairs and from the right hand window select Create Key Pairs from the top menu
-
Enter the Key pair name of : stg316-key
-
Select PEM file format
-
Select Create
-
-
It will then download a .pem file to your users downloads folder (or a location you have specified). If you are using Google Chrome, the downloaded file will also be shown at the bottom of the screen for reference.
Note: Take note of the location of this .pem file you downloaded, as you will copy this key to your deployed Amazon Windows EC2 instance, once you have deployed it as part of the subsequent instructions
NOTE: Make sure you set your region to us-west-2 (Oregon)
NOTE: If you are using an AWS provided Event Engine lab session SKIP this DEPLOY VPC ENVIRONMENT section, and go straight to the next section which is DEPLOY WORKSHOP RESOURCES.
-
From the AWS console on your local laptop/workstation, click Services and type & select CloudFormation
-
In the top right hand corner, next to your account name, click on the drop down and change your region to us-west-2 (Oregon)
-
Now in the CloudFormation page click on Create stack
-
Click on With new resources from the drop down
-
Under Amazon S3 URL copy and paste this URL
https://ee-assets-prod-us-east-1.s3.amazonaws.com/modules/2343f58921ff4b66b136904c1265d64b/v1/part-1-deploy-vpc.json -
Click on Next at the bottom of the window
-
-
Enter the Stack name of STG316-VPC
-
Leave all other values as unchanged
-
Click on Next to continue
-
On the next page scroll to the bottom and click on Next to continue
-
Click on Create stack
-
Click on the refresh icon as highlighted in RED until the status value changes to CREATE_COMPLETE (this may take a few minutes) as shown below, you can then progress to the next steps
Note: Make sure your region is set to us-west-2 (Oregon)
-
From the AWS console on your local laptop/workstation, click Services and type & select CloudFormation
-
Click on Create stack
-
Click on With new resources from the drop down
-
Under Amazon S3 URL enter this address
https://ee-assets-prod-us-east-1.s3.amazonaws.com/modules/2343f58921ff4b66b136904c1265d64b/v1/part-2-deploy-resources.json -
Click on Next at the bottom of the window
-
-
Enter the Stack name of STG316-Resources
-
Select the following for the other values
-
VPC : Select option that has STG316 in the name
-
subnet : Select option that has STG316 Public Subnet-AZ1 in the name
-
KeyName : Select the key pair name you created in the previous step
-
SecurityGroupIds: Select STG316-BastionHostSG
-
Do not modify the two values for LatestWindowsAmiID & LatestLinuxAmiID
-
-
Click on Next to continue
-
Scroll to the bottom of the next screen and click on Next
-
Scroll to the bottom of the next screen, check the CloudFormation acknowledgement box and click on Create stack
-
You will be taken to the CloudFormation stack status page
-
Click on the refresh icon as until the status value changes to CREATE_COMPLETE (this may take a few minutes) as shown below, you can then progress to the next steps
Firstly let’s retrieve the Windows administrator password from AWS Secrets Manager
-
From your laptop connect to the AWS console, click Services and type & select Secrets Manager
-
Click on the value shown under Secret name (i.e. AdminSecret-abczxy)
-
Scroll down the page and click on Retrieve secret value
-
Copy and paste the password value shown for Secret key value into a notepad file
-
Next let’s connect to your Windows Server EC2 instance
-
From your laptop connect to the AWS console, click Services and type & select EC2
-
From the left hand menu, select Instances
-
In the right hand pane, select the box next to “Workshop Windows instance 1”, then right click and select Connect
-
Click on The RDP Client tab, then Download Remote Desktop File
-
Open the downloaded Remote Desktop File and select Connect at the prompt
-
Enter the credentials below and click on OK
-
username : Administrator
-
Password : the value you obtained from Secrets manager
-
-
-
When you have successfully logged into your Windows EC2 instance via the Remote Desktop Session, navigate back to your local workstation/laptop to where you stored the *.pem key file earlier. Right click & select copy on the *.pem file, and then go into your Remote Desktop Session (Windows EC2 instance) and right click on a free space on the Desktop screen and select paste to copy the *.pem key file across.
Note: All remaining tasks for the workshop will be performed through the Remote Desktop Session to the Windows EC2 Instance you just connected to in the previous steps.
-
Open the Chrome icon located on the desktop of the Windows EC2 instance that you deployed. Then open the following workshop instructions ( https://github.com/aws-samples/aws-online-data-migration-workshop/blob/master/filegateway/README.md ) in the Chrome browser. Then in another Chrome tab login to your AWS Account URL https://console.aws.amazon.com
-
From the AWS console, on the top left, click Services and type & select EC2
-
From the top right hand drop-down ensure your region is us-west-2 (Oregon)
-
From the left hand menu, select Instances
-
In the right hand pane, select the box next to “Workshop Linux instance 1”.
-
From the bottom window, select the Details tab, and copy down the private IP address shown
-
Then open the workshop.txt that is located on the desktop of your Windows workshoop instances, and paste the value you copied for private IP, into the field for Linux-Instance-Private-IP=
-
You will use this Linux-Instance-Private-IP in the next module
-
In this module you deployed your base VPC, subnets, security groups, Amazon EC2 compute instances and the SSH key that that you will use for the remainder of the workshop.