Open powellquiring opened 2 years ago
@powellquiring , It depends on how respective services has defined authorization policy in their back-end.. This should be the same with CLI as well..
I think we can't do much here as it is expected API behavior.. may be respective service APIs should maintain consistency across the cloud
I think you are saying it is not possible to use ".id" for the id so ".guid" has to be used instead, right?
The docs need to be updated.
@kavya498 - Can the docs be updated:
Community Note
Terraform CLI and Terraform IBM Provider Version
You can find a full example here: https://github.com/powellquiring/tfbugs/tree/master/bug-flowlog-to-cos-iam
Docs: https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/iam_authorization_policy
Give an example of using the resource
.id
ibm_resource_instance.instance2.idAn attempt to do this with the COS resource does not work. But if the
guid
is used instead of theid
, success. Not sure if the docs are wrong or if the implementation of the resource is wrong. Using.id
should be preferred (right?)If the guid is used instead of the id the authorization policy is created and successfully authorizes the flow log to be created.