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
* Configure the solution name, version number and bucket name of your target Amazon S3 distribution bucket
18
18
```
19
-
export DIST_OUTPUT_BUCKET_PREFIX=my-source-code-bucket-name_prefix # Prefix for the S3 bucket where customized code will reside
20
-
export TEMPLATE_OUTPUT_BUCKET=my-template-bucket-name # Name for the S3 bucket where the template will be located
21
-
export SOLUTION_NAME=customizations-for-aws-control-tower # name of the solution
22
-
export VERSION=my-version # version number for the customized code
19
+
export DIST_OUTPUT_BUCKET_PREFIX=my-bucket-prefix # Prefix for the S3 bucket where customized code will be stored
20
+
export TEMPLATE_OUTPUT_BUCKET=my-bucket-name # Name for the S3 bucket where the template will be stored
21
+
export SOLUTION_NAME= my-solution-name # name of the solution (e.g. customizations-for-aws-control-tower)
22
+
export VERSION=my-version # version number for the customized code (e.g. 2.1.0)
23
23
export REGION=aws-region-code # the AWS region to test the solution (e.g. us-east-1)
24
24
```
25
-
_Note:_ You would need to create one global bucket and one regional bucket. The global bucket TEMPLATE_OUTPUT_BUCKET, for example "my-bucket-name", is used to store the AWS CloudFormation template. The regional bucket <DIST_OUTPUT_BUCKET_PREFIX>-<REGION>, for example "my-bucket-name-us-east-1", is used to store your customized source code zip packages (lambda code). The solution's CloudFormation template will expect the source code to be located in a bucket matching that name. Also, the assets in bucket should be publicly accessible.
25
+
_Note:_ You would need to create one global bucket and one regional bucket. The global bucket TEMPLATE_OUTPUT_BUCKET, for example "my-bucket-name", is used to store the AWS CloudFormation template. The regional bucket $DIST_OUTPUT_BUCKET_PREFIX-$REGION, for example "my-bucket-name-us-east-1", is used to store your customized source code zip packages (lambda code). The solution's CloudFormation template will expect the source code to be located in a bucket matching that name. Also, the assets in bucket should be publicly accessible.
26
26
27
27
* Now build the distributable
28
28
```
@@ -39,7 +39,7 @@ chmod +x ./build-s3-dist.sh
39
39
40
40
* Upload the customized source code zip packages to your regional bucket in the following pattern
└── validation [ shell and python scripts for validating manifest schema and cfn template]
68
+
├── utils [ dependencies used in the solution ]
69
+
├── validation [ shell and python scripts for validating manifest schema and cfn template]
70
+
├── config_deployer.py [ Python code used by lambda to deploy configurations at solution deployment]
71
+
├── lifecycle_event_handler.py [ Python code used by lambda to process AWS Control Tower lifecycle event]
72
+
├── state_machine_handler.py [ Python code used by state machine to deploy SCPs and StackSets]
73
+
├── state_machine_router.py [ Python code used by lambda to invoke state machine functions]
74
+
└── state_machine_trigger.py [ Python code used by CodePipeline to trigger state machine]
67
75
```
68
76
69
77
Below shows the file structure of a custom configuration package which can be found in the github source code. Note that this is an example, therefore file path, folder and file names can be modified by customers to match what is defined in the manifest file.
0 commit comments