elastic / elastic-serverless-forwarder

Elastic Serverless Forwarder
Other
34 stars 34 forks source link

Issue with region name check in publishing script #726

Open hvltaj opened 1 month ago

hvltaj commented 1 month ago

https://github.com/elastic/elastic-serverless-forwarder/blob/befdd23dca45624b10c18c7d17bc30a87e8d1d1a/publish_lambda.sh#L45

In the publishing script version referenced above, the *"$gov"* if statement evaluates to **, so it always returns S3 bucket ARN configured with "aws-us-gov" region.

I suggest remove $ from the if statement -> *"gov"* or set up gov="gov" before it.