-
Notifications
You must be signed in to change notification settings - Fork 37
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
service offering. sdk framework rewrite #138
base: main
Are you sure you want to change the base?
Conversation
@poddm Can you add the updated docs to this PR as well? I believe you had docs on the other PR you closed, but there doesn't appear to be updated docs for this. I have pulled down your branch to test, and am still having issues with needing to specify the I get the following error:
I'm using it like this:
my locals
|
@CodeBleu , I fixed the domain ids issue. Try now. Also, regarding the documentation. I was looking at using the generator but it might be better to scope all that work to its own PR. https://github.com/hashicorp/terraform-plugin-docs |
@poddm Thanks!!
I just did a
you can see above that the
Also, why is storage_tags avail in both at the 'root' level of the resource and also as
|
I think it would be better to add a data resource for domains. The problem I see with this approach is the resource will never become tainted if it was recreated as the same name. Subsequent resources that may modify or depend on the domain would never detect the newly re/created domain. ex. data "cloudstack_domain" "ace" {
name = "/ROOT/ACE"
}
resource "cloudstack_service_offering_fixed" "standard_offering" {
...
domain_ids = [data.cloudstack_domain.ace.id]
}
Let me check. I believe
Thats a bug. storage tags should be in the |
@poddm Thank you so much for looking into this. Once this offering stuff is complete, I still need a way to implement this with the Is this something you can fix with a new PR for |
@poddm I haven' tested but PR looks good. Left some minor comments. |
You can provide the values in the details field. resource "cloudstack_instance" "this" {
name = cloud
display_name = "cloud details"
details = {cpuNumber = "4", memory = "2048"}
} |
@poddm This is not currently part of the provider. Do you have this in your own branch? If so, Is there a PR for this too? https://registry.terraform.io/providers/cloudstack/cloudstack/latest/docs/resources/instance I tried to use what you show anyway, and I get this:
|
@poddm Not sure if you saw that I'm still having issues with this or not. Wondering what I need to do? |
…to null, moved storage_tags field to nested block disk_offering
I fixed the duplicate storage_offering field.
This usually means the management server api returned an html error response and not json like the client library is expecting. I've been using this in |
Thanks, I will test this later. My main issue was the
What should I do?
|
Enhanced the following resources to support the full api spec.
I split the service offering API up into multiple resources to make it a bit clearer of the different qos types