aws-samples / aws-security-reference-architecture-examples

Example solutions demonstrating how to implement patterns within the AWS Security Reference Architecture guide using CloudFormation (including Customizations for AWS Control Tower) and Terraform.
Other
965 stars 235 forks source link

[BUG] Error attempting to add CloudTrail solution with easy setup #209

Closed wagnerone closed 1 week ago

wagnerone commented 6 months ago

Community Note

Describe the bug

After successfully applying the easy setup with limited solutions enabled, I subsequently adding a few solutions one-by-one with change sets. Adding CloudTrail solution with default settings fails to apply with error in change set

Parameter pCloudTrailS3BucketName failed to satisfy constraint: S3 bucket name can include numbers, lowercase letters, uppercase letters, and hyphens (-). It cannot start or end with a hyphen (-).

To Reproduce

Steps to reproduce the behavior:

  1. Apply sra-easy-setup.yaml with limited solution set (DeployEC2DefaultEBSEncryptionSolution, DeployIAMPasswordPolicySolution).
  2. Create change set and enable CloudTrail solution with all defaults
  3. See error

Expected behavior

CloudTrail solution should be enabled with default values.

Screenshots

Capto_Capture 2024-02-28_08-50-07_

Deployment Environment (please complete the following information)

main 55557a4ad16ddab7ca03f403fda4a88412f652f8

mlfulleraws commented 1 week ago

Thank you for reporting the issues, this is tech debt that we acknowledge, the SRA code library deployment via Cloudformation ChangeSets fails