Closed alexjurkiewicz closed 2 years ago
Three questions:
What's the process to generate docs?
We use this tool.
What's the process to run only my new acceptance tests locally?
You can populate these 3 variables to point at your account and just run this single unit test.
What's the next step?
Once the suggestions are implemented, we will merge this PR and create a new provider release.
As requested previously, please have the enumeration return a richer collection, not just a list of IDs. Otherwise LGTM.
I was modelling this data source on aws_subnet_ids
(link) which only returns the list of IDs. But do you suggest I return a map of policies with more metadata? Like returning map(object({name=string,type=string,labels=list(string)}))
(and the policy ID is the map key).
I ended up writing my own smoke test to be sure this data source works as expected. Here's an example Terraform configuration that tests all four possible states:
It worked 😊
I tried generating docs with v0.8.1 of terraform-plugin-docs
, but it tried to rewrite every docs page, it looks like there have been substantial changes to the output format. So I haven't committed any docs page.
I tried generating docs with v0.8.1 of
terraform-plugin-docs
, but it tried to rewrite every docs page, it looks like there have been substantial changes to the output format. So I haven't committed any docs page.
@alexjurkiewicz I've just merged a change to update to tfplugindocs v0.8.1, so can you pull the latest changes from future
and try again?
yup, LGTM!
This can be used to find all policies of a certain type (PLAN, ACCESS, etc) with specific tags.
One example use-case is in attaching all policies with a specific tag to new stacks:
Type of change
Related issues
Checklists
Development
Code review
future
unless the change is going directly into production