ibm-cloud-docs / vpc

Documentation repository for vpc
7 stars 50 forks source link

Please provide a Terraform example for the VPC Image to COS IAM Authorisation #206

Open rmey opened 5 months ago

rmey commented 5 months ago

Only API, CLI and UI examples are shown and Terraform provider Doc does not provide enough examples for iam_authorization_policy

rmey commented 5 months ago

Here is possible solution

# IAM authorize service 2 service
resource "ibm_iam_authorization_policy" "policy" {
  source_service_name = "is"
  target_service_name = "cloud-object-storage"
  source_resource_type = "image"
  roles               = ["Reader","Writer"]
}
gudrun-wolfgram commented 5 months ago

Referring to this topic: https://cloud.ibm.com/docs/vpc?topic=vpc-object-storage-prereq&interface=cli