Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kitagry/terraform-berglas-example
https://github.com/kitagry/terraform-berglas-example
Last synced: 15 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/kitagry/terraform-berglas-example
- Owner: kitagry
- Created: 2021-04-17T07:59:03.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-04-17T08:06:06.000Z (over 3 years ago)
- Last Synced: 2024-12-15T14:43:54.331Z (20 days ago)
- Language: HCL
- Size: 1000 Bytes
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## terraform-berglas-example
### Usage
1. install [berglas](https://github.com/GoogleCloudPlatform/berglas)
2. Setup berglas
```sh
gcloud auth application-default logingcloud services enable --project ${PROJECT_ID} \
cloudkms.googleapis.com \
storage-api.googleapis.com \
storage-component.googleapis.comberglas bootstrap --project $PROJECT_ID --bucket $BUCKET_ID
```3. Install berglas provider for terraform
```sh
./install_berglass_provider.sh
```4. Use terrafrom
```
# This create Cloud SQL
terraform apply# Enter PROJECT_ID and BUCKET_ID
```5. Check secret info
```
$ berglas list $BUCKET_ID
DB_USER
DB_PASS$ berglas access DB_PASS
```