terrajet icon indicating copy to clipboard operation
terrajet copied to clipboard

Consider generation terraform.SetupFn based on Terraform Provider Configuration

Open turkenh opened this issue 2 years ago • 3 comments

What problem are you facing?

Today, we leave implementing provider-specific SetupFn to the developer. This requires manually adding all configuration parameters which is usually postponed to later steps.

How could Terrajet help solve your problem?

We should consider generating terraform.SetupFn based on Terraform Provider Configuration if possible.

turkenh avatar Dec 06 '21 19:12 turkenh

What would be the source information to that could help us know what goes to SetupFn?

muvaf avatar Dec 07 '21 08:12 muvaf

What would be the source information to that could help us know what goes to SetupFn?

I believe we could get most of this information (maybe not all) from the provider schema: https://github.com/integrations/terraform-provider-github/blob/3444b63ec2a8ed2b7665fe48f8747b88e6d5dcd8/github/provider.go#L15

AFAIR, similar information available in terraform providers schema -json output.

turkenh avatar Dec 07 '21 08:12 turkenh

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 13 '22 01:08 stale[bot]