-
Notifications
You must be signed in to change notification settings - Fork 234
feat: add support for AWS China regions #794
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -28,7 +28,7 @@ It is okay to install ADF and AWS Control Tower in different regions. | |||||
| For example: | ||||||
|
|
||||||
| - Install AWS Control Tower in `eu-central-1`. | ||||||
| - Install ADF in `us-east-1`. | ||||||
| - Install ADF in `us-east-1` or `cn-north-1`. | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does that work, having AWS Control Tower deployed in |
||||||
|
|
||||||
| **If you want to use ADF and AWS Control Tower, we recommend that you setup | ||||||
| AWS Control Tower prior to installing ADF.** | ||||||
|
|
@@ -44,12 +44,12 @@ Ensure you have setup [AWS CloudTrail](https://aws.amazon.com/cloudtrail/) | |||||
| regions**, the trail itself can be created in any region. Events [triggered via | ||||||
| CloudTrail](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_incident-response.html) | ||||||
| for AWS Organizations can only be acted upon in the us-east-1 (North Virginia) | ||||||
| region. | ||||||
| or cn-northwest-1 region. | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this correct? This is the first time you reference |
||||||
|
|
||||||
| Please use the [AWS CloudTrail | ||||||
| instructions](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-create-and-update-a-trail.html) | ||||||
| to configure the CloudTrail in the `us-east-1` region within the AWS | ||||||
| Organizations Management AWS Account. | ||||||
| to configure the CloudTrail in the `us-east-1` or `cn-north-1` region | ||||||
| within the AWS Organizations Management AWS Account. | ||||||
|
|
||||||
| ### 1.2. Enable AWS Organizations API Access | ||||||
|
|
||||||
|
|
@@ -289,10 +289,10 @@ or applications into via AWS CodePipeline *(this can be updated later)*. | |||||
|
|
||||||
| When deploying ADF for the first time, part of the installation process will | ||||||
| automatically create an AWS CodeCommit repository in the management AWS Account | ||||||
| within the `us-east-1` region. It will also make the initial commit to the | ||||||
| default branch of this repository with a default set of examples that act as a | ||||||
| starting point to help define the AWS Account bootstrapping processes for your | ||||||
| Organization. | ||||||
| within the `us-east-1` or `cn-north-1` region. It will also make the initial | ||||||
| commit to the default branch of this repository with a default set of | ||||||
| examples that act as a starting point to help define the AWS Account | ||||||
| bootstrapping processes for your Organization. | ||||||
|
|
||||||
| Part of the questions that follow will end up in the initial commit into the | ||||||
| repository. These are passed directly the `adfconfig.yml` file prior to it | ||||||
|
|
@@ -330,7 +330,7 @@ To gather the values, you can either find them in the | |||||
| `aws-deployment-framework-bootstrap` repository in the `adfconfig.yml` | ||||||
| file. Or by looking up the values that were specified the last time ADF got | ||||||
| installed/updated via the CloudFormation template parameters of the | ||||||
| `serverlessrepo-aws-deployment-framework` stack in `us-east-1`. | ||||||
| `serverlessrepo-aws-deployment-framework` stack in `us-east-1` or `cn-north-1`. | ||||||
|
|
||||||
| #### Stack Name | ||||||
|
|
||||||
|
|
@@ -352,6 +352,7 @@ Value to use depends on the AWS partition it is deployed to: | |||||
|
|
||||||
| - For the AWS partition (most common), use; `us-east-1` | ||||||
| - For the US-Gov partition, use: `us-gov-west-1` | ||||||
| - For the China partition, use `cn-north-1` | ||||||
|
|
||||||
| **Explanation:** | ||||||
| ADF needs to be deployed in the region where the control plane of the | ||||||
|
|
@@ -517,7 +518,7 @@ This can always be updated later via the `adfconfig.yml` file. | |||||
|
|
||||||
| You don't need to include the main region in this list. For example, if you | ||||||
| use the example values for the default region and target regions, it will allow | ||||||
| pipelines to deploy to `eu-west-1`, `eu-central-`, and `us-east-1`. | ||||||
| pipelines to deploy to `eu-west-1`, `eu-central-`, `cn-north-1` and `us-east-1`. | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. AWS does not support deploying cross multiple partitions as far as I know.
Suggested change
|
||||||
|
|
||||||
| *This is not required when performing an update between versions of ADF.* | ||||||
| *Only supported when installing ADF for the first time. | ||||||
|
|
@@ -647,8 +648,9 @@ automatically in the background, to follow its progress: | |||||
|
|
||||||
| 1. Please navigate to the AWS Console in the AWS Management account. | ||||||
| As the stack `serverlessrepo-aws-deployment-framework` completes you can now | ||||||
| open AWS CodePipeline from within the management account in `us-east-1` and | ||||||
| see that there is an initial pipeline execution that started. | ||||||
| open AWS CodePipeline from within the management account in `us-east-1` | ||||||
| or `cn-north-1` and see that there is an initial pipeline | ||||||
| execution that started. | ||||||
|
|
||||||
| Upon first installation, this pipeline might fail to fetch the source | ||||||
| code from the repository. Click the retry failed action button to try again. | ||||||
|
|
@@ -693,7 +695,7 @@ automatically in the background, to follow its progress: | |||||
| that started the bootstrap process for the deployment account. You can view | ||||||
| the progress of this in the management account in the AWS Step Functions | ||||||
| console for the step function `AccountBootstrappingStateMachine-` in the | ||||||
| `us-east-1` region. | ||||||
| `us-east-1` or `cn-north-1` region. | ||||||
|
|
||||||
| 3. Once the Step Function has completed, switch roles over to the newly | ||||||
| bootstrapped deployment account in the region you defined as your main | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of adding
cn-north-1everywhere whereus-east-1is used, I would like to suggest we add a mapping table at the top to explain what values to use for each partition.Otherwise we should also add the us-gov region everywhere, in case that partition is used.
For the US-Gov partition, the region they should deploy to is
us-gov-west-1.