In this step, you will use a CloudFormation (CFN) template to deploy the infrastructure for this database migration. AWS CloudFormation simplifies provisioning the infrastructure, so we can concentrate on tasks related to data migration.
Open the AWS CloudFormation console , and click on the Create Stack button.

Select Template is ready, and choose Upload a template file as the source template. Then, click on Choose file and upload the DMSWorkshop2025.yaml. Click Next.

Populate the form as with the values specified below, and then click Next.
| Input Parameter | Values |
|---|---|
| Stack Name | A unique identifier without spaces. |
| MigrationType / Lab Type | Database that you want to migrate (Oracle or SQL Server). |
| EC2ServerInstanceType | An Amazon EC2 Instance type from the drop-down menu. Recommend using the default value. |
| KeyName | The KeyPair (DMSKeypair) that you created in the previous step. |
| RDSInstanceType | An Amazon RDS Instance type from the drop-down menu. Recommend using the default value. |
| VpcCIDR | The VPC CIDR range in the form x.x.x.x/16. Defaults to 10.20.0.0/16 |
| IAMRoleDmsVpcExist | Does your AWS account already have dms-vpc-role(goto IAM>roles & search for “dms-vpc” to check) if this role is not there template will fail-rollback unless you change default Y to N? |

The resources that are created here will be prefixed with whatever value you specify in the Stack Name. Please specify a value that is unique to your account.
On the Stack Options page, accept all of the defaults and click Next.


On the Review page, click Create stack.

At this point, you will be directed back to the CloudFormation console and will see a status of CREATE_IN_PROGRESS. Please wait here until the status changes to CREATE_COMPLETE.

Once CloudFormation status changes to CREATE_COMPLETE, go to the Outputs section.
Make a note of the Output values from the CloudFormation environment that you launched as you will need them for the remainder of the tutorial:
