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

Add CloudFormation template to deploy signed API #122

Merged
merged 6 commits into from
Nov 22, 2023
Merged

Conversation

Siegrift
Copy link
Collaborator

@Siegrift Siegrift commented Nov 21, 2023

Closes #84

Rationale

Because we already have a pusher CF template it makes sense to also base the signed API deployment on that. The signed API needs to be accessible from outside, which means it needs more configuration. Notably, we need load balancer and two subnets (AWS requires subnets in at least two zones). I read a bit about best practices and the final result is similar to this nicely written article (sidenote: I couldn't make their example work).

I verified the deployment by deploying both Pusher and Signed API on AWS, see this commit. The API is accessible here (but will be killed in some time).

Removal of port

Because we need to configure the load balancer to forward incoming requests to the service we need to know the port number. However, the port number of signed API is configurable. This is arguably confusing because when the service is run inside docker, users can re-publish to any port number on the host machine. Configuring port is then only useful for development server, which we can fix separately. So in short, we hardcode the port number of signed API in docker to port 80.

Other remarks

@Siegrift Siegrift self-assigned this Nov 21, 2023
@Siegrift Siegrift mentioned this pull request Nov 21, 2023
@metobom
Copy link
Member

metobom commented Nov 21, 2023

Where do I see the Signed API's URL when I successfully deploy?

Copy link
Member

@metobom metobom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Siegrift Siegrift force-pushed the deployment-template branch from be5c1b1 to 484d93b Compare November 22, 2023 18:04
@Siegrift Siegrift force-pushed the deployment-template branch from 484d93b to bf6d0f3 Compare November 22, 2023 18:07
@Siegrift Siegrift merged commit a3e59ca into main Nov 22, 2023
4 checks passed
@Siegrift Siegrift deleted the deployment-template branch November 22, 2023 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create instructions how to deploy signed API on cloud
3 participants