Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

SRA Prerequisites

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: CC-BY-SA-4.0

Table of Contents

Introduction

The SRA Prerequisites Solution creates the resources (Staging S3 Buckets and Execution IAM Role) and configuration AWS Systems Manager Parameters (SSM Parameters) for simplifying the deployment of SRA solutions within an AWS Control Tower environment. All resources that support tags are provided a tag keypair of sra-solution: sra-common-prerequisites.

AWS Systems Manager (SSM) has a Parameter Store capability that provides secure, hierarchical storage for configuration data management and secrets management. You can store data such as passwords, database strings, Amazon Machine Image (AMI) IDs, and license codes as parameter values. You can store values as plain text or encrypted data. You can reference Systems Manager parameters in your scripts, commands, SSM documents, and configuration and automation workflows by using the unique name that you specified when you created the parameter.

Deployed Resource Details

Architecture

1.0 Organization Management Account

1.1 AWS CloudFormation

  • All resources are deployed via AWS CloudFormation as a StackSet and Stack Instance within the management account or a CloudFormation Stack within a specific account.
  • For parameter details, review the AWS CloudFormation templates.

1.2 Org ID AWS Lambda IAM Role

  • The AWS Org ID Lambda IAM Role allows the AWS Lambda service to assume the role and perform actions defined in the attached IAM policies.

1.3 Org ID AWS Lambda Function

1.4 AWS Lambda CloudWatch Log Group

  • AWS Lambda Function logs are sent to a CloudWatch Log Group </aws/lambda/<LambdaFunctionName> to help with debugging and traceability of the actions performed.
  • By default the AWS Lambda Function will create the CloudWatch Log Group with a Retention (Never expire) and the logs are encrypted with a CloudWatch Logs service managed encryption key.
  • Optional parameters are included to allow creating the CloudWatch Log Group, which allows setting KMS Encryption using a customer managed KMS key and setting the Retention to a specific value (e.g. 14 days).

1.5 AWS SSM Parameter Store

  • Configuration parameters are created/updated within the SSM Parameter Store on CloudFormation events and the parameters are used to simplify deployment of this solution and future SRA solutions.
  • All parameters are created under the /sra/ hierarchy path in all regions of the management account.
  • Optional parameters are included to create the parameters in all member accounts in the same regions that are enabled in the management account.
    • This allows for common SSM parameters to be resolved in the member accounts for future SRA solutions, and customer workload solutions.
  • Common parameters created will be retained even if the CloudFormation stacks from this solution are deleted.

1.6 Staging S3 Bucket

  • The S3 Bucket is used to store solution files (Lambda Zip files, CloudFormation templates, and other deployment files) that will be used for staging.
  • S3 bucket is created in all regions of the management account with a name following this syntax: sra-staging-<aws-account-number>-<aws-region>.
  • Optional parameters are included to create an S3 bucket in all member accounts in the same regions that are enabled in the management account with a name following this syntax: sra-staging-<aws-account-number>-<aws-region>.
    • This allows for a staging S3 bucket to be used in the member accounts for future SRA solutions, and customer workload solutions.

1.7 Parameter AWS Lambda IAM Role

  • The AWS Lambda Function Role allows the AWS Lambda service to assume the role and perform actions defined in the attached IAM policies.

1.8 Parameter AWS Lambda Function

  • An external deployment package is used in the AWS Lambda Function in the sra-common-prerequisites-management-account-parameters.yaml template contains the logic for discovering common values in your Control Tower landing zone. (e.g., Root Organizational Unit ID, Control Tower Home Region, Audit Account ID)
  • The function is triggered by CloudFormation Create, Update, and Delete events.

1.9 AWS Lambda CloudWatch Log Group

1.10 AWS Control Tower Execution Role

  • The AWSControlTowerExecution Role provides the support needed to deploy solutions to the management account across regions as CloudFormation StackSets.

1.11 AWS SSM Parameter Store

1.12 Staging S3 Bucket

2.0 All Existing and Future Organization Member Accounts

2.1 AWS CloudFormation

2.2 AWS SSM Parameter Store

2.3 Staging S3 Bucket

3.0 Audit Account

The example solutions use Audit Account instead of Security Tooling Account to align with the default account name used within the AWS Control Tower setup process for the Security Account. The Account ID for the Audit Account SSM parameter is populated from the SecurityAccountId parameter within the AWSControlTowerBP-BASELINE-CONFIG StackSet.

3.1 AWS CloudFormation

3.2 SRA Secrets KMS Key

  • A customer managed KMS key used for creating secrets that share unique AWS CloudFormation resource values with the management account for multi-account SRA solutions.
  • For example, the AWS CloudTrail solution creates a KMS key within the Audit account and the key ARN is shared via AWS Secrets Manager with the management account so that it can be used when creating the S3 bucket in the log archive account and the Organization CloudTrail in the management account.

Implementation Instructions

Prerequisites

  • AWS Control Tower is deployed.
  • If you plan to have the solution Create SRA Staging S3 Bucket in Member Accounts, make sure the following elective AWS Control Tower guardrails are disabled for all OUs (Disabled by default since v2.7):
    • Disallow Changes to Encryption Configuration for Amazon S3 Buckets
    • Disallow Changes to Logging Configuration for Amazon S3 Buckets
    • Disallow Changes to Bucket Policy for Amazon S3 Buckets
    • Disallow Changes to Lifecycle Configuration for Amazon S3 Buckets

Solution Deployment

  1. Enable Trusted Access for AWS CloudFormation StackSets.
    • Within the AWS CloudFormation StackSets console page, Enable trusted access with AWS Organizations to use service-managed permissions. See Enable trusted access with AWS Organizations for more details.
    • To verify that the trusted access is enabled:
      • Within the AWS Organizations console page, select Services from the side menu
      • Verify that CloudFormation StackSets has Trusted access = Access enabled
  2. In the management account (home region), launch the AWS CloudFormation Stack using the sra-common-prerequisites-staging-s3-bucket.yaml template file as the source.
  3. Follow the instructions to Download and Stage the SRA Solutions.
  4. In the management account (home region), launch the AWS CloudFormation Stack using the sra-common-prerequisites-management-account-parameters.yaml template file as the source.
  5. In the management account (home region), launch the AWS CloudFormation Stack using the template file as the source from the below chosen options:

References