Skip to content

fix: Include aws_s3_directory_bucket ID in s3_bucket_id output #325

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

Merged
merged 4 commits into from
Jun 4, 2025

Conversation

toneill818
Copy link
Contributor

Description

Use the id of the s3 bucket or the directory bucket instead of the policy.

Motivation and Context

When attaching a policy after the bucket creation, any resource dependent on the output s3_bucket_id will show needing modified and possibly destroyed and recreated. This change will use the bucket resources directly to determine the bucket id instead of reading the policy first.

Breaking Changes

How Has This Been Tested?

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

@toneill818 toneill818 changed the title fix: pull bucket id from bucket resources fix: Pull bucket id from bucket resources Apr 24, 2025
@bryantbiggs bryantbiggs changed the title fix: Pull bucket id from bucket resources fix: Use correct bucket ID in s3_bucket_id output Jun 4, 2025
@bryantbiggs bryantbiggs changed the title fix: Use correct bucket ID in s3_bucket_id output fix: Include aws_s3_directory_bucket ID in s3_bucket_id output Jun 4, 2025
@bryantbiggs bryantbiggs merged commit 0d8fc54 into terraform-aws-modules:master Jun 4, 2025
21 checks passed
antonbabenko pushed a commit that referenced this pull request Jun 4, 2025
## [4.10.1](v4.10.0...v4.10.1) (2025-06-04)

### Bug Fixes

* Include `aws_s3_directory_bucket` ID in `s3_bucket_id` output ([#325](#325)) ([0d8fc54](0d8fc54))
@antonbabenko
Copy link
Member

This PR is included in version 4.10.1 🎉

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