Skip to content

actions: improve error message when action needs to be referenced by instance #37927

@mildwonkey

Description

@mildwonkey

Terraform Version

1.14.0

Use Cases

When an action is expanded with count or for_each, it can only be referenced inside an action_trigger by instance. The error message could be clearer - currently it returns Action instance was not found in the current context. Terraform could recognize that the user is referencing an action and hint that they should be referencing an instance of that action (in theory, at least).

Attempted Solutions

👋🏻

Proposal

No response

References

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions