Skip to content

Commit

Permalink
Added PSC example.
Browse files Browse the repository at this point in the history
  • Loading branch information
luigi-bitonti committed Nov 24, 2023
1 parent 335c7cd commit 3a91495
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions modules/cloudsql-instance/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,27 @@ module "db" {
# tftest modules=3 resources=10
```

### Instance with PSC enabled

```hcl
module "db" {
source = "./fabric/modules/cloudsql-instance"
project_id = var.project_id
network_config = {
connectivity = {
psc_allowed_consumer_projects = ["my-project-id"]
}
}
prefix = "myprefix"
name = "db"
region = "europe-west1"
availability_type = "REGIONAL"
database_version = "POSTGRES_13"
tier = "db-g1-small"
}
# tftest modules=1 resources=1
```

### Enable public IP

Use `ipv_enabled` to create instances with a public IP.
Expand Down

0 comments on commit 3a91495

Please sign in to comment.