hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.75k stars 9.1k forks source link

Inconsistency when using gateway_id / nat_gateway_id #31124

Open hub4ops opened 1 year ago

hub4ops commented 1 year ago

Description

After "Apply" every time "update" is required. maybe need to limit the use of gateway_id for an aws_route resource?

resource "aws_route" "private_route-1" {
  route_table_id         = aws_route_table.rt_for_private_subnet.id
  destination_cidr_block = "0.0.0.0/0"
  gateway_id             = aws_nat_gateway.my_nat_gw.id # not correct, must be nat_gateway_id
}

References

had a similar request https://github.com/hashicorp/terraform-provider-aws/issues/158

and here is my question https://stackoverflow.com/questions/76155071/every-time-after-applying-an-update-is-required-why-does-it-happen?noredirect=1#comment134302741_76155071

Would you like to implement a fix?

None

github-actions[bot] commented 1 year ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue