Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

T047 - Fix CloudWatch Log Policy Size in Step Functions construct #160

Merged
merged 1 commit into from
Apr 22, 2021

Conversation

biffgaut
Copy link
Contributor

Issue #, if available: T047 (internal)

Description of changes:
Log groups used by Step Functions must start with /aws/vendedlog/states or the policy generated to access the logs is too long. But each log file must have a unique name. Formerly we used to let CFN assign a random name, but that stopped working in the past 6 months. We can't instruct CFN to create a random name with a fixed prefix, so the PR creates a unique, but not random, name for each CloudWatch Logs group using a very similar method to the CDK - concatenating a portion of all the IDs in the construct tree and appending a hash created using all of the IDs in the construct tree.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@biffgaut biffgaut requested a review from hnishar as a code owner April 22, 2021 14:47
@aws-solutions-constructs-team
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: codebuildgithubautobuildPro-fkVQbXRiQi6A
  • Commit ID: b5969ce
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@hnishar hnishar merged commit 78e8fdd into main Apr 22, 2021
@hnishar hnishar deleted the T047 branch April 22, 2021 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants