Skip to content

Instantly share code, notes, and snippets.

@tomburge
Last active October 31, 2023 19:43
Show Gist options
  • Save tomburge/65280e05d2bfd308f78c4b5704dfe826 to your computer and use it in GitHub Desktop.
Save tomburge/65280e05d2bfd308f78c4b5704dfe826 to your computer and use it in GitHub Desktop.
terraform-aws-s3-10-31-2023-bug
provider.tf:
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 5.0"
}
}
}
provider "aws" {
region = "us-east-1"
}
main.tf:
resource "aws_s3_bucket" "example" {
bucket = "toms-my-tf-test-bucket"
tags = var.bucket_tags_working
# tags = var.bucket_tags_not_working
}
variables.tf:
variable "tags" {
description = "This is the bucket tags"
type = map(string)
default = {}
}
version.tf:
terraform {
required_version = ">= 0.13"
}
terraform.tfvars:
bucket_tags_not_working = {
"repo" = "",
"terraform" = "true",
}
bucket_tags_working = {
"repo" = "placeholder",
"terraform" = "true",
}
vpc_tags = {
"repo" = "",
"terraform" = "true",
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment