Skip to content
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

api-gateway ALB #1166

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions projects/elife.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,30 @@ api-gateway:
dataset: staging
gcslogging:
bucket: staging-elife-fastly
lb:
fastly: false
ec2:
cluster-size: 2
alb:
listeners:
listener1:
protocol: http
port: 80
forward: target-group1
listener2:
protocol: https
port: 443
forward: target-group1
target_groups:
target-group1:
protocol: http
port: 80
healthcheck:
path: /ping
timeout: 4
interval: 5
unhealthy_threshold: 2
healthy_threshold: 2
prod:
# unique because: 'fastly.subdomains' contains static values.
unique: true
Expand Down Expand Up @@ -2176,6 +2200,8 @@ firewall:
- arn:aws:elasticloadbalancing:us-east-1:512686554592:loadbalancer/app/journal--continuumtest/227b8db4a52cc218
# lsh@2021-11-23: disabled https://github.com/elifesciences/issues/issues/7089
#- arn:aws:elasticloadbalancing:us-east-1:512686554592:loadbalancer/app/journal--end2end/0791eb8462a24c37
# temporary
- arn:aws:elasticloadbalancing:us-east-1:512686554592:loadbalancer/app/api-gateway--elbtest2/e3fa0e0a8d7bddd8
custom-rules:
- elife-Whitelist.json # priority 0
- elife-Blacklist.json # priority 15
Expand Down
3 changes: 2 additions & 1 deletion src/cfn.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,8 @@ def generate_stack_from_input(pname, instance_id=None, alt_config=None):
LOG.info('wrote: %s' % os.path.abspath(terraform_file))

# see: `buildercore.config.BUILDER_NON_INTERACTIVE` for skipping confirmation prompts
utils.confirm('the above resources will be created')
if not utils.confirm('the above resources will be created', 'confirm'):
raise TaskExit('failed to confirm')

return stackname

Expand Down