Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
bunin committed Jun 30, 2023
1 parent 89f0d6b commit d4715a8
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ This is the Terraform Provider for the Severalnines CCX Database as a service pl

1. Sign up for CCX at https://ccx.severalnines.com/
2. Create a Terraform file called datastore.tf with the content below.
3. You must set client_id, client_secret and datastore information.
3. Set `client_id`, `client_secret` and datastore information. You can generate these credentials on the Account
page (https://app.mydbservice.net/account) Authorization tab.

```
terraform {
Expand All @@ -25,21 +26,23 @@ terraform {
}
}
}
provider "ccx" {
client_id = "please_enter_your_client_id_here"
client_secret = "please_enter_your_client_secret_here"
}
resource "ccx_datastore" "spaceforce" {
name = "spaceforce"
size = 1
db_vendor = "mariadb"
tags = ["new", "test"]
cloud_provider = "aws"
region = "eu-north-1"
instance_size = "tiny"
volume_size = 80
volume_type = "gp2"
network_type = "public"
resource "ccx_datastore" "luna" {
name = "luna"
size = 1
db_vendor = "postgres"
tags = ["new", "test"]
cloud_provider = "aws"
cloud_region = "eu-north-1"
instance_size = "m5.large"
volume_size = 80
volume_type = "gp2"
network_type = "public"
}
```

Expand Down

0 comments on commit d4715a8

Please sign in to comment.