Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

backend/oss: Adds new arguement tablestore_instance_name used to VPC scenario #36253

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

xiaozhu36
Copy link
Contributor

Terraform State OSS Backend uses Alibaba Cloud Tablestore to store state lock. There needs setting an instance name when putting lock data. Before, the instance name defaults to parsing from argument tablestore_endpoint, but it will not work when it is a VPC endpoint. This PR provides a new argument tablestore_instance_name explicitly the instance name to meet
VPC access scenario.

Target Release

1.11.x

Draft CHANGELOG entry

ENHANCEMENTS

  • backend/oss: Adds new arguement tablestore_instance_name used to VPC scenario

@xiaozhu36 xiaozhu36 requested review from a team as code owners January 2, 2025 12:05
@xiaozhu36 xiaozhu36 requested a review from shrhim-des January 2, 2025 12:05
Copy link
Contributor

@dsa0x dsa0x left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thank you

Copy link
Contributor

@trujillo-adam trujillo-adam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you clarify what we mean at line 99?

@@ -95,6 +95,9 @@ The following configuration options or environment variables are supported:

* `tablestore_endpoint` / `ALICLOUD_TABLESTORE_ENDPOINT` - (Optional) A custom endpoint for the TableStore API.

* `tablestore_instance_name` - (Optional, Available since v1.11.0) A instance name of TableStore belongs. Default to parsing from `tablestore_endpoint`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* `tablestore_instance_name` - (Optional, Available since v1.11.0) A instance name of TableStore belongs. Default to parsing from `tablestore_endpoint`.
* `tablestore_instance_name` - (Optional) Specifies the name of an instance that `TableStore` belongs to. By default, Terraform parses the name from `tablestore_endpoint`.

The docs are versioned, so we don't need to include the min version directly in the prose.

@@ -95,6 +95,9 @@ The following configuration options or environment variables are supported:

* `tablestore_endpoint` / `ALICLOUD_TABLESTORE_ENDPOINT` - (Optional) A custom endpoint for the TableStore API.

* `tablestore_instance_name` - (Optional, Available since v1.11.0) A instance name of TableStore belongs. Default to parsing from `tablestore_endpoint`.
It should be set Access URL explicitly when tablestore endpoint is a VPC access url
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
It should be set Access URL explicitly when tablestore endpoint is a VPC access url
You should set the access URL explicitly when the `tablestore` endpoint is a VPC access URL.

Is this what you mean?

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.

3 participants