CrowdStrike / falcon-integration-gateway

Falcon Integration Gateway (FIG)
The Unlicense
17 stars 17 forks source link

fix(aws): fixes ec2.client instantiation with no region + updated region handling #167

Closed carlosmmatos closed 9 months ago

carlosmmatos commented 9 months ago

This PR fixes an issue were when creating an ec2 client, a boto exception would occur because no region was passed in. Since we are already getting a region from the config, using this fixes the issue.

On top of that, the existing way we were using config.get('aws', 'region') all over the place didn't make sense. So now we initialize it and use it accordingly.