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

Add minio_s3_bucket_notification resource #396

Merged

Conversation

pjsier
Copy link
Collaborator

@pjsier pjsier commented Dec 5, 2022

Adds minio_s3_bucket_notification to add support for bucket notifications. Even though the Go API supports Lamda and Topic/SNS targets, when I tried to test with other values I got an error from the server that only queue/SQS events are currently supported. I based the implementation on the AWS provider though, so if support was later added it would be straightforward to add support for lambda_function and topic blocks.

I had to update the docker-compose.yml configuration based on the webhook event documentation because Minio requires environment variables to be set to configure a target.

I also wanted to check if you're looking for any other maintainers, I'd be interested in helping to review PRs if it would be helpful.

Reference

@pjsier pjsier force-pushed the feat-minio-s3-bucket-notification-54 branch from b836ab4 to 92f9dd7 Compare December 5, 2022 02:28
Copy link
Collaborator

@felladrin felladrin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this PR, @pjsier!
Tested and approved!

And I'm glad you asked about becoming a maintainer! We'd love an extra hand to maintain the project. I'll ask @aminueza to invite you as Collaborator.

Once you're a collaborator, you'll also be able to push tags, besides reviewing/merging PRs. Pushing a tag automatically generates a new release here. And then it automatically becomes available at https://registry.terraform.io/providers/aminueza/minio.
You can start pushing a new tag (v1.10.0, due to this new feature) as soon as this PR lands into main branch :)

docker-compose.yml Show resolved Hide resolved
@felladrin felladrin merged commit ed87329 into aminueza:master Dec 7, 2022
@pjsier
Copy link
Collaborator Author

pjsier commented Dec 9, 2022

Thanks @felladrin and @aminueza for the add! Just updated the tag, let me know if everything looks right but it seems like the build went through normally

coolguy1771 referenced this pull request in coolguy1771/home-ops Dec 9, 2022
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [minio](https://registry.terraform.io/providers/aminueza/minio)
([source](https://github.com/aminueza/terraform-provider-minio)) |
required_provider | minor | `1.9.1` -> `1.10.0` |

---

### Release Notes

<details>
<summary>aminueza/terraform-provider-minio</summary>

###
[`v1.10.0`](https://github.com/aminueza/terraform-provider-minio/releases/tag/v1.10.0)

[Compare
Source](https://github.com/aminueza/terraform-provider-minio/compare/v1.9.1...v1.10.0)

#### What's Changed

- Update module github.com/aws/aws-sdk-go to v1.44.142 by
[@&#8203;renovate](https://github.com/renovate) in
[https://github.com/aminueza/terraform-provider-minio/pull/391](https://github.com/aminueza/terraform-provider-minio/pull/391)
- Update module github.com/minio/minio-go/v7 to v7.0.44 by
[@&#8203;renovate](https://github.com/renovate) in
[https://github.com/aminueza/terraform-provider-minio/pull/392](https://github.com/aminueza/terraform-provider-minio/pull/392)
- Update module github.com/aws/aws-sdk-go to v1.44.145 by
[@&#8203;renovate](https://github.com/renovate) in
[https://github.com/aminueza/terraform-provider-minio/pull/393](https://github.com/aminueza/terraform-provider-minio/pull/393)
- Update module github.com/aws/aws-sdk-go to v1.44.152 by
[@&#8203;renovate](https://github.com/renovate) in
[https://github.com/aminueza/terraform-provider-minio/pull/395](https://github.com/aminueza/terraform-provider-minio/pull/395)
- Update module github.com/minio/minio-go/v7 to v7.0.45 by
[@&#8203;renovate](https://github.com/renovate) in
[https://github.com/aminueza/terraform-provider-minio/pull/394](https://github.com/aminueza/terraform-provider-minio/pull/394)
- Add minio_s3\_bucket_notification resource by
[@&#8203;pjsier](https://github.com/pjsier) in
[https://github.com/aminueza/terraform-provider-minio/pull/396](https://github.com/aminueza/terraform-provider-minio/pull/396)

**Full Changelog**:
aminueza/terraform-provider-minio@v1.9.1...v1.10.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://github.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC41Mi4wIiwidXBkYXRlZEluVmVyIjoiMzQuNTIuMCJ9-->

Co-authored-by: lumiere-bot <98047013+lumiere-bot[bot]@users.noreply.github.com>
@felladrin
Copy link
Collaborator

Perfect! 🎉 Welcome aboard! 🙌

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.

Add new resource minio_s3_object
2 participants