Skip to content

Commit 05a8102

Browse files
'oos自动化模版增加Filter,只过滤出Running状态的ECS实例'
1 parent 3c06f5b commit 05a8102

File tree

1 file changed

+1
-1
lines changed
  • solution/solution-ecs-patching/step4-automation-deployment

1 file changed

+1
-1
lines changed

solution/solution-ecs-patching/step4-automation-deployment/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ resource "alicloud_oos_template" "share_services" {
218218
Fn::Select:
219219
- regionId
220220
- '{{ACS::TaskLoopItem}}'
221-
- '(..|objects|select(has("RegionId"))).RegionId |= "$regionId"'
221+
- '.Parameters.Status="Running"|(..|objects|select(has("RegionId"))).RegionId |= "$regionId"'
222222
- Fn::Select:
223223
- targets
224224
- '{{ templateParameters }}'

0 commit comments

Comments
 (0)