[Bug]: aws_s3_bucket resource incosistent with provider.aws.default_tags #32618
Labels
bug
Addresses a defect in current functionality.
service/s3
Issues and PRs that pertain to the s3 service.
Terraform Core Version
1.5.1
AWS Provider Version
5.8.0
Affected Resource(s)
Using together provider.aws.default_tags and resource aws_s3_bucket with additional tag give incorrect behavior.
Expected Behavior
Combine tags: from default_tags + from the resource
Actual Behavior
So, continuous applying the same resource without any changes cause the cycle - 2. -> 3. -> 2. -> 3...
Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
}
}
}
provider "aws" {
region = "us-east-1"
default_tags {
tags = { aaa = "aaa" }
}
}
resource "aws_s3_bucket" "bucket" {
bucket = "bucket1"
tags = { bbb = "bbb" }
}
Steps to Reproduce
Just applying the same source code over and over
Debug Output
No response
Panic Output
No response
Important Factoids
We use terraform from docker container: registry.gitlab.com/gitlab-org/terraform-images/stable:latest
References
No response
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: