Skip to content

This project is a sample project for creating a prototype GCP API client that could be used to assist projects that need to operate across a GCP org instead of a GCP project.

Notifications You must be signed in to change notification settings

Mandalorian007/gcp-org-level-shim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gcp-org-level-shim

This project is a sample project for creating a prototype GCP API client that could be used to assist projects that need to operate across a GCP org instead of a GCP project.

Requirements to run:

Flow of the Application

This is how the shim works.

  • Using the ResourceManager list all GCP projects in the Spotify organization.
  • Filter out any projects that are not in the active state. (For example, a project in the process of being deleted.)
  • Use the ServiceList API to get all enabled services. (This is regrettably complicated string-manipulation code. An enum of services — or a definitive listing of all available services — would help considerably.)
  • Look up the Billing Information for the project to see if billing is enabled.
  • Once all this metadata is present an application should be able to iterate all projects in an org looking for projects that use a particular service and then issue calls as needed.

Notes for Writing an Org-Level Application

  • Billing does not need to be enabled for Read API calls, but does need to be enabled for write API calls.

About

This project is a sample project for creating a prototype GCP API client that could be used to assist projects that need to operate across a GCP org instead of a GCP project.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages