New Data Source: alicloud_sae_application_instances - #10153
Conversation
Lists the instances of an SAE application via DescribeApplicationGroups + DescribeApplicationInstances, exposing per-instance ENI IP (instance_container_ip), container/health status, image_url, package_version and vswitch_id. Supports optional group_id scoping and client-side ids filtering.
| Provides a list of SAE application instances to the user. | ||
| --- | ||
|
|
||
| # alicloud\_sae\_application\_instances |
There was a problem hiding this comment.
no need to add the \ any more. can be removed
|
Thanks for the thorough writeup — the use case (ENI IPs churning on every rolling deploy, self-managed ALB server group needing them) is clear, and the issue-then-PR flow is appreciated. Build and vet are clean on my side too; the two A few things to fix before this can go in. 1.
|
Implements #10152.
What
Adds a new data source
alicloud_sae_application_instancesthat lists the instances of an SAE application, exposing per-instance ENI IP (instance_container_ip), container/health status,image_url,package_versionandvswitch_id.Implementation:
group_idunset → all groups are enumerated viaGET /pop/v1/sam/app/describeApplicationGroups;group_idset → only that group.GET /pop/v1/sam/app/describeApplicationInstanceswith pagination (PageSize/CurrentPage) and the standard retry wrapper.idsfiltering,output_file, andidsexport, following the conventions ofalicloud_sae_applications.Why
SAE reassigns ENI IPs on every rolling deployment. Downstream IP-based resources (e.g. a self-managed
alicloud_alb_server_groupfronting an SAE app, needed when listener timeouts beyond the SAE-managed CLB defaults are required) currently have no way to track the new IPs declaratively. Because thealicloud_sae_applicationupdate withdeploy = truealready waits for the ChangeOrder to complete,depends_onlets the data source read the post-deploy IPs within a single apply:Testing
go build ./alicloud/andgo vet ./alicloud/pass (the twofmt.Sprintlnvet notes inalicloud/common.goare pre-existing upstream).TestAccAlicloudSAEApplicationInstancesDataSourceadded following the existing SAE data source test pattern (exist: application_id; fake: ids filter). It requires an Alibaba Cloud account to run, so it has not been executed here — happy to adjust if maintainers hit issues running it.