-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Open
Labels
bugAddresses a defect in current functionality.Addresses a defect in current functionality.needs-triageWaiting for first response or review from a maintainer.Waiting for first response or review from a maintainer.service/s3Issues and PRs that pertain to the s3 service.Issues and PRs that pertain to the s3 service.
Description
Terraform and AWS Provider Version
Terraform v1.13.3
on linux_amd64
+ provider registry.terraform.io/hashicorp/aws v6.13.0
Affected Resource(s) or Data Source(s)
aws_s3_object
Expected Behavior
Attribute and argument consistent when apply twice
Actual Behavior
TF show the following diff
~ metadata = null -> {}
~ tags = null -> {}
~ version_id = "" -> "null"
Please note that version_id
isn't affected if the bucket version is disabled
Relevant Error/Panic Output
~ aws_s3_object = {
id = "mybucket"
~ metadata = null -> {}
~ tags = null -> {}
~ version_id = "" -> "null"
# (32 unchanged attributes hidden)
}
Sample Terraform Configuration
Click to expand configuration
provider "aws" {
region = "us-east-1"
}
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 6"
}
}
}
resource "aws_s3_bucket" "this" {
bucket = "mybucket"
force_destroy = true
}
resource "aws_s3_bucket_versioning" "this" {
bucket = aws_s3_bucket.this.id
versioning_configuration {
status = "Enabled"
}
}
resource "aws_s3_object" "this" {
bucket = aws_s3_bucket.this.id
key = "foo"
content = "foo"
}
output "aws_s3_object" {
value = aws_s3_object.this
}
Steps to Reproduce
- Apply
- Apply a second time without any modification
Debug Logging
No response
GenAI / LLM Assisted Development
n/a
Important Facts and References
No response
Would you like to implement a fix?
No
dimstunt and KaeDig
Metadata
Metadata
Assignees
Labels
bugAddresses a defect in current functionality.Addresses a defect in current functionality.needs-triageWaiting for first response or review from a maintainer.Waiting for first response or review from a maintainer.service/s3Issues and PRs that pertain to the s3 service.Issues and PRs that pertain to the s3 service.