Work Instructions for CDN Purge on GCP
- Create a Custom IAM Role for CDN Purge
- Go to the GCP Console:
- Open the Google Cloud Console.
- Select Your Project:
- Ensure you’re in the project where you want to create the custom role.
- Navigate to IAM & Admin:
- In the left sidebar, click on IAM & Admin > Roles.
- Create a New Role:
- Click on the + Create Role button at the top.
- Fill in Role Details:
- Title: Enter a name for the role (e.g., "CDN Purge Role").
- Description: Describe the purpose (e.g., "Role to allow purging of Cloud CDN cache").
- Role ID: This will be auto-generated but can be modified if needed.
- Add Permissions:
- In the Permissions section, add the following permissions:
- compute.urlMaps.update: Allows updating URL maps, which is necessary for purging.
- compute.urlMaps.invalidateCdnCache: Allows purging the cache.
- compute.urlMaps.get: Allows getting URL map details.
Note: This article has to be used for the resolution steps only. This is not a SOP.