Skip to content

Commit

Permalink
fixed resource to verify token
Browse files Browse the repository at this point in the history
  • Loading branch information
asiyani committed Dec 3, 2024
1 parent 71288d5 commit 8f91be8
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions integration_test/src/modules/hello/hello.tf
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,14 @@ resource "null_resource" "echo_AWS_KEY" {
]
}

data "google_client_openid_userinfo" "sa" {}
resource "null_resource" "verify_gcp_token" {
provisioner "local-exec" {
command = "wget -q -O - \"https://oauth2.googleapis.com/tokeninfo?access_token=$GOOGLE_OAUTH_ACCESS_TOKEN\""
}

output "google_sa_email" {
value = data.google_client_openid_userinfo.sa.email
depends_on = [
null_resource.echo_AWS_KEY
]
}

resource "null_resource" "slow_provider" {
Expand Down

0 comments on commit 8f91be8

Please sign in to comment.