import Ġcom . amazonaws . regions . Region Ċ import Ġcom . amazonaws . regions . Regions Ċ import Ġcom . amazonaws . services . aut oscaling . Amazon AutoScaling Client Ċ import Ġcom . amazonaws . services . ec 2 . Amazon EC 2 Client Ċ Ċ object ĠAWS Ġ{ Ċ ĉ val ĠEC 2 Ġ= ĠAmazon EC 2 Client () Ċ ĉ val ĠAS Ġ= ĠAmazon AutoScaling Client () ĊĊ ĉ init Ġ{ Ċĉ ĉ listOf ( EC 2 , ĠAS ). forEach Ġ{ Ċĉĉ ĉ it . set Region ( Region . get Region ( Regions . from Name ( Config . aws Region ))) Ċĉ ĉ } Ċ ĉ } Ċ }