Skip to content

Add --invoke flag to CLI options for config mode testing of actionsΒ #580

@austinvalle

Description

@austinvalle

terraform-plugin-testing version

github.com/hashicorp/terraform-plugin-testing v1.13.3

Use cases

Currently, to test an action with Config mode, you can only do so with the lifecycle.action_trigger field. If there isn't a natural choice for a managed resource to add this to, you can use a terraform_data managed resource as a workaround (which is a null resource that does nothing but take up space in the graph πŸ˜† ):

Proposal

We should consider adding the CLI flag pass-throughs for invoking an action directly, to provide a more direct test:

We already have a place to put CLI options in terraform-plugin-testing, but we'll need to update terraform-exec to accept the flag (if it hasn't been updated already):

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions