Skip to content

Commit 66b607d

Browse files
Merge branch 'main' into feat/query_performance_factors
2 parents b20bf06 + 991e95e commit 66b607d

File tree

7 files changed

+116
-87
lines changed

7 files changed

+116
-87
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939

4040
# Initializes the CodeQL tools for scanning.
4141
- name: Initialize CodeQL
42-
uses: github/codeql-action/init@v2
42+
uses: github/codeql-action/init@v3
4343
with:
4444
languages: ${{ matrix.language }}
4545
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -50,7 +50,7 @@ jobs:
5050
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5151
# If this step fails, then you should remove it and run the build manually (see below)
5252
- name: Autobuild
53-
uses: github/codeql-action/autobuild@v2
53+
uses: github/codeql-action/autobuild@v3
5454

5555
# ℹ️ Command-line programs to run using the OS shell.
5656
# 📚 https://git.io/JvXDl
@@ -64,4 +64,4 @@ jobs:
6464
# make release
6565

6666
- name: Perform CodeQL Analysis
67-
uses: github/codeql-action/analyze@v2
67+
uses: github/codeql-action/analyze@v3

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
PASSPHRASE: ${{ secrets.PASSPHRASE }}
3939
-
4040
name: Run GoReleaser
41-
uses: goreleaser/goreleaser-action@v5.0.0
41+
uses: goreleaser/goreleaser-action@v6.3.0
4242
with:
4343
version: latest
4444
args: release --clean

.github/workflows/terraform_provider.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
runs-on: ubuntu-latest
4343
steps:
4444
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
45-
- uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
45+
- uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
4646
continue-on-error: true
4747
id: cache-terraform-plugin-dir
4848
timeout-minutes: 2
@@ -66,15 +66,15 @@ jobs:
6666
runs-on: ubuntu-latest
6767
steps:
6868
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
69-
- uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
69+
- uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
7070
continue-on-error: true
7171
id: cache-terraform-providers-schema
7272
timeout-minutes: 2
7373
with:
7474
path: terraform-providers-schema
7575
key: ${{ runner.os }}-terraform-providers-schema-${{ hashFiles('go.sum') }}-${{ hashFiles('provider/**') }}
7676
- if: steps.cache-terraform-providers-schema.outputs.cache-hit != 'true' || steps.cache-terraform-providers-schema.outcome == 'failure'
77-
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
77+
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
7878
timeout-minutes: 2
7979
with:
8080
path: terraform-plugin-dir

docs/resources/rediscloud_active_active_subscription_database.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,5 +153,12 @@ $ terraform import rediscloud_active_active_subscription_database.database-resou
153153

154154
Note: Due to constraints in the Redis Cloud API, the import process will not import global attributes or override region attributes. If you wish to use these attributes in your Terraform configuration, you will need to manually add them to your Terraform configuration and run `terraform apply` to update the database.
155155

156-
Additionally, the `memory_limit_in_gb` cannot be set during imports as it is deprecated. If you need to set the `memory_limit_in_gb` attribute, you will need to create a new database resource. It is recommended to use the `dataset_size_in_gb` attribute instead.
156+
Additionally, the `memory_limit_in_gb` cannot be set during imports as it is deprecated. If you need to set the `memory_limit_in_gb` attribute, you will need to create a new database resource. It is recommended to use the `dataset_size_in_gb` attribute instead since imports are supported.
157157

158+
To update an existing configuration for a database which uses the `memory_limit_in_gb` field to use `dataset_size_in_gb`, you need to remove it from the state and import the resource again. e.g.
159+
160+
```
161+
$ terraform state rm rediscloud_active_active_subscription_database.database-resource
162+
(Update the configuration to use `dataset_size_in_gb` instead of `memory_limit_in_gb`)
163+
$ terraform import rediscloud_active_active_subscription_database.database-resource 123456/12345678
164+
```

