feat: 新增 ECS ENI 安全组挂载资源#9618
Open
mir-xiong wants to merge 1 commit into
Open
Conversation
mir-xiong
commented
Apr 8, 2026
- 新增 alicloud_ecs_eni_sg_attachment 资源,实现 ENI 安全组按集合合并挂载
- 支持创建记录原始安全组、删除回滚原始关系,并增加状态等待与重试
- 注册 provider 资源并补充文档与单元测试
- 更新忽略规则,避免本地构建产物与 mise 配置误提交
- 新增 alicloud_ecs_eni_sg_attachment 资源,实现 ENI 安全组按集合合并挂载 - 支持创建记录原始安全组、删除回滚原始关系,并增加状态等待与重试 - 注册 provider 资源并补充文档与单元测试 - 更新忽略规则,避免本地构建产物与 mise 配置误提交
|
mirxiong seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
xuzhang3
requested changes
May 6, 2026
| @@ -0,0 +1,57 @@ | |||
| package alicloud | |||
Collaborator
There was a problem hiding this comment.
测试需要覆盖真实的资源创建的场景,会创建真实的资源并验证结果。 可以参考其他资源的AccTest
|
|
||
| * `network_interface_id` - (Required, ForceNew) The ID of the network interface. | ||
| * `attach_security_group_ids` - (Required, ForceNew, List) Security group IDs to merge into the network interface's existing security group relationship. | ||
| **NOTE:** The final relationship is guaranteed, but returned order from ECS may differ. |
Collaborator
There was a problem hiding this comment.
- 告警框没有高亮显示。 需要前后都隔一样才能正确渲染。可以通过 https://registry.terraform.io/tools/doc-preview 预览下。
- 如果
attach_security_group_ids存在服务端返回和本地配置顺序不一致的情况,在schema定义中需要压制下diff ,不然用户创建之后会出现diff, 需压多次改动配置
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.