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

feat: Allow for policy creation for externally created s3 buckets #312

Closed

Conversation

ghost
Copy link

@ghost ghost commented Feb 10, 2025

Description

Changes to the count which controls whether policy will be created/updated so that policies can be independently created for externally created s3 buckets, this is particularly useful if you use the module to create a bucket then create a cloudfront to serve the bucket and have to make adjustments to the policy after the bucket has been created as described in #305

Motivation and Context

Experienced the problem first hand and also resolves #305

Breaking Changes

This shouldn't break backwards compatibility

How Has This Been Tested?

  • I have updated at least one of the examples/* to demonstrate and validate my change(s)
  • I have tested and validated these changes using one or more of the provided examples/* projects
  • I have executed pre-commit run -a on my pull request

@ghost ghost marked this pull request as draft February 10, 2025 20:37
@ghost ghost changed the title improvement: allow for policy creation for externally created s3 buckets feat: allow for policy creation for externally created s3 buckets Feb 10, 2025
@ghost ghost changed the title feat: allow for policy creation for externally created s3 buckets Feat: allow for policy creation for externally created s3 buckets Feb 11, 2025
@ghost ghost changed the title Feat: allow for policy creation for externally created s3 buckets feat: Allow for policy creation for externally created s3 buckets Feb 11, 2025
@ghost ghost marked this pull request as ready for review February 11, 2025 16:13
@antonbabenko
Copy link
Member

We will not support cases where the core resource (S3 bucket itself) is not created. It is a prerequisite for this module to do anything.

#305 should probably be solved another way; I don't have time to look into that one now.

Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 15, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Circular dependency when trying to use s3_bucket_id when attaching a policy
1 participant