-
Notifications
You must be signed in to change notification settings - Fork 561
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
New Resource: alicloud_ack_one_membership_attachment #8122
base: master
Are you sure you want to change the base?
New Resource: alicloud_ack_one_membership_attachment #8122
Conversation
595bb89
to
18e566a
Compare
3b2bafd
to
cec9b18
Compare
alicloud/resource_alicloud_ack_one_membership_attaching_test.go
Outdated
Show resolved
Hide resolved
0d27bd5
to
7378ccc
Compare
e8c954f
to
26fb537
Compare
26fb537
to
7cad108
Compare
8565c74
to
498347f
Compare
498347f
to
63f9649
Compare
17f4ddc
to
b58d804
Compare
b58d804
to
2297e04
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approved
|
||
The following attributes are exported: | ||
|
||
* `id` - The ID of the resource supplied above. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ack One Membership Attachment can be imported using the id, which consists of cluster_id and sub_cluster_id, e.g. | ||
|
||
```shell | ||
terraform import alicloud_ack_one_membership_attachment.example <cluster_id:sub_cluster_id> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
managed_cluster_id和sub_cluster_id是一致的,sub_cluster_id是入参,方便用户理解,我就都用sub_cluster_id可以吗
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
就是说,这个资源一共两个入参字段,一个出参字段,其中入参字段sub_cluster_id等价出参字段managed_cluster_id,对吗?如果是这样,那就字段冗余了,把出参managed_cluster_id删掉吧。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
它的用处是如果managed_cluster_id为null的话表示关联关系没有创建成功
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不过id存在应该就能表明关联关系存不存在,那我删一下managed_cluster_id
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已删除
7604cf7
to
8929f75
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approved
8929f75
to
5c11cc4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approved
5c11cc4
to
9672532
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approved
doc: add doc for alicloud_ack_one_membership_attaching test: new resource alicloud_ack_one_membership_attaching Signed-off-by: 宜松 <zzy405810@alibaba-inc.com>
9672532
to
ca47467
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approved
Support AttachClusterToHub and DetachClusterFromHub for terraform integrations.