Step 4: Deploy the migration stacks
Follow the step-by-step instructions in this section to deploy the migration stacks into your account.
Time to deploy: Approximately 45-60 minutes
-
Specify the Region in which you want to deploy the migration stacks by setting the AWS_DEFAULT_REGION environment variable, for example:
export AWS_DEFAULT_REGION=us-east-1
-
If this is the first time you’re deploying CDK in this Region of your account, you must bootstrap the account to work with CDK. In the
cdk.context.json
file, run the following command:cdk bootstrap --c contextId=default
-
If this is the first time you’re deploying Amazon OpenSearch Service or an ECS cluster with CDK in this account, create the service linked role initially by running:
aws iam create-service-linked-role --aws-service-name opensearchservice.amazonaws.com
aws iam create-service-linked-role --aws-service-name ecs.amazonaws.com
-
To deploy the CDK context block you have configured, run the CDK command:
cdk deploy "*" --c contextId=default --require-approval never --concurrency 3
For additional help and tips, see the README.md