Skip to content

[WIP] 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

Draft
wants to merge 1 commit 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.

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
1 participant