Skip to content

add tags to s3 backend files#30121

Open
ArtyMaury wants to merge 1 commit intohashicorp:mainfrom
BouyguesTelecom:add-s3-backend-tagging
Open

add tags to s3 backend files#30121
ArtyMaury wants to merge 1 commit intohashicorp:mainfrom
BouyguesTelecom:add-s3-backend-tagging

Conversation

@ArtyMaury
Copy link

closes #30054

@hashicorp-cla
Copy link

hashicorp-cla commented Dec 9, 2021

CLA assistant check
All committers have signed the CLA.

@crw crw requested a review from a team June 15, 2022 23:13
@crw crw added the backend/s3 label Jun 15, 2022
@crw
Copy link
Contributor

crw commented Jun 15, 2022

Thanks for this submission. Although I cannot commit to having this PR reviewed at this time, we acknowledge your contribution and appreciate it! I've notified the appropriate team internally, as well. Thanks again for the submission!

@Lutherwaves
Copy link

Hey, we have also recently identified some potential added value in this feature.

@crw do we have any updates on this?

Thank you for the contribution, @ArtyMaury!

@suddrey
Copy link

suddrey commented Feb 7, 2023

The updates provided by @ArtyMaury would definitely help solve a problem we are facing.

Is there any update on this?

@crw
Copy link
Contributor

crw commented Feb 7, 2023

No updates on my end, the AWS provider team would need to review.

@gdavison gdavison self-assigned this Feb 7, 2023
@lorengordon
Copy link
Contributor

@crw Does the AWS provider team monitor this repo? How would we get their attention on it?

@justinretzolk
Copy link
Member

Hey @lorengordon 👋 I'm the community manager for the AWS provider. Someone from the team has assigned this to themselves for review, however, they're currently focused on finishing up the last bit of work needed for the next major AWS provider release. Unfortunately I can't provide an ETA on when this will be reviewed/merged due to the potential of shifting priorities. We prioritize by count of 👍 reactions and a few other things (more information on our prioritization guide if you're interested).

@michelefacco
Copy link

Hello, any update on this? It looks like a very useful feature!

@TechIsCool
Copy link

@justinretzolk Curious if you have any update on this, we just started looking at how to manage what we consider validation states that are short lived but exist in different paths. We wanted to lifecycle them using AWS tags but it seems we can't assign tags to a backend in terraform directly.

@chrisahl
Copy link

chrisahl commented Jun 5, 2024

@justinretzolk Would be interested in using this feature. Any plans to get this in soon? Been sitting here a long time. Thanks.

@Lutherwaves
Copy link

Lutherwaves commented Jun 18, 2024

I'm also looking to see if we can get this out there - very useful feature.

@crw crw added backend/s3 and removed backend/s3 labels Aug 29, 2024
Default: "",
},

"tags": {
Copy link
Contributor

@bschaatsbergen bschaatsbergen Jan 8, 2025

Choose a reason for hiding this comment

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

It might be worth considering renaming this argument to object_tags or bring it under an object block to clearly indicate where the tags are being applied. Have you thought about this already?

Added, I think that a more Terraform-native approach is cleaner than a string of tags, in a way similar to the tags block used for AWS provider-managed resources:

object_tags = {
  Environment = "Test"
}

See the existing assume_role block schema, already featuring tags. I would imagine that this simply uses cty.Map(cty.String).

@jdesulme
Copy link

jdesulme commented Nov 7, 2025

@bschaatsbergen @ArtyMaury We have a strong use case for this feature as well. Our organization uses object-level tags for permissions, and currently, we rely on custom workarounds to tag objects after creation. Having this capability during creation or update (as supported by this PR) would significantly improve our workflows and reduce complexity.
Could you share any updates on the review status or expected timeline? This would be a great quality-of-life enhancement for many users.

@iain-raidiam
Copy link

Given support for ABAC within S3 buckets now this also adds to this feature - https://aws.amazon.com/blogs/aws/introducing-attribute-based-access-control-for-amazon-s3-general-purpose-buckets/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add tags to s3 backend resources