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

AWS Signed API deployment without load balancer #218

Closed
wants to merge 4 commits into from
Closed

Conversation

Siegrift
Copy link
Collaborator

@Siegrift Siegrift commented Feb 3, 2024

Closes #213

Rationale

Unfortunately, It's not possible to have a static IP for AWS Fargate. This means the IP changes after each restart/redeployment and each time we need to update the CDN routing. Also, the IP cannot be listed in CloudFormation output parameters and is only available in the currently deployed task configuration (ES2 -> Clusters -> Services -> Tasks). We can get the URL via AWS CLI though.

If we relax the requirement of static IP we can use the CloudFormation template in this PR. Each Signed API redeployment/restart would require immediate change in CDN distribution, incurring some delay while the update takes place.

During my research I haven't seen other "confirmed" solutions that work around the problem that the IP is bound to the task (not service). I saw threads like this or this which support using the LB for this purpose.

@Siegrift Siegrift self-assigned this Feb 3, 2024
@Siegrift Siegrift added the on hold We do not plan to address this at the moment label Feb 3, 2024
@Siegrift
Copy link
Collaborator Author

Siegrift commented Mar 13, 2024

We have a new CloudFormation template in https://github.com/api3dao/signed-api-deployments together with other CloudFormation files to create notification service, ALB and CloudFront, etc...

It is arguable whether we actually need to have the CloudFormation template in this repo. It might be useful when someone else wants to deploy the Signed API. That said, for that use case we should provide the minimal (unopinionated) deployment setup (e.g. without Loki forwarding). But let's keep this as is for now.

@Siegrift Siegrift closed this Mar 13, 2024
@Siegrift Siegrift deleted the cf-without-elb branch March 13, 2024 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
on hold We do not plan to address this at the moment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Experiment with Signed API without ELB
1 participant