FlexibleEngineCloud / terraform-provider-flexibleengine

Terraform flexibleengine provider
https://www.terraform.io/docs/providers/flexibleengine/
Mozilla Public License 2.0
30 stars 53 forks source link

[Feature Request] IAM : Project management #621

Closed vlandemaine-orange closed 3 years ago

vlandemaine-orange commented 3 years ago

Hello,

In the Flexible Engine console, on the IAM part, we can create/update/delete project through the interface.

It is posssible to implement a specific resource in the Terraform provider to manage the projects?

Thanks.

Regards,

Valentin LANDEMAINE (OCB/PS)

antonin-a commented 3 years ago

Hello @vlandemaine-orange , create/update is ok but deletion is currently not supported (considered as too risky). I agree that it would be nice to add IAM project management.

ShiChangkuo commented 3 years ago

@antonin-a what will the provider do when the project can not be deleted? ignore this step or report an error?

antonin-a commented 3 years ago

Hello @ShiChangkuo from API side it will return an error. Example using Openstack CLI: cloud@CLI:~$ openstack project delete f137be38e2014ad296798ba45635f21a Failed to delete project with name or ID 'f137be38e2014ad296798ba45635f21a': Policy doesn't allow iam:projects:deleteProject to be performed. (HTTP 403) 1 of 1 projects failed to delete.

gllb commented 3 years ago

Hello I implemented the feature here : https://github.com/gllb/terraform-provider-flexibleengine/commit/963591b8c51ed94d7e92471974579b5070153d83 For now the deletion func try to delete but it can be change to report an error or ignore it. @ShiChangkuo what's is the contribution process ? Create PR's from a feature branch or something else ?

ShiChangkuo commented 3 years ago

@gllb Fantastic! You can create a PR and I will help you to review it.