Skip to content

Commit b0a467f

Browse files
committed
Misc cleanup
1 parent 7206db4 commit b0a467f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

manager/create_gateway_integration.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ def get_listener_arn(elb_arn, client_elb):
5252
for listener in listener_page["Listeners"]:
5353
if listener["Port"] == 80:
5454
return listener["ListenerArn"]
55-
raise Exception("Could not find ELB port 80 listener")
55+
raise Exception(f"Could not find port 80 listener on elb {elb_arn}")
5656

5757

58-
def create_gateway_intregration(api_id, vpc_link_id):
58+
def create_gateway_integration(api_id, vpc_link_id):
5959
client_elb = boto3.client("elbv2", region_name=os.environ["CORTEX_REGION"])
6060
client_apigateway = boto3.client("apigatewayv2", region_name=os.environ["CORTEX_REGION"])
6161

@@ -76,4 +76,4 @@ def create_gateway_intregration(api_id, vpc_link_id):
7676
if __name__ == "__main__":
7777
api_id = str(sys.argv[1])
7878
vpc_link_id = str(sys.argv[2])
79-
create_gateway_intregration(api_id, vpc_link_id)
79+
create_gateway_integration(api_id, vpc_link_id)

manager/install.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,7 @@ function create_vpc_link() {
356356
fi
357357
}
358358

359+
# must be called after create_vpc_link() since $vpc_link_id is reused
359360
function create_vpc_link_integration() {
360361
echo -n "○ creating api gateway vpc link integration "
361362
api_id=$(python get_api_gateway_id.py)

0 commit comments

Comments
 (0)