Git Product home page Git Product logo

Comments (5)

 avatar commented on June 14, 2024 1

This issue has been automatically migrated to hashicorp/terraform-provider-aws#3706 because it looks like an issue with that provider. If you believe this is not an issue with the provider, please reply to hashicorp/terraform-provider-aws#3706.

from terraform-plugin-sdk.

bflad avatar bflad commented on June 14, 2024

@apparentlymart just a heads up that I'm reopening this issue here since I think I found an interesting crash with ResourceData.get() and terraform_remote_state when its a list value.

Reproduction: https://gist.github.com/bflad/fc5b29503bb0177633a475a92b88e0b4

Panic code reference: https://github.com/hashicorp/terraform/blob/47b178aee95d115fb366accd9c3d3f6cf393c07d/helper/schema/resource_data.go#L494-L503

from terraform-plugin-sdk.

bflad avatar bflad commented on June 14, 2024

Another report of this: hashicorp/terraform-provider-aws#4142

The behavior can be pretty confusing to track down. In this case a TypeList output of a terraform_remote_state data source was being used as a TypeString input and causing the panic.

from terraform-plugin-sdk.

radeksimko avatar radeksimko commented on June 14, 2024

This is not reproducible in v0.12.17 + provider.aws v2.41.0 anymore, so I'm going to close it.

Instead Terraform will error out as expected:

Error: Incorrect attribute value type

  on main.tf line 14, in data "aws_lb" "example":
  14:   arn = "${data.terraform_remote_state.example.outputs.list}"

Inappropriate value for attribute "arn": string required.

(this is after modifying the attached repro case for 0.12 syntax & recent changes)

from terraform-plugin-sdk.

 avatar commented on June 14, 2024

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.

from terraform-plugin-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.