You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: aws_sra_examples/docs/CFCT-DEPLOYMENT-INSTRUCTIONS.md
+79-12Lines changed: 79 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -4,16 +4,28 @@ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-
4
4
5
5
---
6
6
7
+
CfCT is a deployment mechanism for SRA solutions within Control Tower enabled AWS environments.
8
+
The requisite [SRA solution configuration files](https://github.com/aws-samples/aws-security-reference-architecture-examples/tree/main/aws_sra_examples/solutions) are stored in either CodeCommit (deprecated service) or S3 and programmatically configured in AWS with a CodePipeline. Whether you're using the sra-easy-setup deployment method or deploying SRA controls ADHOC, the CfCT deployment mechanism makes managing and customizing SRA solutions easier.
9
+
10
+
7
11
## Table of Contents<!-- omit in toc -->
8
12
9
13
-[Prerequisites](#prerequisites)
14
+
-[Deploy Control Tower](#deploy-control-tower)
10
15
-[Create the AWSControlTowerExecution IAM Role](#create-the-awscontroltowerexecution-iam-role)
11
16
-[Deploy Customizations for AWS Control Tower (CFCT) Solution](#deploy-customizations-for-aws-control-tower-cfct-solution)
- These customizations act on existing Control Tower deployments. For more details on Control Tower and Landing Zone deployments, see the [userguide](https://docs.aws.amazon.com/controltower/latest/userguide/quick-start.html).
28
+
17
29
### Create the AWSControlTowerExecution IAM Role
18
30
19
31
- The `AWSControlTowerExecution` Role provides the support needed to deploy solutions to the `management account` across regions as CloudFormation `StackSets` and it is required for the SRA CFCT solution deployments.
@@ -27,18 +39,31 @@ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-
- Acknowledge that AWS CloudFormation might create IAM resources with custom names
33
45
34
46
Note: Version 2 or higher of CfCT is expected.
35
47
36
48
### AWS CodeCommit Repo
49
+
*Note: AWS CodeCommit is being deprecated and cannot be deployed to new environments, unless that environment is a part of an AWS Organization with an account that already has CodeCommit deployed. Please see [AWS S3 Repo](#aws-s3-repo) for new AWS Accounts.*
50
+
51
+
Create a CodeCommit repo for SRA customization [configuration files](#deployment-instructions).
37
52
38
53
1. On the local machine install [git](https://git-scm.com/downloads) and [git-remote-codecommit](https://docs.aws.amazon.com/codecommit/latest/userguide/how-to-connect.html).
39
54
2. Clone the AWS CodeCommit repository via `git clone codecommit::<HOME REGION>://custom-control-tower-configuration custom-control-tower-configuration`
40
55
56
+
### AWS S3 Repo
57
+
58
+
Create a CodeCommit repo for SRA cusotmization [configuration files](#deployment-instructions).
59
+
60
+
- By default, the CodePipeline deployed from the custom-control-tower-initiation CloudFormation will use the `custom-control-tower-configuration-<< ACCOUNT NAME >>-<< REGION NAME >>` S3 bucket as a Source repo. Additionally, it will look for the `custom-control-tower-configuration.zip` file. The pipeline will fail without it. We have provided users with an example `_custom-control-tower-configuration.zip` file in S3 with an example repo for convenience.
61
+
62
+
- If you would like to change the S3 bucket Source for the CodePipeline, you will need to navigate to the CodePipeline within the AWS console, edit the Source stage for the CodePipeline and update the Bucket name value. Users can also modify the S3 object key value if the ZIP filename differs from default.
63
+
64
+
41
65
## Deployment Instructions<!-- omit in toc -->
66
+
*Note: these instructions assume version 2 or higher of the CfCT solution has been installed.*
42
67
43
68
1. Determine which version of the [Customizations for AWS Control Tower](https://aws.amazon.com/solutions/implementations/customizations-for-aws-control-tower/) solution you have deployed:
44
69
1. Within the `management account (home region)` find the **CloudFormation Stack** for the Customizations for Control Tower (e.g. `custom-control-tower-initiation`)
@@ -48,18 +73,59 @@ Note: Version 2 or higher of CfCT is expected.
48
73
2. Version 2 = v2.x.x = manifest.yaml version 2021-03-15
49
74
2. If version 2 is installed, continue to the deployment instructions below. If not, you will need to update your version of CfCT.
50
75
51
-
#### Deployment Instructions<!-- omit in toc -->
52
76
53
-
Note: these instructions assume version 2 or higher of the CfCT solution has been installed.
77
+
##### Configue Your SRA Deployment Repo
78
+
79
+
SRA Customizations with CfCT are deployed via a CodePipeline from either a CodeCommit or S3 source.
80
+
Here's an example of an repo for sra-easy-deploy.yaml deployment with controls/parameters for GuardDuty.
81
+
82
+
> ├── manifest.yaml
83
+
> |
84
+
> ├── templates
85
+
> │ └── sra-easy-setup.yaml
86
+
> |
87
+
> ├── parameters
88
+
> │ └── sra-guardduty-org-main-ssm.json
89
+
> |
90
+
> ├── policies
91
+
92
+
93
+
###### manifest.yaml file [**required**]
94
+
95
+
The manifest file will contain all the high level SRA controls that will be deployed to your environment.
96
+
An example manifest file for [sra-easy-setup.yaml](https://github.com/aws-samples/aws-security-reference-architecture-examples/blob/main/aws_sra_examples/easy_setup/customizations_for_aws_control_tower/manifest.yaml)
97
+
98
+
- Define all `parameters`, `organizational unit names`, `account names` and `SSM parameters` necessary for the SRA controls that you want to enable and configure here.
99
+
100
+
- If you are using a non-standard file structure in your Repo, as outlined above, the [*resource_file* key](https://github.com/aws-samples/aws-security-reference-architecture-examples/blob/main/aws_sra_examples/easy_setup/customizations_for_aws_control_tower/manifest.yaml#L13C5-L13C49) value in your manifest file must reflect the path to your template.
101
+
102
+
- Be sure to update the [*accounts* key](https://github.com/aws-samples/aws-security-reference-architecture-examples/blob/main/aws_sra_examples/easy_setup/customizations_for_aws_control_tower/manifest.yaml#L310) to reflect your Management Account name.
103
+
104
+
###### templates [**required**]
105
+
106
+
The templates directory will contain the actual CloudFormation files that are defined within the manifest file.
107
+
We use the sra-easy-setup deployment method as an example for the manifest above, [here's](https://github.com/aws-samples/aws-security-reference-architecture-examples/blob/main/aws_sra_examples/easy_setup/templates/sra-easy-setup.yaml) what the template file looks like.
108
+
109
+
You can also deploy SRA solutions ADHOC, without the sra-easy-setup, by including their corresponding manifest CFN template entry under the resources list for your manifest.yaml file. Exmaples of manifest files for supported solutions can be found within the `aws_sra_examples` repo [aws_sra_examples/solutions/<< SOLUTION NAME >>/customizations_for_aws_control_tower/manifest.yaml](https://github.com/aws-samples/aws-security-reference-architecture-examples/tree/main/aws_sra_examples/solutions).
110
+
111
+
- You shouldn't need to modify much in this template file as all SRA controls and parameters are defined in the manifest and files under the parameters directory, respectively.
112
+
113
+
###### policies [optional]
114
+
115
+
Service control policy JSON files go here. The files under the Policies directory will depend on what SRA controls that you're deploying to your environment. Not all SRA controls will require policies defined here.
116
+
117
+
###### parameters [optional]
118
+
119
+
Service control parameter JSON files go here. The files under the Parameters directory will depend on what SRA controls that you're deploying to your environment. Not all SRA controls will require parameters defined here.
120
+
121
+
Above, we used the [sra-guardduty-org-main-ssm.json](https://github.com/aws-samples/aws-security-reference-architecture-examples/blob/main/aws_sra_examples/solutions/guardduty/guardduty_org/customizations_for_aws_control_tower/parameters/sra-guardduty-org-main-ssm.json) parameters file as an example for our sra-easy-setup deploying GuardDuty controls in AWS.
122
+
123
+
You can find examples of parameter files for each security solution that we support within the `aws_sra_examples` repo [aws_sra_examples/solutions/<< SOLUTION NAME >>/customizations_for_aws_control_tower/parameters/](https://github.com/aws-samples/aws-security-reference-architecture-examples/tree/main/aws_sra_examples/solutions).
124
+
125
+
126
+
##### Push To CodeCommit or S3
127
+
*Note: If you are using S3, the files above will need to be ZIPPED up and named `custom-control-tower-configuration`.*
54
128
55
-
1. Copy the files to the Customizations for AWS Control Tower configuration `custom-control-tower-configuration`
56
-
- policies [optional]
57
-
- service control policies files (\*.json)
58
-
- templates [**required**]
59
-
- Copy the template files from the `templates` folder that are referenced in the `manifest.yaml`
60
-
2. Update the manifest.yaml file with the `parameters`, `organizational unit names`, `account names` and `SSM parameters` for the target environment
61
-
-*Be sure to update `deployment_targets``accounts` with your management account information*
62
-
3. Deploy the Customizations for AWS Control Tower configuration by pushing the code to the `AWS CodeCommit` repository or uploading to the `AWS S3 Bucket`
63
129
64
130
### Delete Instructions<!-- omit in toc -->
65
131
@@ -72,6 +138,7 @@ Note: these instructions assume version 2 or higher of the CfCT solution has bee
72
138
1. Delete the Stack Instances from the `CustomControlTower-<solution_name>*` CloudFormation StackSets
73
139
2. After the Stack Instances are deleted, delete the `CustomControlTower-<solution_name>*` CloudFormation StackSets
74
140
141
+
75
142
## References
76
143
77
-
-[Customizations for AWS Control Tower](https://aws.amazon.com/solutions/implementations/customizations-for-aws-control-tower/)
144
+
-[Customizations for AWS Control Tower](https://aws.amazon.com/solutions/implementations/customizations-for-aws-control-tower/)
0 commit comments