Step 1. (Option 2) Launch the stack in AWS China Regions
Important
The following deployment instructions apply to AWS China Regions only. For deployment in AWS Regions refer to Option 1.
Prerequisites
-
Make sure a domain registered by ICP
is available.
Prerequisite 1: Create an OIDC user pool
In AWS Regions where Amazon Cognito is not yet available, you
can use OIDC to provide authentication. The following procedure
uses AWS Partner
Authing
-
Go to the Authing console
. -
Create a new user pool if you don’t have one.
-
Select the user pool.
-
On the left navigation bar, select Self-built App under Applications.
-
Click the Create button.
-
Enter the Application Name, and Subdomain.
-
Save the App ID (that is,
client_id
) and Issuer to a text file from Endpoint Information, which will be used later. -
Update the Login Callback URL and Logout Callback URL to your ICP recorded domain name.
-
Set the Authorization Configuration.
-
Update login control.
-
Select and enter the Application interface from the left sidebar, select Login Control, and then select Registration and Login.
-
Please select only Password Login: Email for the login method.
-
Please uncheck all options in the registration method.
-
Select Save.
-
-
Create an admin user.
-
From User & Roles, select Users, then choose Create user.
-
Enter the email for the user.
-
Choose OK.
-
Check the email for a temporary password.
-
Reset the user password.
Note
Because the Guidance does not support application roles, all the users will receive admin rights.
-
Prerequisite 2: Configure domain name service resolution
Configure domain name service (DNS) resolution to point the ICP licensed domain to the CloudFront default domain name. Optionally, you can use your own DNS resolver.
The following is an example for configuration an Amazon Route 53.
-
Create a hosted zone in Amazon Route 53. For more information refer to the Amazon Route 53 Developer Guide.
-
Create a CNAME record for the console URL.
-
From the hosted zone, choose Create Record.
-
In the Record name input box, enter the host name.
-
From Record type select CNAME.
-
In the value field, enter the CloudFormation output PortalUrl.
-
Select Create records.
-
-
Add alternative domain names to the CloudFront distribution.
-
Configure the corresponding domain name in CloudFront to open the CloudFront console by finding the distribution ID for PortalURL in the list and selecting ID (or check the check box, and then select Distribution Settings).
-
Edit the distribution and add the Route 53 record to the alternative domain Names (CNAMEs).
-
Deploy the AWS CloudFormation template for Option 2 – AWS China Regions
This automated AWS CloudFormation template deploys Data Transfer in the AWS Cloud. You must Create an ODIC User Pool and Configure DNS resolution before launching the stack.
Note
You are responsible for the cost of the AWS services used while running this Guidance. For more details, visit the Cost section in this guide, and refer to the pricing webpage for each AWS service used in this Guidance.
-
Sign in to the AWS Management Console and select the button to launch the
DataTransferHub-openid.template
AWS CloudFormation template. Alternatively, you can download the templateas a starting point for your own implementation. -
The template launches in your console’s default Region. To launch the Guidance in a different AWS Region, use the Region selector in the console navigation bar.
-
On the Create stack page, verify that the correct template URL is in the Amazon S3 URL text box and choose Next.
-
On the Specify stack details page, assign a name to your Guidance stack. For information about naming character limitations, refer to IAM and AWS STS quotas in the AWS Identity and Access Management User Guide.
-
Under Parameters, review the parameters for this Guidance template and modify them as necessary. This Guidance uses the following default values.
Parameter Default Description OidcProvider <Requires input>
Refers to the Issuer shown in the OIDC application configuration. OidcClientId <Requires input>
Refers to the App ID shown in the OIDC application configuration. OidcCustomerDomain <Requires input>
Refers to the customer domain that has completed ICP registration in China, not the subdomain provided by Authing. It must start with https://
.AdminEmail <Requires input>
Refers to the email for receiving task status alarm. -
Choose Next.
-
On the Configure Stack Options page, keep the default values and choose Next.
-
On the Review page, review and confirm the settings. Check the box acknowledging that the template will create IAM resources.
-
Choose Create Stack to deploy the stack.
You can view the status of your stack in the AWS CloudFormation console in the Status column. You should receive a CREATE_COMPLETE status in approximately 15 minutes.