Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support state and individual resources #48

Open
jasonckeating opened this issue Mar 23, 2022 · 4 comments
Open

Support state and individual resources #48

jasonckeating opened this issue Mar 23, 2022 · 4 comments
Labels
enhancement New feature or request

Comments

@jasonckeating
Copy link

Is your feature request related to a problem?

Yes, registry state is ignored by the Terraform provider.
If a registry was configured in the UI, Terraform will overwrite it.

importing existing registries is not supported.

Describe the solution you'd like

Registries should be individual resources.
So they can be managed individually and imported. Also, we are wanting to use a foreach so that we can programmatically add many registries.

example: We have many accounts that are members of an org.
Would like Terraform to loop through each account and configure each registry, so many resources don't need to be manually configured.

Describe alternatives you've considered

for_each is not supported for specification blocks {}

Additional context

This has prevented us from hooking up all registries, since there are many.
It has caused our work through the UI to be wiped out many times.

@jasonckeating jasonckeating added the enhancement New feature or request label Mar 23, 2022
@jasonckeating jasonckeating changed the title Support state and multiple resources Support state and individual resources Mar 23, 2022
@ericofusco
Copy link

ericofusco commented Apr 26, 2022

@jasonckeating You can use dynamic blocks as an alternative.

https://www.terraform.io/language/expressions/dynamic-blocks

@jasonckeating
Copy link
Author

In addition, if one registry is misconfigured or throws an error, the entire run fails with a generic Non-OK status: 400

I'm adding many registries, and there is no indication of what failed.

@jasonckeating
Copy link
Author

Checking back in, has this been reviewed?

@maxboynton
Copy link
Contributor

maxboynton commented Jul 6, 2023

In the version 0.8.0 release (#71) an initial implementation of the individual registry resource has been added under the name prismacloudcompute_resource_registry. Because of some complexities caused by the design of the API endpoints behind this, it is currently only possible to create registries using this resource -- they cannot be removed or updated via terraform. We will look to add those functionalities later on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants