Skip to content

Add CloudStack project resource #167

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

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

ianc769
Copy link

@ianc769 ianc769 commented Apr 3, 2025

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

Contributes to #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
Copy link
Author

ianc769 commented Apr 14, 2025

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
Copy link
Author

ianc769 commented Jun 11, 2025

Maybe supersedes #152

@ianc769
Copy link
Author

ianc769 commented Jun 12, 2025

@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

@CodeBleu
Copy link
Collaborator

CodeBleu commented Jun 12, 2025

@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

@ianc769 ianc769 marked this pull request as ready for review June 16, 2025 16:41
@ianc769 ianc769 changed the title [WIP] Add CloudStack project resource Add CloudStack project resource Jun 16, 2025
@ianc769
Copy link
Author

ianc769 commented Jun 16, 2025

@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 😄

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

Successfully merging this pull request may close these issues.

Improvement request - Support the following resource creation via terraform
2 participants