Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aws_route_tables Data Source always changes during plan in Terraform 0.13.0 #14649

Closed
jvisker opened this issue Aug 13, 2020 · 2 comments
Closed
Labels
service/ec2 Issues and PRs that pertain to the ec2 service.

Comments

@jvisker
Copy link

jvisker commented Aug 13, 2020

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform CLI and Terraform AWS Provider Version

Affected Resource(s)

  • aws_route_tables data source

Terraform Configuration Files

terraform {
  required_version = "0.13.0"
}
provider "aws" {
  version = "3.1.0"
  region  = "us-west-2"
}
data "aws_route_tables" "test" {
  vpc_id   = "vpc-03c6fb17e2731fe4a"
}

Expected Behavior

The plan should output No changes. Infrastructure is up-to-date. and that is what it does in 0.12.29.

Actual Behavior

The plan outputs this:

data.aws_route_tables.test: Refreshing state... [id=terraform-20200813215940187300000001]
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
 <= read (data resources)
Terraform will perform the following actions:
  # data.aws_route_tables.test will be read during apply
  # (config refers to values not yet known)
 <= data "aws_route_tables" "test"  {
      ~ id     = "terraform-20200813221652309700000001" -> "terraform-20200813221653565900000001"
        ids    = [
            "rtb-01b7fbeb35ab47df8",
        ]
        vpc_id = "vpc-035c4191dd1a8dda0"
    }
Plan: 0 to add, 0 to change, 0 to destroy.

It does not resolve after doing an apply.

Steps to Reproduce

  1. terraform plan
@ghost ghost added the service/ec2 Issues and PRs that pertain to the ec2 service. label Aug 13, 2020
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Aug 13, 2020
@bflad
Copy link
Contributor

bflad commented Aug 14, 2020

Hi @jvisker 👋 Thank you for reporting this and sorry you ran into trouble here.

There were some unexpected changes with data source handling that occurred in the Terraform CLI version 0.13.0 release that are causing this additional data source output in addition to the unstable id attribute in the output. There are now larger tracking issues for both sides of this so to consolidate efforts and discussions, I'm going to close this in preference of them:

Please upvote and subscribe to those for further updates. 👍

@bflad bflad closed this as completed Aug 14, 2020
@ghost
Copy link

ghost commented Sep 13, 2020

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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked and limited conversation to collaborators Sep 13, 2020
@breathingdust breathingdust removed the needs-triage Waiting for first response or review from a maintainer. label Sep 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
service/ec2 Issues and PRs that pertain to the ec2 service.
Projects
None yet
Development

No branches or pull requests

3 participants