Skip to content

Commit e416d85

Browse files
committed
[3.1.4] Service Tags support added
1 parent 636a66c commit e416d85

File tree

21 files changed

+1091
-42
lines changed

21 files changed

+1091
-42
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## [3.1.4] - 2025-07-17
4+
### Features
5+
- service `tags` support added.
6+
37
## [3.1.3] - 2024-07-25
48
### Package Updates
59
- upgraded go 1.19 => 1.21

docs/data-sources/skysql_availability_zones.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
page_title: "skysql_availability_zones Data Source - terraform-provider-skysql-beta"
2+
page_title: "skysql_availability_zones Data Source - terraform-provider-beta"
33
subcategory: ""
44
description: |-
55
Retrieve the list of availability_zones.

docs/data-sources/skysql_credentials.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
page_title: "skysql_credentials Data Source - terraform-provider-skysql-beta"
2+
page_title: "skysql_credentials Data Source - terraform-provider-beta"
33
subcategory: ""
44
description: |-
55
Returnes a default credentials for a SkySQL service

docs/data-sources/skysql_projects.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
page_title: "skysql_projects Data Source - terraform-provider-skysql-beta"
2+
page_title: "skysql_projects Data Source - terraform-provider-beta"
33
subcategory: ""
44
description: |-
55
Retrieve the list of projects. Project is a way of grouping the services.

docs/data-sources/skysql_service.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
page_title: "skysql_service Data Source - terraform-provider-skysql-beta"
2+
page_title: "skysql_service Data Source - terraform-provider-beta"
33
subcategory: ""
44
description: |-
55
Returns an full SkySQL service details

docs/data-sources/skysql_versions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
page_title: "skysql_versions Data Source - terraform-provider-skysql-beta"
2+
page_title: "skysql_versions Data Source - terraform-provider-beta"
33
subcategory: ""
44
description: |-
55
SkySQL server versions

docs/index.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: |-
44
The SkySQL Terraform Provider allows database services in SkySQL to be managed using Terraform.
55
---
66

7-
# SKYSQL-BETA Provider
7+
# BETA Provider
88

99
The provider allows configuring any SkySQL DB topology using the Terraform's declarative language.
1010

@@ -22,7 +22,7 @@ Use the navigation to the left to read about the available resources.
2222

2323
### Automated Installation (Recommended)
2424

