Skip to content

Commit

Permalink
update gcp api key instructions to be more descriptive (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron O'Hagan authored Jul 3, 2020
1 parent f08afdd commit dcf60de
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions collectors/googlestackdriver/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@ forward logs to the Alert Logic CloudInsight backend services.

# Installation

### Generate Google API key
1. In the Google Cloud Console, open the sidebar and in the *IAM & Admin* dropdown, select *Service Accounts*.
2. Select *Create Service Account* at the top of the list.
3. Enter a service account name and a service account description (optional) and click *Create*.
4. From the Role list, select *Logging*, then *Private Log Viewer* and click *Continue*.
5. Grant any user permissions, if desired, and click *Done*.
6. Click the *Actions* menu beside the newly created service account and select *Create Key*.
7. Select *JSON* and click *Create*. The key will be downloaded to your computer as a JSON file.

### CloudFormation Template (CFT)
Refer to [CF template readme](./cfn/README.md) for installation instructions.

## Generate Google API key file
1. In the Google Cloud Console, go to the Create service account key page.
2. From the Service account list, select New service account.
3. In the Service account name field, enter a name.
4. From the Role list, select Project > Owner.

Note: The Role field authorizes your service account to access resources. You can view and change this field later by using the Cloud Console. If you are developing a production app, specify more granular permissions than Project > Owner. For more information, see granting roles to service accounts.

5. Click Create. A JSON file that contains your key downloads to your computer.

# How it works

## Update Trigger
Expand Down Expand Up @@ -98,4 +98,3 @@ make sam-local
```
4. Please see `local/event.json` for the event payload used for local invocation.
Please write your readme here

0 comments on commit dcf60de

Please sign in to comment.