mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-07-05 17:52:38 +00:00
parent
0abbb5fbc0
commit
485e6b550d
|
@ -20,7 +20,6 @@ Use the navigation to the left to read about the available resources.
|
|||
# Configure the Google Cloud provider
|
||||
provider "google" {
|
||||
account_file = "account.json"
|
||||
client_secrets_file = "client_secrets.json"
|
||||
project = "my-gce-project"
|
||||
region = "us-central1"
|
||||
}
|
||||
|
@ -39,33 +38,23 @@ The following keys can be used to configure the provider.
|
|||
your account credentials, downloaded from Google Cloud Console. More
|
||||
details on retrieving this file are below.
|
||||
|
||||
* `client_secrets_file` - (Required) Path to the JSON file containing
|
||||
the secrets for your account, downloaded from Google Cloud Console.
|
||||
More details on retrieving this file are below.
|
||||
|
||||
* `project` - (Required) The name of the project to apply any resources to.
|
||||
|
||||
* `region` - (Required) The region to operate under.
|
||||
|
||||
## Authentication JSON Files
|
||||
## Authentication JSON File
|
||||
|
||||
Authenticating with Google Cloud services requires two separate JSON
|
||||
files: one which we call the _account file_ and the _client secrets file_.
|
||||
Authenticating with Google Cloud services requires a JSON
|
||||
file which we call the _account file_.
|
||||
|
||||
Both of these files are downloaded directly from the
|
||||
This file is downloaded directly from the
|
||||
[Google Developers Console](https://console.developers.google.com). To make
|
||||
the process more straightforwarded, it is documented here.
|
||||
the process more straightforwarded, it is documented here:
|
||||
|
||||
1. Log into the [Google Developers Console](https://console.developers.google.com)
|
||||
and select a project.
|
||||
|
||||
2. Under the "APIs & Auth" section, click "Credentials."
|
||||
|
||||
3. Create a new OAuth client ID and select "Installed application" as the
|
||||
type of account. Once created, click the "Download JSON" button underneath
|
||||
the account. The file should start with "client\_secret". This is your _client
|
||||
secrets file_.
|
||||
|
||||
4. Create a new OAuth client ID and select "Service account" as the type
|
||||
of account. Once created, a JSON file should be downloaded. This is your
|
||||
_account file_.
|
||||
3. Create a new OAuth client ID and select "Service account" as the type
|
||||
of account. Once created, and after a P12 key is downloaded, a JSON file should be downloaded. This is your _account file_.
|
||||
|
|
Loading…
Reference in New Issue
Block a user