-
Notifications
You must be signed in to change notification settings - Fork 46
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
base: main
Are you sure you want to change the base?
Conversation
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. |
Maybe supersedes #152 |
@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 |
project
resource
project
resourcecloudstack_project
resource
Fix issue where getProjectByID() would always return "id not found" while getProjectByName() could find the same project. CloudStack projects are only unique within a domain context, so we now include domain ID in lookups. - Modified getProjectByID() to accept optional domain parameter - Updated all calls to include domain when available - Updated test functions accordingly - Updated documentation to clarify domain requirement for project imports
Adding
project
as a terraform managed resource option -> https://cloudstack.apache.org/api/apidocs-4.20/apis/createProject.htmlContributes to #82
Using this code for example: