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

CodePipeline: S3 bucket policy race condition #28650

Closed
estepamo-amazon opened this issue Jan 10, 2024 · 2 comments
Closed

CodePipeline: S3 bucket policy race condition #28650

estepamo-amazon opened this issue Jan 10, 2024 · 2 comments
Labels
@aws-cdk/aws-s3 Related to Amazon S3 bug This issue is a bug. closed-for-staleness This issue was automatically closed because it hadn't received any attention in a while. effort/medium Medium work item – several days of effort p2 response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.

Comments

@estepamo-amazon
Copy link
Member

Describe the bug

A race condition happens randomly when provisioning the S3 bucket and its bucket policy as part of the CodePipeline construct. CloudTrail logs show a PutBucketTagging API call to S3 happening before the API call to create the S3 bucket.

Expected Behavior

The CodePipeline construct is provisioned without issues

Current Behavior

Provisioning fails.

Reproduction Steps

  1. Write a CDK stack that provisions a CodePipeline resource using the CodePipeline construct.
  2. cdk synth
  3. cdk deploy

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

2.87.0

Framework Version

No response

Node.js Version

18.17.1

OS

Windows (WSL)

Language

Python

Language Version

3.10.12

Other information

https://github.com/aws-solutions/mlops-workload-orchestrator/blob/main/source/infrastructure/lib/mlops_orchestrator_stack.py#L484

@estepamo-amazon estepamo-amazon added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Jan 10, 2024
@github-actions github-actions bot added the @aws-cdk/aws-s3 Related to Amazon S3 label Jan 10, 2024
@pahud
Copy link
Contributor

pahud commented Jan 10, 2024

Are you able to provide the minimal code snippets that reproduces this issue?

@pahud pahud added p2 response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. effort/medium Medium work item – several days of effort and removed needs-triage This issue or PR still needs to be triaged. labels Jan 10, 2024
Copy link

This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.

@github-actions github-actions bot added closing-soon This issue will automatically close in 4 days unless further comments are made. closed-for-staleness This issue was automatically closed because it hadn't received any attention in a while. and removed closing-soon This issue will automatically close in 4 days unless further comments are made. labels Jan 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-s3 Related to Amazon S3 bug This issue is a bug. closed-for-staleness This issue was automatically closed because it hadn't received any attention in a while. effort/medium Medium work item – several days of effort p2 response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Projects
None yet
Development

No branches or pull requests

2 participants