Skip to content

Allow non-local sources for mock_provider #37979

@amaxine

Description

@amaxine

Terraform Version

Terraform v1.14.1
on linux_amd64

Use Cases

We extensively use terraform tests across our resources to ensure changes don't result in unexpected breakage in behaviour that are neither validated by Terraform or providers. Because of this, we have an extensive library of mock data sources that are compatible with our input validation.

These values, such as valid json for aws_iam_policy_document or valid ARNs are extremely reusable, however currently sources require being a local path. We also have the alternative of using a git submodule, but a native behaviour in Terraform would be preferred`

Attempted Solutions

N/A

Proposal

Allow mock_provider to take remote sources similar to what module allows - e.g. git repositories or zip files, with support for fetching specific tags or commits.

References

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions