All cloud services and resources (such as virtual machines, network, load balancer, etc) are to be created under a Google Cloud Platform project.
A project is a billing unit. Any services / resources you create under the project will be charged to the Billing Account associated with the project.
A project is a security boundary. You can assign additional users to access different services / resources within the project.
Project is usually referred by Project ID. A Project ID is globally unique.
If this is your first time signing up for Google Cloud Platform, it will automatically create a Google Cloud Platform Project.
Every project has a Project ID and a Project Number. Project ID is most used. Find the Project ID in Home, under Project info.
If you already have an account, use an existing project, or create a new one.
IAM may be one of the hardest concepts to grasp about Google Cloud Platform - but once you understand it, everything else becomes clear.
All Member (i.e., a user) are identified by an e-mail address:
User interaction with
User's e-mail address
Service to Service authentication
Service account's e-mail address
G Suite Group
A collection of user accounts or service accounts.
G Suite Group e-mail
G Suite Domain
All users and groups of a G Suite domain.
G Suite domain name
Sometimes, when referring to different types of Members, you may need to add a prefix:
G Suite Group
G Suite Domain
See Identity Access Management Overview documentation for more details.
A Permission is the finest grain of a particular action that a Member can perform. For example, a permission to list objects / files from Cloud Storage is
Each Member can be associated with different Roles, and each Role is associated with a set of Permissions. For example, a
roles/storage.objectViewer role, has
storage.objects.list permissions. See Understanding roles documentation for all the available roles and the associated permissions
This is the default credential that a Google Cloud client library will discover. Application Default Credential can be:
gcloud auth application-default login when running locally,
GOOGLE_APPLICATION_CREDENTIALS environmental variable that points to the path of a Service Account key file,
or automatically discovered using the Metadata Server.
When using a Google Cloud client library to access a Cloud service, the client library would automatically discover the credential to use based on precedence. See Google Auth Library README for more information.
Service Account Key file is a JSON file that contains a private key, and the private key is used to retrieve OAuth access token. The Service Account file is like a password and must be stored securely!
All Google Cloud runtime environments (App Engine, Cloud Functions, Cloud Run, Kubernetes Engine, Compute Engine, ...) have access to the Metadata Server. From the runtime environment, you can retrieve the current access token associated with the Service Account:
curl -H "Metadata-Flavor: Google" \http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/token