This repository provides tools to set up MPC (Managed Private Cloud) permissions in your GCP project.
Choose the method that best fits your workflow:
For organizations using Terraform for infrastructure management.
See the complete documentation: gcp/terraform/modules/mpc-permissions/README.md
The Terraform module provides:
- Infrastructure as code with version control
- Drift detection and management
- CI/CD integration
- Declarative configuration
For quick one-time setup or organizations not using Terraform.
Script location: gcp/shell/setup-mpc-permissions.sh
Quick start:
export PROJECT_ID="your-project-id"
export PRESET_SERVICE_ACCOUNT="Service account email provided by Preset"
./gcp/shell/setup-mpc-permissions.shThe shell script is:
- Idempotent (safe to run multiple times)
- Self-contained
- Easy to audit
Both methods create the following resources in your GCP project:
- Custom IAM Role (
PresetMPCAdminV2) - Contains all necessary permissions for Preset to manage MPC infrastructure - MPC Service Account (
preset-mpc-sa) - Used by Preset to manage your resources - IAM Bindings - Grants appropriate permissions to Preset's service account
If you encounter issues or need assistance:
- Review the detailed documentation for your chosen method (links above)
- Check the GCP Cloud Console for error messages
- Contact your Preset support representative with:
- Your project ID
- Error messages or logs
- Which setup method you're using