Skip to content

Commit

Permalink
Merge pull request #58 from google/poc-stage
Browse files Browse the repository at this point in the history
STAGE->PROD
  • Loading branch information
amgoogle authored Apr 15, 2024
2 parents 10f6311 + ee75bf7 commit 2488365
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tf-actions-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ jobs:
id-token: 'write'
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: 'actions/checkout@v2'
- uses: 'actions/checkout@v4'

- id: 'auth'
name: 'Authenticate to Google Cloud'
uses: 'google-github-actions/auth@v0'
uses: 'google-github-actions/auth@v2'
with:
token_format: 'access_token'
WORKLOAD_IDENTITY_PROVIDER: ${{ env.WORKLOAD_IDENTITY_PROVIDER }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tf-actions-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ jobs:
id-token: 'write'
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: 'actions/checkout@v2'
- uses: 'actions/checkout@v4'

- id: 'auth'
name: 'Authenticate to Google Cloud'
uses: 'google-github-actions/auth@v0'
uses: 'google-github-actions/auth@v2'
with:
token_format: 'access_token'
WORKLOAD_IDENTITY_PROVIDER: ${{ env.WORKLOAD_IDENTITY_PROVIDER }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tf-actions-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ jobs:
id-token: 'write'
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: 'actions/checkout@v2'
- uses: 'actions/checkout@v4'

- id: 'auth'
name: 'Authenticate to Google Cloud'
uses: 'google-github-actions/auth@v0'
uses: 'google-github-actions/auth@v2'
with:
token_format: 'access_token'
WORKLOAD_IDENTITY_PROVIDER: ${{ env.WORKLOAD_IDENTITY_PROVIDER }}
Expand Down
5 changes: 3 additions & 2 deletions examples/poc/modules/secret-manager/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,14 @@ resource "google_secret_manager_secret" "secret-basic" {
}

replication {
automatic = true
auto {}
}

depends_on = [google_project_service.secret-manager]
}


resource "google_secret_manager_secret_version" "secret-version-basic" {
secret = google_secret_manager_secret.secret-basic.id
secret_data = var.secret_version
}
}

0 comments on commit 2488365

Please sign in to comment.