25-
The Terraform Provider for SkySQL listed on the [Terraform Registry](https://registry.terraform.io/providers/skysqlinc/skysql-beta/).
25+
The Terraform Provider for SkySQL listed on the [Terraform Registry](https://registry.terraform.io/providers/skysqlinc/beta/).
2626

2727
#### Create a Terraform configuration file
2828

@@ -34,7 +34,7 @@ Providers listed on the Terraform Registry can be automatically downloaded when
3434
terraform {
3535
required_providers {
3636
skysql = {
37-
source = "registry.terraform.io/skysqlinc/skysql-beta"
37+
source = "registry.terraform.io/skysqlinc/beta"
3838
}
3939
}
4040
}
@@ -48,7 +48,7 @@ You can use `version` locking and operators to require specific versions of the
4848
terraform {
4949
required_providers {
5050
skysql = {
51-
source = "registry.terraform.io/skysqlinc/skysql-beta"
51+
source = "registry.terraform.io/skysqlinc/beta"
5252
version = ">= x.y.z"
5353
}
5454
}
@@ -57,7 +57,7 @@ terraform {
5757

5858
### Manual Installation
5959

60-
The latest release of the provider can be found on [`terraform-provider-skysql-beta/releases`](https://github.com/skysqlinc/terraform-provider-skysql-beta/releases). You can download the appropriate version of the provider for your operating system using a command line shell or a browser.
60+
The latest release of the provider can be found on [`terraform-provider-beta/releases`](https://github.com/skysqlinc/terraform-provider-beta/releases). You can download the appropriate version of the provider for your operating system using a command line shell or a browser.
6161

6262
This can be useful in environments that do not allow direct access to the Internet.
6363

@@ -71,7 +71,7 @@ The following examples use Bash on Linux (x64).
7171
RELEASE=x.y.z
7272
OS=linux
7373
ARCH=amd64
74-
wget -q https://github.com/skysqlinc/terraform-provider-skysql-beta/releases/download/${RELEASE}/terraform-provider-skysql-beta_${RELEASE}_{OS}_{ARCH}.zip
74+
wget -q https://github.com/skysqlinc/terraform-provider-beta/releases/download/${RELEASE}/terraform-provider-beta_${RELEASE}_{OS}_{ARCH}.zip
7575
```
7676

7777
2. Create a directory for the provider.
@@ -83,20 +83,20 @@ The following examples use Bash on Linux (x64).
8383
> `<registry>/<namespace>/<service>/<version>/<OS_arch>/`
8484

8585
```console
86-
mkdir -p ~/.terraform.d/plugins/registry.terraform.io/skysqlinc/skysql-beta
86+
mkdir -p ~/.terraform.d/plugins/registry.terraform.io/skysqlinc/beta
8787
```
8888

8989
3. Copy the plugin to a target system and move to the Terraform plugins directory.
9090

9191
```console
92-
mv terraform-provider-skysql-beta_${RELEASE}_${OS}_${ARCH}.zip ~/.terraform.d/plugins/registry.terraform.io/skysqlinc/skysql-beta/
92+
mv terraform-provider-beta_${RELEASE}_${OS}_${ARCH}.zip ~/.terraform.d/plugins/registry.terraform.io/skysqlinc/beta/
9393

9494
```
9595

9696
4. Verify the presence of the plugin in the Terraform plugins directory.
9797

9898
```console
99-
ls ~/.terraform.d/plugins/registry.terraform.io/skysqlinc/skysql-beta/
99+
ls ~/.terraform.d/plugins/registry.terraform.io/skysqlinc/beta/
100100
```
101101

102102
#### macOS
@@ -113,7 +113,7 @@ The following example uses Bash (default) on macOS (ARM).
113113

114114
```console
115115
export RELEASE=x.y.z
116-
wget -q https://github.com/skysqlinc/terraform-provider-skysql-beta/releases/download/v${RELEASE}/terraform-provider-skysql-beta_${RELEASE}_darwin_arm64.zip
116+
wget -q https://github.com/skysqlinc/terraform-provider-beta/releases/download/v${RELEASE}/terraform-provider-beta_${RELEASE}_darwin_arm64.zip
117117
```
118118

119119
3. Create a directory for the provider.
@@ -125,30 +125,30 @@ The following example uses Bash (default) on macOS (ARM).
125125
> `<registry>/<namespace>/<service>/<version>/<OS_arch>/`
126126

127127
```console
128-
mkdir -p ~/.terraform.d/plugins/registry.terraform.io/skysqlinc/skysql-beta/
128+
mkdir -p ~/.terraform.d/plugins/registry.terraform.io/skysqlinc/beta/
129129
```
130130

131131
4. Copy the plugin to a target system and move to the Terraform plugins directory.
132132

133133
```console
134-
mv terraform-provider-skysql-beta_${RELEASE}_darwin_arm64.zip ~/.terraform.d/plugins/registry.terraform.io/skysqlinc/skysql-beta/
134+
mv terraform-provider-beta_${RELEASE}_darwin_arm64.zip ~/.terraform.d/plugins/registry.terraform.io/skysqlinc/beta/
135135
```
136136

137137
5. Verify the presence of the plugin in the Terraform plugins directory.
138138

139139
```console
140-
ls ~/.terraform.d/plugins/registry.terraform.io/skysqlinc/skysql-beta/
140+
ls ~/.terraform.d/plugins/registry.terraform.io/skysqlinc/beta/
141141
```
142142

143143
## Configure the Terraform Configuration Files
144144

145-
In order to use the `skysql-beta` terraform provider, you need to configure the provider in your Terraform configuration files.
145+
In order to use the `beta` terraform provider, you need to configure the provider in your Terraform configuration files.
146146

147147
```hcl
148148
terraform {
149149
required_providers {
150150
skysql = {
151-
source = "registry.terraform.io/skysqlinc/skysql-beta"
151+
source = "registry.terraform.io/skysqlinc/beta"
152152
}
153153
}
154154
}
@@ -160,7 +160,7 @@ or you can specify the provider version.
160160
terraform {
161161
required_providers {
162162
skysql = {
163-
source = "registry.terraform.io/skysqlinc/skysql-beta"
163+
source = "registry.terraform.io/skysqlinc/beta"
164164
version = ">= x.y.z"
165165
}
166166
}
@@ -177,9 +177,9 @@ $ terraform init
177177
Initializing the backend...
178178

179179
Initializing provider plugins...
180-
- Finding latest version of skysqlinc/skysql-beta...
181-
- Installing skysqlinc/skysql-beta x.y.z...
182-
- Installed skysqlinc/skysql-beta x.y.z (unauthenticated)
180+
- Finding latest version of skysqlinc/beta...
181+
- Installing skysqlinc/beta x.y.z...
182+
- Installed skysqlinc/beta x.y.z (unauthenticated)
183183
...
184184

185185
Terraform has been successfully initialized!
@@ -195,7 +195,7 @@ To find the provider version, navigate to the working directory of your Terrafor
195195
$ terraform version
196196
Terraform x.y.z
197197
on darwin_arm64
198-
+ provider registry.terraform.io/skysqlinc/skysql-beta x.y.z
198+
+ provider registry.terraform.io/skysqlinc/beta x.y.z
199199
```
200200

201201
## Create a new SkySQL service

docs/resources/skysql_allow_list.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
page_title: "skysql_allow_list Resource - terraform-provider-skysql-beta"
2+
page_title: "skysql_allow_list Resource - terraform-provider-beta"
33
subcategory: ""
44
description: |-
55
Manages the allow list for a service

docs/resources/skysql_autonomous.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
page_title: "skysql_autonomous Resource - terraform-provider-skysql-beta"
2+
page_title: "skysql_autonomous Resource - terraform-provider-beta"
33
subcategory: ""
44
description: |-
55
Autonomous features enable automatic scaling in response to changes in workload.

docs/resources/skysql_service.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
page_title: "skysql_service Resource - terraform-provider-skysql-beta"
2+
page_title: "skysql_service Resource - terraform-provider-beta"
33
subcategory: ""
44
description: |-
55
Creates and manages a service in SkySQL
@@ -29,6 +29,13 @@ resource "skysql_service" "default" {
2929
volume_type = "gp3"
3030
volume_iops = 3000
3131
volume_throughput = 125
32+
# Tags for organizing and managing services
33+
tags = {
34+
"name" = "myservice"
35+
"environment" = "production"
36+
"team" = "backend"
37+
"cost-center" = "engineering"
38+
}
3239
# The service create is an asynchronous operation.
3340
# if you want to wait for the service to be created set wait_for_creation to true
3441
wait_for_creation = true
@@ -65,6 +72,7 @@ resource "skysql_service" "default" {
6572
- `size` (String) The size of the service. Valid values are: sky-2x4, sky-2x8 etc
6673
- `ssl_enabled` (Boolean) Whether to enable SSL. Valid values are: true or false
6774
- `storage` (Number) The storage size in GB. Valid values are: 100, 200, 300, 400, 500, 600, 700, 800, 900, 1000, 2000, 3000, 4000, 5000, 6000, 7000, 8000, 9000, 10000
75+
- `tags` (Map of String) Tags associated with the service
6876
- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts))
6977
- `version` (String) The software version
7078
- `volume_iops` (Number) The volume IOPS. This is only applicable for AWS

0 commit comments

Comments
 (0)