Status Update
Comments
ba...@google.com <ba...@google.com>
ba...@google.com <ba...@google.com> #2
Hello,
Thank you for reaching out to us with your request.
We have duly noted your feedback and will thoroughly validate it. While we cannot provide an estimated time of implementation or guarantee the fulfillment of the issue, please be assured that your input is highly valued. Your feedback enables us to enhance our products and services.
We appreciate your continued trust and support in improving our Google Cloud Platform products. In case you want to report a new issue, Please do not hesitate to create a new issue on the
Once again, we sincerely appreciate your valuable feedback; Thank you for your understanding and collaboration.
Thanks & Regards,
Manish Bavireddy.
Google Cloud Support
Description
The central issue is the lack of adequate support within the Python SDK for enforcing custom organization constraints on GCP projects. The SDKs, in their current state, do not provide the necessary functions or methods for effectively managing these specific types of constraints through Python. This limitation has become a roadblock in automating our cloud policy management and ensuring consistent enforcement across our infrastructure.
I've identified a notable gap in the current SDK support for this feature, which has impacted our ability to implement it programmatically.
Problem you have encountered:
I am unable to enforce a custom constraint created at organization level in a project programatically.
What you expected to happen:
I want the code/sdk support where we can supply a custom constraint id and be able to enforce it at the project level, irrespective of the enforcement configuration at organization level
Steps to reproduce:
attached file for code that I have attempted.
documents referred:
[1]https://cloud.google.com/resource-manager/docs/organization-policy/custom-constraint-supported-services
[2]https://cloud.google.com/resource-manager/docs/organization-policy/creating-managing-custom-constraints