AMILookup / amilookup.com

amilookup.com front end code
http://www.amilookup.com
GNU General Public License v3.0
1 stars 0 forks source link

Update API Gateway url in main.js to be dynamic. #33

Closed lordmuffin closed 5 years ago

lordmuffin commented 5 years ago

This needs to come over dynamically from cloudformation. Likely an output will have to be added for apigateway url.

lordmuffin commented 5 years ago

This is now dynamically updated by using awscli to enumerate CloudFormation stack Outputs. It then maps that to a variable. Using sed it replaces the existing api url with the variable one.

This will break in the future if we stop using the dev api with execute-api url string. But for now i think its fine.