Skip to content

alicloud_kvstore_instance/alicloud_redis_tair_instance: Added the field cert_download_url, ssl_expired_time, cert_common_name#9594

Open
Melonbun233 wants to merge 5 commits into
aliyun:masterfrom
Melonbun233:feat/kvstore-tair-ssl-metadata
Open

alicloud_kvstore_instance/alicloud_redis_tair_instance: Added the field cert_download_url, ssl_expired_time, cert_common_name#9594
Melonbun233 wants to merge 5 commits into
aliyun:masterfrom
Melonbun233:feat/kvstore-tair-ssl-metadata

Conversation

@Melonbun233
Copy link
Copy Markdown

Summary

  • Expose cert_download_url, ssl_expired_time, cert_common_name as computed attributes on alicloud_kvstore_instance and alicloud_redis_tair_instance
  • Data is already returned by the DescribeInstanceSSL API but was previously discarded in the Read functions
  • No new API calls, no service layer changes — purely schema + Read additions

Closes #9587

Changes

File Change
alicloud/resource_alicloud_kvstore_instance.go Add 3 computed schema fields + 3 d.Set() calls in Read
alicloud/resource_alicloud_kvstore_instance_test.go Add assertions for new fields (CHECKSET when enabled, empty when disabled)
alicloud/resource_alicloud_redis_tair_instance.go Add 3 computed schema fields + 3 d.Set() calls in Read (with nil-check pattern)
alicloud/resource_alicloud_redis_tair_instance_test.go Add assertions for new fields (CHECKSET when enabled)
website/docs/r/kvstore_instance.html.markdown Document new attributes
website/docs/r/redis_tair_instance.html.markdown Document new attributes

New Attributes

Attribute Type Description
cert_download_url string (computed) The download URL of the SSL certificate
ssl_expired_time string (computed) The expiration time of the SSL certificate
cert_common_name string (computed) The common name (CN) of the SSL certificate

Test plan

  • TestAccAliCloudKVStoreRedisInstance_6_0 — verifies new fields are set when SSL enabled and cleared when disabled
  • TestAccAliCloudKVStoreRedisInstance_5_0_memory_classic_cluster — same coverage for a different instance type
  • TestAccAliCloudRedisTairInstance_basic6473_raw — verifies new fields are set when SSL enabled

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Mar 26, 2026

CLA assistant check
All committers have signed the CLA.

@Melonbun233 Melonbun233 changed the title resource/alicloud_kvstore_instance,alicloud_redis_tair_instance: expose SSL certificate metadata alicloud_kvstore_instance/alicloud_redis_tair_instance: Added the field cert_download_url, ssl_expired_time, cert_common_name Mar 26, 2026
@Melonbun233 Melonbun233 force-pushed the feat/kvstore-tair-ssl-metadata branch from 7be6758 to fa0ae5f Compare March 27, 2026 16:50
…rom DescribeInstanceSSL

Add cert_download_url, ssl_expired_time, cert_common_name as computed
fields. Data is already returned by the API but was previously discarded.

Closes aliyun#9587 (partial)
…a from DescribeInstanceSSL

Add cert_download_url, ssl_expired_time, cert_common_name as computed
fields. Data is already returned by the API but was previously discarded.

Closes aliyun#9587 (partial)
@Melonbun233 Melonbun233 force-pushed the feat/kvstore-tair-ssl-metadata branch from fa0ae5f to 2c3539e Compare March 27, 2026 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

alicloud_kvstore_instance / alicloud_redis_tair_instance: Expose SSL certificate metadata from DescribeInstanceSSL API

2 participants