Skip to content

Commit

Permalink
v2.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
AWS authored and AWS committed May 30, 2024
1 parent 2fa6e61 commit 83c0958
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 35 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2.7.0
v2.7.1
48 changes: 26 additions & 22 deletions customizations-for-aws-control-tower.template
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# permissions and limitations under the License.

AWSTemplateFormatVersion: '2010-09-09'
Description: '(SO0089) - customizations-for-aws-control-tower Solution. Version: v2.7.0'
Description: '(SO0089) - customizations-for-aws-control-tower Solution. Version: v2.7.1'

Parameters:
PipelineApprovalStage:
Expand Down Expand Up @@ -311,7 +311,7 @@ Resources:
BranchName: !Ref CodeCommitBranchName
S3:
Bucket: !Sub control-tower-cfct-assets-prod-${AWS::Region}
Key: !Sub customizations-for-aws-control-tower/v2.7.0/custom-control-tower-configuration-${AWS::Region}.zip
Key: !Sub customizations-for-aws-control-tower/v2.7.1/custom-control-tower-configuration-${AWS::Region}.zip

# SSM Parameter to store the git repository name
CustomControlTowerRepoNameParameter:
Expand Down Expand Up @@ -572,10 +572,10 @@ Resources:
- {KMSKeyName: !FindInMap [KMS, Alias, Name]}
Source:
Type: CODEPIPELINE
BuildSpec: "version: 0.2\nphases:\n install:\n runtime-versions:\n python: 3.8\n ruby: 2.6\n commands:\n - export current=$(pwd)\n - if [ -f manifest.yaml ];then export current=$(pwd);else if [ -f custom-control-tower-configuration/manifest.yaml ]; then export current=$(pwd)/custom-control-tower-configuration; else echo 'manifest.yaml does not exist at the root level of custom-control-tower-configuration.zip or inside custom-control-tower-configuration folder, please check the ZIP file'; exit 1; fi; fi;\n - apt-get -q update 1> /dev/null\n - apt-get -q install zip wget python3-pip libyaml-dev -y 1>/dev/null\n - export LC_ALL='en_US.UTF-8'\n - locale-gen en_US en_US.UTF-8\n - dpkg-reconfigure locales --frontend noninteractive\n pre_build:\n commands:\n - cd $current\n - echo 'Download CustomControlTower Scripts'\n - aws s3 cp --quiet s3://control-tower-cfct-assets-prod-${AWS_REGION}/customizations-for-aws-control-tower/v2.7.0/custom-control-tower-scripts.zip $current\n - unzip -q -o $current/custom-control-tower-scripts.zip -d $current\n - cp codebuild_scripts/* .\n - bash install_stage_dependencies.sh $STAGE_NAME\n build:\n commands:\n - echo 'Starting build $(date) in $(pwd)'\n - echo 'bash execute_stage_scripts.sh $STAGE_NAME $LOG_LEVEL $WAIT_TIME $SM_ARN $ARTIFACT_BUCKET $KMS_KEY_ALIAS_NAME $BOOL_VALUES $NONE_TYPE_VALUES'\n - bash execute_stage_scripts.sh $STAGE_NAME $LOG_LEVEL $WAIT_TIME $SM_ARN $ARTIFACT_BUCKET $KMS_KEY_ALIAS_NAME $BOOL_VALUES $NONE_TYPE_VALUES \n - echo 'Running build scripts completed $(date)'\n post_build:\n commands:\n - echo 'Starting post build $(date) in $(pwd)'\n - echo 'build completed on $(date)'\n\nartifacts:\n files:\n - '**/*'\n\n"
BuildSpec: "version: 0.2\nphases:\n install:\n runtime-versions:\n python: 3.11\n ruby: 3.3\n commands:\n - export current=$(pwd)\n - if [ -f manifest.yaml ];then export current=$(pwd);else if [ -f custom-control-tower-configuration/manifest.yaml ]; then export current=$(pwd)/custom-control-tower-configuration; else echo 'manifest.yaml does not exist at the root level of custom-control-tower-configuration.zip or inside custom-control-tower-configuration folder, please check the ZIP file'; exit 1; fi; fi;\n - apt-get -q update 1> /dev/null\n - apt-get -q install zip wget python3-pip libyaml-dev -y 1>/dev/null\n - export LC_ALL='en_US.UTF-8'\n - locale-gen en_US en_US.UTF-8\n - dpkg-reconfigure locales --frontend noninteractive\n pre_build:\n commands:\n - cd $current\n - echo 'Download CustomControlTower Scripts'\n - aws s3 cp --quiet s3://control-tower-cfct-assets-prod-${AWS_REGION}/customizations-for-aws-control-tower/v2.7.1/custom-control-tower-scripts.zip $current\n - unzip -q -o $current/custom-control-tower-scripts.zip -d $current\n - cp codebuild_scripts/* .\n - bash install_stage_dependencies.sh $STAGE_NAME\n build:\n commands:\n - echo 'Starting build $(date) in $(pwd)'\n - echo 'bash execute_stage_scripts.sh $STAGE_NAME $LOG_LEVEL $WAIT_TIME $SM_ARN $ARTIFACT_BUCKET $KMS_KEY_ALIAS_NAME $BOOL_VALUES $NONE_TYPE_VALUES'\n - bash execute_stage_scripts.sh $STAGE_NAME $LOG_LEVEL $WAIT_TIME $SM_ARN $ARTIFACT_BUCKET $KMS_KEY_ALIAS_NAME $BOOL_VALUES $NONE_TYPE_VALUES \n - echo 'Running build scripts completed $(date)'\n post_build:\n commands:\n - echo 'Starting post build $(date) in $(pwd)'\n - echo 'build completed on $(date)'\n\nartifacts:\n files:\n - '**/*'\n\n"
Environment:
ComputeType: BUILD_GENERAL1_SMALL
Image: "aws/codebuild/standard:5.0"
Image: "aws/codebuild/standard:7.0"
Type: LINUX_CONTAINER
EnvironmentVariables:
- Name: ARTIFACT_BUCKET
Expand All @@ -597,7 +597,7 @@ Resources:
- Name: SOLUTION_ID
Value: !FindInMap [ Solution, Metrics, SolutionID ]
- Name: SOLUTION_VERSION
Value: v2.7.0
Value: v2.7.1
- Name: AWS_STS_REGIONAL_ENDPOINTS
Value: "regional"
Artifacts:
Expand Down Expand Up @@ -702,10 +702,10 @@ Resources:
- {KMSKeyName: !FindInMap [KMS, Alias, Name]}
Source:
Type: CODEPIPELINE
BuildSpec: "version: 0.2\nphases:\n install:\n runtime-versions:\n python: 3.8\n ruby: 2.6\n commands:\n - export current=$(pwd)\n - if [ -f manifest.yaml ];then export current=$(pwd);else if [ -f custom-control-tower-configuration/manifest.yaml ]; then export current=$(pwd)/custom-control-tower-configuration; else echo 'manifest.yaml does not exist at the root level of custom-control-tower-configuration.zip or inside custom-control-tower-configuration folder, please check the ZIP file'; exit 1; fi; fi;\n - apt-get -q update 1> /dev/null\n - apt-get -q install zip wget python3-pip libyaml-dev -y 1> /dev/null \n pre_build:\n commands:\n - cd $current\n - echo 'Download CustomControlTower Scripts'\n - aws s3 cp --quiet s3://control-tower-cfct-assets-prod-${AWS_REGION}/customizations-for-aws-control-tower/v2.7.0/custom-control-tower-scripts.zip $current\n - unzip -q -o $current/custom-control-tower-scripts.zip -d $current\n - cp codebuild_scripts/* .\n - bash install_stage_dependencies.sh $STAGE_NAME\n build:\n commands:\n - echo 'Starting build $(date) in $(pwd)'\n - echo 'bash execute_stage_scripts.sh $STAGE_NAME $LOG_LEVEL $WAIT_TIME $SM_ARN $ARTIFACT_BUCKET $KMS_KEY_ALIAS_NAME $BOOL_VALUES $NONE_TYPE_VALUES'\n - bash execute_stage_scripts.sh $STAGE_NAME $LOG_LEVEL $WAIT_TIME $SM_ARN $ARTIFACT_BUCKET $KMS_KEY_ALIAS_NAME $BOOL_VALUES $NONE_TYPE_VALUES\n - echo 'Running build scripts completed $(date)'\n post_build:\n commands:\n - echo 'Starting post build $(date) in $(pwd)'\n - echo 'build completed on $(date)'\n\nartifacts:\n files:\n - '**/*'\n"
BuildSpec: "version: 0.2\nphases:\n install:\n runtime-versions:\n python: 3.11\n ruby: 3.3\n commands:\n - export current=$(pwd)\n - if [ -f manifest.yaml ];then export current=$(pwd);else if [ -f custom-control-tower-configuration/manifest.yaml ]; then export current=$(pwd)/custom-control-tower-configuration; else echo 'manifest.yaml does not exist at the root level of custom-control-tower-configuration.zip or inside custom-control-tower-configuration folder, please check the ZIP file'; exit 1; fi; fi;\n - apt-get -q update 1> /dev/null\n - apt-get -q install zip wget python3-pip libyaml-dev -y 1> /dev/null \n pre_build:\n commands:\n - cd $current\n - echo 'Download CustomControlTower Scripts'\n - aws s3 cp --quiet s3://control-tower-cfct-assets-prod-${AWS_REGION}/customizations-for-aws-control-tower/v2.7.1/custom-control-tower-scripts.zip $current\n - unzip -q -o $current/custom-control-tower-scripts.zip -d $current\n - cp codebuild_scripts/* .\n - bash install_stage_dependencies.sh $STAGE_NAME\n build:\n commands:\n - echo 'Starting build $(date) in $(pwd)'\n - echo 'bash execute_stage_scripts.sh $STAGE_NAME $LOG_LEVEL $WAIT_TIME $SM_ARN $ARTIFACT_BUCKET $KMS_KEY_ALIAS_NAME $BOOL_VALUES $NONE_TYPE_VALUES'\n - bash execute_stage_scripts.sh $STAGE_NAME $LOG_LEVEL $WAIT_TIME $SM_ARN $ARTIFACT_BUCKET $KMS_KEY_ALIAS_NAME $BOOL_VALUES $NONE_TYPE_VALUES\n - echo 'Running build scripts completed $(date)'\n post_build:\n commands:\n - echo 'Starting post build $(date) in $(pwd)'\n - echo 'build completed on $(date)'\n\nartifacts:\n files:\n - '**/*'\n"
Environment:
ComputeType: BUILD_GENERAL1_SMALL
Image: "aws/codebuild/standard:5.0"
Image: "aws/codebuild/standard:7.0"
Type: LINUX_CONTAINER
EnvironmentVariables:
- Name: SM_ARN
Expand All @@ -723,7 +723,7 @@ Resources:
- Name: SOLUTION_ID
Value: !FindInMap [ Solution, Metrics, SolutionID ]
- Name: SOLUTION_VERSION
Value: v2.7.0
Value: v2.7.1
- Name: AWS_STS_REGIONAL_ENDPOINTS
Value: "regional"
Artifacts:
Expand Down Expand Up @@ -880,10 +880,10 @@ Resources:
- {KMSKeyName: !FindInMap [KMS, Alias, Name]}
Source:
Type: CODEPIPELINE
BuildSpec: "version: 0.2\nphases:\n install:\n runtime-versions:\n python: 3.8\n ruby: 2.6\n commands:\n - export current=$(pwd)\n - if [ -f manifest.yaml ];then export current=$(pwd);else if [ -f custom-control-tower-configuration/manifest.yaml ]; then export current=$(pwd)/custom-control-tower-configuration; else echo 'manifest.yaml does not exist at the root level of custom-control-tower-configuration.zip or inside custom-control-tower-configuration folder, please check the ZIP file'; exit 1; fi; fi;\n - apt-get -q update 1> /dev/null\n - apt-get -q install zip wget python3-pip libyaml-dev -y 1> /dev/null\n pre_build:\n commands:\n - cd $current\n - echo 'Download CustomControlTower Scripts'\n - aws s3 cp --quiet s3://control-tower-cfct-assets-prod-${AWS_REGION}/customizations-for-aws-control-tower/v2.7.0/custom-control-tower-scripts.zip $current\n - unzip -q -o $current/custom-control-tower-scripts.zip -d $current\n - cp codebuild_scripts/* .\n - bash install_stage_dependencies.sh $STAGE_NAME\n build:\n commands:\n - echo 'Starting build $(date) in $(pwd)'\n - echo 'bash execute_stage_scripts.sh $STAGE_NAME $LOG_LEVEL $WAIT_TIME $SM_ARN $ARTIFACT_BUCKET $KMS_KEY_ALIAS_NAME $BOOL_VALUES $NONE_TYPE_VALUES'\n - bash execute_stage_scripts.sh $STAGE_NAME $LOG_LEVEL $WAIT_TIME $SM_ARN $ARTIFACT_BUCKET $KMS_KEY_ALIAS_NAME $BOOL_VALUES $NONE_TYPE_VALUES\n - echo 'Running build scripts completed $(date)'\n post_build:\n commands:\n - echo 'Starting post build $(date) in $(pwd)'\n - echo 'build completed on $(date)'\n\nartifacts:\n files:\n - '**/*'\n"
BuildSpec: "version: 0.2\nphases:\n install:\n runtime-versions:\n python: 3.11\n ruby: 3.3\n commands:\n - export current=$(pwd)\n - if [ -f manifest.yaml ];then export current=$(pwd);else if [ -f custom-control-tower-configuration/manifest.yaml ]; then export current=$(pwd)/custom-control-tower-configuration; else echo 'manifest.yaml does not exist at the root level of custom-control-tower-configuration.zip or inside custom-control-tower-configuration folder, please check the ZIP file'; exit 1; fi; fi;\n - apt-get -q update 1> /dev/null\n - apt-get -q install zip wget python3-pip libyaml-dev -y 1> /dev/null\n pre_build:\n commands:\n - cd $current\n - echo 'Download CustomControlTower Scripts'\n - aws s3 cp --quiet s3://control-tower-cfct-assets-prod-${AWS_REGION}/customizations-for-aws-control-tower/v2.7.1/custom-control-tower-scripts.zip $current\n - unzip -q -o $current/custom-control-tower-scripts.zip -d $current\n - cp codebuild_scripts/* .\n - bash install_stage_dependencies.sh $STAGE_NAME\n build:\n commands:\n - echo 'Starting build $(date) in $(pwd)'\n - echo 'bash execute_stage_scripts.sh $STAGE_NAME $LOG_LEVEL $WAIT_TIME $SM_ARN $ARTIFACT_BUCKET $KMS_KEY_ALIAS_NAME $BOOL_VALUES $NONE_TYPE_VALUES'\n - bash execute_stage_scripts.sh $STAGE_NAME $LOG_LEVEL $WAIT_TIME $SM_ARN $ARTIFACT_BUCKET $KMS_KEY_ALIAS_NAME $BOOL_VALUES $NONE_TYPE_VALUES\n - echo 'Running build scripts completed $(date)'\n post_build:\n commands:\n - echo 'Starting post build $(date) in $(pwd)'\n - echo 'build completed on $(date)'\n\nartifacts:\n files:\n - '**/*'\n"
Environment:
ComputeType: BUILD_GENERAL1_SMALL
Image: "aws/codebuild/standard:5.0"
Image: "aws/codebuild/standard:7.0"
Type: LINUX_CONTAINER
EnvironmentVariables:
- Name: SM_ARN
Expand All @@ -905,7 +905,7 @@ Resources:
- Name: SOLUTION_ID
Value: !FindInMap [Solution, Metrics, SolutionID]
- Name: SOLUTION_VERSION
Value: v2.7.0
Value: v2.7.1
- Name: METRICS_URL
Value: !FindInMap [Solution, Metrics, MetricsURL]
- Name: CONTROL_TOWER_BASELINE_CONFIG_STACKSET
Expand Down Expand Up @@ -1031,16 +1031,16 @@ Resources:
Variables:
LOG_LEVEL: !FindInMap [LambdaFunction, Logging, Level]
SOLUTION_ID: !FindInMap [Solution, Metrics, SolutionID]
SOLUTION_VERSION: v2.7.0
SOLUTION_VERSION: v2.7.1
Code:
S3Bucket: !Sub "control-tower-cfct-assets-prod-${AWS::Region}"
S3Key: customizations-for-aws-control-tower/v2.7.0/custom-control-tower-config-deployer.zip
S3Key: customizations-for-aws-control-tower/v2.7.1/custom-control-tower-config-deployer.zip
FunctionName: CustomControlTowerDeploymentLambda
Description: Custom Control Tower Deployment Lambda
Handler: config_deployer.lambda_handler
MemorySize: 512
Role: !GetAtt 'CustomControlTowerDeploymentLambdaRole.Arn'
Runtime: python3.8
Runtime: python3.11
Timeout: 300
TracingConfig:
Mode: Active
Expand All @@ -1053,7 +1053,7 @@ Resources:
DestinationBucketName: !Ref CustomControlTowerPipelineS3Bucket
DestinationS3Key: !If [IsBuildCustomControlTowerCondition, !FindInMap [BucketConfiguration, CustomControlTowerPipelineS3TriggerKey, Name], !FindInMap [BucketConfiguration, CustomControlTowerPipelineS3NonTriggerKey, Name]]
SourceBucketName: !Sub control-tower-cfct-assets-prod-${AWS::Region}
SourceS3Key: customizations-for-aws-control-tower/v2.7.0/custom-control-tower-configuration.zip
SourceS3Key: customizations-for-aws-control-tower/v2.7.1/custom-control-tower-configuration.zip
KMSConfig:
KMSKeyAlias: !Sub
- alias/${KMSKeyName}
Expand Down Expand Up @@ -1301,20 +1301,20 @@ Resources:
ADMINISTRATION_ROLE_ARN: !Sub arn:${AWS::Partition}:iam::${AWS::AccountId}:role/service-role/AWSControlTowerStackSetRole
EXECUTION_ROLE_NAME: !FindInMap [AWSControlTower, ExecutionRole, Name]
SOLUTION_ID: !FindInMap [Solution, Metrics, SolutionID]
SOLUTION_VERSION: v2.7.0
SOLUTION_VERSION: v2.7.1
METRICS_URL: !FindInMap [Solution, Metrics, MetricsURL]
MAX_CONCURRENT_PERCENT: !Ref MaxConcurrentPercentage
FAILED_TOLERANCE_PERCENT: !Ref FailureTolerancePercentage
REGION_CONCURRENCY_TYPE: !Ref RegionConcurrencyType
Code:
S3Bucket: !Sub "control-tower-cfct-assets-prod-${AWS::Region}"
S3Key: customizations-for-aws-control-tower/v2.7.0/custom-control-tower-state-machine.zip
S3Key: customizations-for-aws-control-tower/v2.7.1/custom-control-tower-state-machine.zip
FunctionName: CustomControlTowerStateMachineLambda
Description: Custom Control Tower State Machine Handler
Handler: state_machine_router.lambda_handler
MemorySize: 1024
Role: !GetAtt 'CustomControlTowerStateMachineLambdaRole.Arn'
Runtime: python3.8
Runtime: python3.11
Timeout: 300
TracingConfig:
Mode: Active
Expand Down Expand Up @@ -2900,22 +2900,24 @@ Resources:
LOG_LEVEL: !FindInMap [LambdaFunction, Logging, Level]
CODE_PIPELINE_NAME: !Ref CustomControlTowerCodePipeline
SOLUTION_ID: !FindInMap [ Solution, Metrics, SolutionID ]
SOLUTION_VERSION: v2.7.0
SOLUTION_VERSION: v2.7.1
Code:
S3Bucket: !Sub "control-tower-cfct-assets-prod-${AWS::Region}"
S3Key: customizations-for-aws-control-tower/v2.7.0/custom-control-tower-lifecycle-event-handler.zip
S3Key: customizations-for-aws-control-tower/v2.7.1/custom-control-tower-lifecycle-event-handler.zip
Description: Custom Control Tower Lifecyle event Lambda to handle lifecycle events
Handler: lifecycle_event_handler.lambda_handler
MemorySize: 512
Role: !GetAtt 'CustomControlTowerLELambdaRole.Arn'
Runtime: python3.8
Runtime: python3.11
Timeout: 30
TracingConfig:
Mode: Active

# FIFO SQS Dead Letter Queue for storing Lifecycle Events (LE) that can't be processed (consumed) successfully
CustomControlTowerLEFIFODLQueue:
Type: "AWS::SQS::Queue"
DeletionPolicy: Retain
UpdateReplacePolicy: Retain
DependsOn: CustomControlTowerDeploymentLambda
Metadata:
cfn_nag:
Expand All @@ -2936,6 +2938,8 @@ Resources:
# FIFO SQS Queue for storing Lifecycle Events (LE)
CustomControlTowerLEFIFOQueue:
Type: "AWS::SQS::Queue"
DeletionPolicy: Retain
UpdateReplacePolicy: Retain
DependsOn: CustomControlTowerDeploymentLambda
Metadata:
cfn_nag:
Expand Down Expand Up @@ -3196,6 +3200,6 @@ Outputs:
Value: !Ref CustomControlTowerPipelineS3Bucket
CustomControlTowerSolutionVersion:
Description: Version Number
Value: "v2.7.0"
Value: "v2.7.1"
Export:
Name: Custom-Control-Tower-Version
Loading

0 comments on commit 83c0958

Please sign in to comment.