docs/resources/rediscloud_subscription_database.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,4 +163,12 @@ The `timeouts` block allows you to specify [timeouts](https://www.terraform.io/l
163163
$ terraform import rediscloud_subscription_database.database-resource 123456/12345678
164164
```
165165

166-
Note: Due to constraints in the Redis Cloud API, the `memory_limit_in_gb` cannot be set during imports as it is deprecated. If you need to set the `memory_limit_in_gb` attribute, you will need to create a new database resource. It is recommended to use the `dataset_size_in_gb` attribute instead.
166+
Note: Due to constraints in the Redis Cloud API, the `memory_limit_in_gb` cannot be set during imports as it is deprecated. If you need to set the `memory_limit_in_gb` attribute, you will need to create a new database resource. It is recommended to use the `dataset_size_in_gb` attribute instead since imports are supported.
167+
168+
To update an existing configuration for a database which uses the `memory_limit_in_gb` field to use `dataset_size_in_gb`, you need to remove it from the state and import the resource again. e.g.
169+
170+
```
171+
$ terraform state rm rediscloud_subscription_database.database-resource
172+
(Update the configuration to use `dataset_size_in_gb` instead of `memory_limit_in_gb`)
173+
$ terraform import rediscloud_subscription_database.database-resource 123456/12345678
174+
```

go.mod

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ module github.com/RedisLabs/terraform-provider-rediscloud
33
go 1.22.4
44

55
require (
6-
github.com/RedisLabs/rediscloud-go-api v0.23.0
7-
github.com/bflad/tfproviderlint v0.30.0
8-
github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320
9-
github.com/hashicorp/terraform-plugin-sdk/v2 v2.35.0
6+
github.com/bflad/tfproviderlint v0.31.0
7+
github.com/RedisLabs/rediscloud-go-api v0.24.0
8+
github.com/hashicorp/go-cty v1.5.0
9+
github.com/hashicorp/terraform-plugin-sdk/v2 v2.36.1
1010
github.com/stretchr/testify v1.10.0
1111
)
1212

1313
require (
14-
github.com/ProtonMail/go-crypto v1.1.0-alpha.2 // indirect
14+
github.com/ProtonMail/go-crypto v1.1.3 // indirect
1515
github.com/agext/levenshtein v1.2.2 // indirect
1616
github.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect
1717
github.com/avast/retry-go/v4 v4.6.0 // indirect
@@ -30,14 +30,14 @@ require (
3030
github.com/hashicorp/go-retryablehttp v0.7.7 // indirect
3131
github.com/hashicorp/go-uuid v1.0.3 // indirect
3232
github.com/hashicorp/go-version v1.7.0 // indirect
33-
github.com/hashicorp/hc-install v0.9.0 // indirect
34-
github.com/hashicorp/hcl/v2 v2.22.0 // indirect
33+
github.com/hashicorp/hc-install v0.9.1 // indirect
34+
github.com/hashicorp/hcl/v2 v2.23.0 // indirect
3535
github.com/hashicorp/logutils v1.0.0 // indirect
36-
github.com/hashicorp/terraform-exec v0.21.0 // indirect
37-
github.com/hashicorp/terraform-json v0.23.0 // indirect
38-
github.com/hashicorp/terraform-plugin-go v0.25.0 // indirect
36+
github.com/hashicorp/terraform-exec v0.22.0 // indirect
37+
github.com/hashicorp/terraform-json v0.24.0 // indirect
38+
github.com/hashicorp/terraform-plugin-go v0.26.0 // indirect
3939
github.com/hashicorp/terraform-plugin-log v0.9.0 // indirect
40-
github.com/hashicorp/terraform-registry-address v0.2.3 // indirect
40+
github.com/hashicorp/terraform-registry-address v0.2.4 // indirect
4141
github.com/hashicorp/terraform-svchost v0.1.1 // indirect
4242
github.com/hashicorp/yamux v0.1.1 // indirect
4343
github.com/mattn/go-colorable v0.1.13 // indirect
@@ -52,17 +52,17 @@ require (
5252
github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect
5353
github.com/vmihailenco/msgpack/v5 v5.4.1 // indirect
5454
github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect
55-
github.com/zclconf/go-cty v1.15.0 // indirect
56-
golang.org/x/crypto v0.32.0 // indirect
57-
golang.org/x/mod v0.22.0 // indirect
58-
golang.org/x/net v0.34.0 // indirect
59-
golang.org/x/sync v0.10.0 // indirect
60-
golang.org/x/sys v0.29.0 // indirect
61-
golang.org/x/text v0.21.0 // indirect
62-
golang.org/x/tools v0.29.0 // indirect
55+
github.com/zclconf/go-cty v1.16.2 // indirect
56+
golang.org/x/crypto v0.33.0 // indirect
57+
golang.org/x/mod v0.23.0 // indirect
58+
golang.org/x/net v0.35.0 // indirect
59+
golang.org/x/sync v0.11.0 // indirect
60+
golang.org/x/sys v0.30.0 // indirect
61+
golang.org/x/text v0.22.0 // indirect
62+
golang.org/x/tools v0.30.0 // indirect
6363
google.golang.org/appengine v1.6.8 // indirect
64-
google.golang.org/genproto/googleapis/rpc v0.0.0-20240814211410-ddb44dafa142 // indirect
65-
google.golang.org/grpc v1.67.1 // indirect
66-
google.golang.org/protobuf v1.35.1 // indirect
64+
google.golang.org/genproto/googleapis/rpc v0.0.0-20241015192408-796eee8c2d53 // indirect
65+
google.golang.org/grpc v1.69.4 // indirect
66+
google.golang.org/protobuf v1.36.3 // indirect
6767
gopkg.in/yaml.v3 v3.0.1 // indirect
6868
)

0 commit comments

Comments
 (0)