Google Cloud
Project
Section titled “Project”Google Cloud Project
resource "google_project" "name" { ...}
Attributes
Section titled “Attributes”Attribute | Description |
---|---|
Regions | The regions infrastructure can be provisioned into.
|
Services | The services to allow access to.
|
Labels | Labels to add to the project.
|
key = “value” | |
} | |
Users | Users that will be created within the project.
|
roles = [ |
"roles/editor"
] } | |
ServiceAccounts service_account
type: []block
ServiceAccount
Service Accounts that will be created within the project.
service_account “admin” {
roles = [
“roles/editor”
]
}
|
| ProjectID project_id
type: string
ProjectName project_name
type: string
Computed Attributes
Section titled “Computed Attributes”These attributes are computed when the config is parsed and applied, and are
therefore only known at parsetime or runtime.
Attribute | Description |
---|---|
Meta ID | The full ID of the resource e.g.
|
resource “container” “ubuntu” { | |
… | |
} |
// the resulting id will be resource.container.ubuntu | |
Meta Type meta.type
string
The type of the resource.
This taken from the type label of the resource definition.
| |// given the following resource resource “container” “ubuntu” { … }
// the resulting type will be container
Meta Name meta.name
string
The name of the resource.
This taken from the name label of the resource definition.
|// given the following resource resource “container” “ubuntu” { … }
// the resulting name will be ubuntu
\
Google Cloud User
resource "google_project" "name" {user "name" { ...}}
Attributes
Section titled “Attributes”Attribute | Description |
---|---|
Name | The username of the user.
|
… | |
} | |
Roles | The roles that will be assigned to the user.
|
Email | Output parameters |
Password |
Computed Attributes
Section titled “Computed Attributes”These attributes are computed when the config is parsed and applied, and are
therefore only known at parsetime or runtime.
\
ServiceAccount
Section titled “ServiceAccount”Google Cloud Service Account
resource "google_project" "name" {service_account "name" { ...}}
Attributes
Section titled “Attributes”Attribute | Description |
---|---|
Name | The name of the service account.
|
… | |
} | |
Roles | The roles that will be assigned to the service account.
|
Email | Output parameters |
Key |
Computed Attributes
Section titled “Computed Attributes”These attributes are computed when the config is parsed and applied, and are
therefore only known at parsetime or runtime.