Skip to content

Commit 25eb110

Browse files
committed
chore: deprecate redis_version in pro subscription schema
1 parent 8261d23 commit 25eb110

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

provider/resource_rediscloud_pro_subscription.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,7 @@ func resourceRedisCloudProSubscription() *schema.Resource {
363363
Type: schema.TypeString,
364364
Optional: true,
365365
ForceNew: true,
366+
Deprecated: "The `redis_version` attribute is deprecated on subscriptions. Please specify `redis_version` on databases directly instead.",
366367
DiffSuppressFunc: func(k, old, new string, d *schema.ResourceData) bool {
367368
if d.Id() == "" {
368369
// Consider the property if the resource is about to be created.
@@ -605,11 +606,6 @@ func resourceRedisCloudProSubscriptionCreate(ctx context.Context, d *schema.Reso
605606
Databases: dbs,
606607
}
607608

608-
redisVersion := d.Get("redis_version").(string)
609-
if d.Get("redis_version").(string) != "" {
610-
createSubscriptionRequest.RedisVersion = redis.String(redisVersion)
611-
}
612-
613609
cmkEnabled := d.Get("customer_managed_key_enabled").(bool)
614610

615611
if cmkEnabled {

0 commit comments

Comments
 (0)