Skip to content
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

ibm_authorization_policy is missing source-resource-group-id and target-resource-group-id #1364

Closed
l2fprod opened this issue Apr 23, 2020 · 1 comment
Assignees

Comments

@l2fprod
Copy link
Member

l2fprod commented Apr 23, 2020

when creating an authorization you should be able to specify in which resource group it applies:

$> ibmcloud iam authorization-policy-create --help
NAME:
  authorization-policy-create - Create an authorization policy to allow a service instance access to another service instance.

USAGE:
  ibmcloud iam authorization-policy-create { SOURCE_SERVICE_NAME TARGET_SERVICE_NAME ROLE_NAME1,ROLE_NAME2... [--source-service-instance-name SOURCE_SERVICE_INSTANCE_NAME | --source-service-instance-id SOURCE_SERVICE_INSTANCE_ID] [--source-service-account ACCOUNT_GUID] [--source-resource-group-id RESOURCE_GROUP_ID] [--source-resource-type RESOURCE_TYPE] [--source-resource RESOURCE] [--target-service-instance-name TARGET_SERVICE_INSTANCE_NAME | --target-service-instance-id TARGET_SERVICE_INSTANCE_ID] [--target-resource-group-id RESOURCE_GROUP_ID] [--target-resource-type RESOURCE_TYPE] | --file JSON_FILE } [--output FORMAT] [-q, --quiet]

        To use advanced operators to create wildcard policies, use a JSON policy document with the "--file" option. For more information about creating wildcard policies, see https://cloud.ibm.com/docs/iam?topic=iam-wildcard#policy-js

OPTIONS:
...
  --source-resource-group-id value      Source resource group ID, mutually exclusive with '--source-service-instance-id'.
...
  --target-resource-group-id value      Target resource group ID, mutually exclusive with '--target-service-instance-id'.
...

It is missing from the provider https://github.com/IBM-Cloud/terraform-provider-ibm/blob/master/ibm/resource_ibm_iam_authorization_policy.go

@hkantare
Copy link
Collaborator

hkantare commented May 8, 2020

Support for source_resource_group_id and target_resource_group_id is added in latest release
https://github.com/IBM-Cloud/terraform-provider-ibm/releases/tag/v1.5.2

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

No branches or pull requests

3 participants