Closed larahroth closed 1 year ago
Since the error indicates this is provider
tags related have you tried removing default_tags
from the providers?
When looking at doc about default tags for the aws
provider https://www.hashicorp.com/blog/default-tags-in-the-terraform-aws-provider, it seems you can not use dynamic variable for default_tags
block like you do.
This issue has been automatically marked as stale because it has been open 30 days with no activity. Remove stale label or comment or this issue will be closed in 10 days
This issue was automatically closed because of stale in 10 days
I'm going to lock this issue because it has been closed for 30 days β³. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Description
Please provide a clear and concise description of the issue you are encountering, and a reproduction of your configuration (see the
examples/*
directory for references that you can copy+paste and tailor to match your configs if you are unable to copy your exact configuration). The reproduction MUST be executable by runningterraform init && terraform apply
without any further changes.If your request is for a new feature, please use the
Feature request
template.β οΈ Note
Before you submit an issue, please perform the following first:
.terraform
directory (! ONLY if state is stored remotely, which hopefully you are following that best practice!):rm -rf .terraform/
terraform init
Versions
Module version [Required]:
8.7.0
Terraform version:
Provider version(s):
Reproduction Code [Required]
Module LB
Project Calling LB Module
EC2 Instance
Steps to reproduce the behavior:
Update AMI passed in for the ec2 instance so it rebuilds the ec2 instance.
Expected behavior
Theoretically, this would just replace the
aws_lb_target_group_attachment
resource only. The replacement of the ec2 instance should not require the target group to be rebuilt, just the target group attachment.Actual behavior
This wants to replace the
aws_lb_target_group
itself as well as theaws_lb_target_group_attachment
. Even if we were ok with this, theName
is throwing an error on tag:Provider produced inconsistent final plan
.Terminal Output Screenshot(s)
aws_lb_target_group_attachment
aws_lb_target_group
Error on Apply
Additional context
We have tried adding the fields that are marked as forcing replacement to eliminate the target group substitution, but this did not work. We have also tried changing versions of terraform and the aws provider.