-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Script for setting up Apigateway base path maping #1247
Conversation
A script for idempotently mapping the AWS Apigateway custom domain name to the Apigateway stage. It should be executed for a first-time deployment after successfully running `make deploy-infra` and `make deploy`.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm starting to worry that we have no tests for this code. I'm aware that it is a helper script, nevertheless I'd feel better if we had a regularly running test that exercised this functionality. Do you have any plans in this respect?
#!/usr/bin/env python | ||
|
||
""" | ||
This script idempotently maps the AWS Apigateway custom domain name to the Apigateway |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Apigateway is a really odd spelling. Amazon API Gateway
is the official spelling.
stage = os.environ['DSS_DEPLOYMENT_STAGE'] | ||
domain_name = os.environ['API_DOMAIN_NAME'] | ||
|
||
APIGATEWAY = boto3.client('apigateway') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: The convention of upper-casing variables referencing boto3 clients objects has no precedence in this project. I would suggest sticking with the existing convention or filing a PR that establishes this convention consistently across the project after motivating it to the team.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Bento007 started upper-casing non-constants so we now have zero an annoying degree of inconsistency.
A script for idempotently mapping the AWS Apigateway custom domain name to the Apigateway stage. It should be executed for a first-time deployment after successfully running
make deploy-infra
andmake deploy
.#connect to #856