Skip to content

🧹 Enhance Terraform Sweeper documentation #378

Open
@oscarhermoso

Description

@oscarhermoso

Does this documentation exist?

Where would you expect to find this documentation?

Description

I would like to follow an idiomatic example of Sweepers, so I can implement them for a provider that is based on the terraform-plugin-framework package.

I'm fairly new to Go and creating Terraform providers; I have tried to follow the Terraform docs, but my sweepers do not run. (No need for you to debug my code, just trying to give some context.)

  • The documentation refers to a Makefile, but there is no explanation for what should be in that Makefile
    • Ideally document how to sweep without a Makefile also
  • Sweeper seems to rely on some environment variables, (I'm assuming SWEEP / SWEEP_ARGS / SWEEP_DIR based on unofficial GitHub code?) but these are not documented
  • Not clear what the intended use is of the region argument for SweeperFunc
  • The documentation refers to TestMain - I'm not sure if the name is important, or it could be replaced with TestWhatever
  • Ideally, also include Sweepers in the Hashicups example, because there is very little code for Terraform Framework that can be used as a reference for Sweepers:

References

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions