cloudstack-terraform-provider icon indicating copy to clipboard operation
cloudstack-terraform-provider copied to clipboard

[WIP] Add CloudStack project resource

Open ianc769 opened this issue 7 months ago • 1 comments
trafficstars

Adding project as a terraform managed resource option -> https://cloudstack.apache.org/api/apidocs-4.20/apis/createProject.html

Contributes to https://github.com/apache/cloudstack-terraform-provider/issues/82

Using this code for example:

resource "cloudstack_project" "foo" {
  name         = "terraform-test-project"
  display_text = "Terraform Test Project"
}
+ resource "cloudstack_project" "foo" {
  + display_text = "Terraform Test Project"
  + domain       = (known after apply)
  + id           = (known after apply)
  + name         = "terraform-test-project"
  }
cloudstack_project.foo: Creating...
cloudstack_project.foo: Creation complete after 1s [id=06c584de-8f5f-4c72-8eab-672668e3c165]

image

ianc769 avatar Apr 03 '25 15:04 ianc769

I set this up for Cloudstack API 4.20, I see the tests are 4.18 and 4.19.

What's the back version compatibility of this project looking for?

There was a difference in the API between 4.18 and 4.19+ for this resource at a quick glance. So if there is a plan to add 4.20 Acceptance Tests and depreciate 4.18 I will wait for those results.

ianc769 avatar Apr 14 '25 16:04 ianc769

Maybe supersedes #152

ianc769 avatar Jun 11 '25 14:06 ianc769

@CodeBleu If possible can you kick a test off here? I merged your actions changes from earlier today to hopefully get the acceptance tests actually working

ianc769 avatar Jun 12 '25 21:06 ianc769

@CodeBleu If possible can you kick a test off here? I merged your actions changes from earlier today to hopefully get the acceptance tests actually working

@ianc769 I kicked it off

CodeBleu avatar Jun 12 '25 22:06 CodeBleu

@CodeBleu Ok I think i resolved all the test issues, thanks for fixing the workflows! If you can kick tests for this and #181 that would be much appreciated 😄

ianc769 avatar Jun 16 '25 22:06 ianc769

After some more in depth testing with all the new resources I'm adding in #181 #195 and #197 I found some issues I had to fix when deleting project resources.

ianc769 avatar Jul 17 '25 18:07 ianc769

@ianc769, could you please resolve the conflict

kiranchavala avatar Sep 01 '25 06:09 kiranchavala

@ianc769 could you please resolve the conflict

kiranchavala avatar Sep 12 '25 09:09 kiranchavala