From c00aae0a4a9cf7f0bca09aff7488c410f3eda340 Mon Sep 17 00:00:00 2001 From: Thomas Lavocat Date: Wed, 11 May 2022 15:56:47 +0200 Subject: [PATCH] worker: provide the region for the ASG Before, the autoscaling group discovery is failing with error: Error getting the Autoscaling instances: MissingRegion MissingRegion: could not find region configuration --- cmd/osbuild-worker/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/osbuild-worker/main.go b/cmd/osbuild-worker/main.go index 9494bb44e..655f0fb22 100644 --- a/cmd/osbuild-worker/main.go +++ b/cmd/osbuild-worker/main.go @@ -105,7 +105,7 @@ func setProtection(protected bool) { return } - svc := autoscaling.New(awsSession) + svc := autoscaling.New(awsSession, aws.NewConfig().WithRegion(identity.Region)) // get the autoscaling group info for the auto scaling group name asInstanceInput := &autoscaling.DescribeAutoScalingInstancesInput{