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

resource parameter not available in flexibleengine_identity_role_v3 #381

Closed screwyy closed 3 years ago

screwyy commented 4 years ago

Hello,

I would like to have Resource parameter available in flexibleengine_identity_role_v3 in the policy

Terraform Version

Terraform v0.12.28

Affected Resource(s)

flexibleengine_identity_group_v3

Terraform Configuration Files

resource "flexibleengine_identity_role_v3" "ady_project_role" {
  name        = "ady_project_role"
  description = "ady custom project role with terraform"
  scope       = "project"

  policy {
    effect = "Allow"
    action = ["obs:bucket:*"]
  }
}

Expected Behavior

I would like to add something like this in the policy:

{
    "Version": "1.1",
    "Statement": [
        {
            "Action": [
                "obs:bucket:*"
            ],
            "Resource": [
                "obs:*:*:bucket:*"
            ],
            "Effect": "Allow"
        }
    ]
}

this Resource list is not available in flexibleengine_identity_role_v3:

            "Resource": [
                "obs:*:*:bucket:*"
            ]
niuzhenguo commented 4 years ago

@screwyy Sorry for the late response. You mean a new custom policy resource, need to check if the API is available first.

antonin-a commented 3 years ago

Hello @screwyy , this feature is under development and we would like to deliver it by the end of this year. Stay tuned :)

fculpo commented 3 years ago

We also really need this. At the moment we cannot use flexibleengine_identity_role_v3 and must use the console, which is far from optimal.

antonin-a commented 3 years ago

@niuzhenguo are you sure that is it not available on APIs side ? It is described on the online help here : https://docs.prod-cloud-ocb.orange-business.com/api/iam/iam_02_0013.html (Table 5)

niuzhenguo commented 3 years ago

@fculpo @antonin-a Sorry for the misleading, we will add a new flexibleengine_identity_policy resource for the custom policy.

antonin-a commented 3 years ago

Great ! Thank a lot @niuzhenguo

LIUhuan123456 commented 3 years ago

Hello, Aligned with Niuzhenguo, will update this on FE mid-janurary.

niuzhenguo commented 3 years ago

@Jason-Zhang9309 ^