Skip to content

Commit

Permalink
update iam auth tips
Browse files Browse the repository at this point in the history
  • Loading branch information
adelinn authored Jan 20, 2025
1 parent 410317e commit f7e467a
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docs/guides/tips.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,24 @@ resource "google_cloud_run_v2_service" "main" {
}
}
}
resource "google_sql_database_instance" "main" {
name = "sql-${local.props.project_name}-${local.props.app_environment}"
database_version = "POSTGRES_17"
region = local.props.gcp.location
settings {
// ...
database_flags {
name = "cloudsql.iam_authentication"
value = "on"
}
}
// ...
}
```

2. Use the following Terraform code to enable Group IAM auth:
Expand Down

0 comments on commit f7e467a

Please sign in to comment.