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

Add resource for properties definition #10

Open
kwibus opened this issue Sep 2, 2022 · 2 comments
Open

Add resource for properties definition #10

kwibus opened this issue Sep 2, 2022 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@kwibus
Copy link
Collaborator

kwibus commented Sep 2, 2022

Multiple resource can have custom properties:

  • ranges
  • CloudNetworks
  • ipam_record
  • dnszones

But before you can use them you have to create a custom properties definition.
Can we make 1 resource to do that?

@kwibus kwibus added the enhancement New feature or request label Sep 2, 2022
@kwibus
Copy link
Collaborator Author

kwibus commented Sep 2, 2022

technical all the custom properties definitions are separate resources in the api:

  • /IPAMRecords/{ref}/PropertyDefinitions/{property}
  • /Ranges/{ref}/PropertyDefinitions/{property}
  • etz

But the all have the same fields so its at least possible

@kwibus
Copy link
Collaborator Author

kwibus commented Sep 2, 2022

When setting a custom propertie of a resource. There is no reference made to customPropertie definition.
And i think this is fine, but this means you need to add depends_on = [ menandmice_custom_propertie_definition.<name>] when you set a custom proportie. Otherwise terraform does not know that the resource depends on the definition

@kwibus kwibus self-assigned this Oct 19, 2022
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

When branches are created from issues, their pull requests are automatically linked.

1 participant