Skip to content

[WIP] feat: add security_options support for ECS instances#9655

Open
imlk0 wants to merge 1 commit into
aliyun:masterfrom
inclavare-containers:feat/ecs-security-options
Open

[WIP] feat: add security_options support for ECS instances#9655
imlk0 wants to merge 1 commit into
aliyun:masterfrom
inclavare-containers:feat/ecs-security-options

Conversation

@imlk0
Copy link
Copy Markdown

@imlk0 imlk0 commented Apr 16, 2026

Summary

  • Add security_options block to alicloud_instance resource with a confidential_computing_mode parameter
  • Supports TDX and Enclave confidential computing modes (ForceNew, with value validation)
  • Pass SecurityOptions.ConfidentialComputingMode to the RunInstances API on instance creation
  • Update documentation and add acceptance test for the Enclave security option
  • Bump alibaba-cloud-sdk-go to v1.63.28 (required for SecurityOptions fields in ECS RunInstances API)

Changes

  • alicloud/resource_alicloud_instance.go — add security_options schema and create logic
  • alicloud/resource_alicloud_instance_test.go — add acceptance tests
  • website/docs/r/instance.html.markdown — update documentation
  • go.mod / go.sum — bump alibaba-cloud-sdk-go to v1.63.28

…uting modes

- Added security_options block with confidential_computing_mode parameter
- Supports TDX and Enclave confidential computing modes
- Added validation for confidential computing mode values
- Updated documentation with security_options configuration
- Added acceptance test for Enclave security option
- Enhanced instance resource to handle security options during creation

Signed-off-by: Kun Lai <laikun@linux.alibaba.com>
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Apr 16, 2026

CLA assistant check
All committers have signed the CLA.

@imlk0 imlk0 force-pushed the feat/ecs-security-options branch from 957e954 to 243acb0 Compare April 16, 2026 06:39
@imlk0 imlk0 changed the title feat: add security_options support for ECS instances [WIP] feat: add security_options support for ECS instances Apr 16, 2026
@imlk0 imlk0 force-pushed the feat/ecs-security-options branch 3 times, most recently from 267d5ad to 5c5ede6 Compare April 17, 2026 09:31
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.

2 participants