-
Couldn't load subscription status.
- Fork 15
infra(openchallenges): deploy VPC, NAT, ALB, ECS cluster and nginx as a web app for testing #3593
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
base: main
Are you sure you want to change the base?
infra(openchallenges): deploy VPC, NAT, ALB, ECS cluster and nginx as a web app for testing #3593
Conversation
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.
Did created all of those contructs yourself? or did you get them from a vetted source? if it's from another source then it would be good to reference the sources. At this point I'm not sure whether i should even review those constructs.
@zaro0508 I created them my self. This change aligns with AWS CDK's recommended patterns where Constructs are the building blocks and Stacks (the approach taken in the current OC CDK app) are the deployment containers. |
I’m curious, was there a reason you chose to implement all of them yourself instead of looking for equivalent constructs on the AWS Construct Hub? Using publicly available constructs, especially ones from AWS, can often be a better option since they’ve already been tested and vetted by other users. Also, I wanted to clarify your intention regarding these constructs — are they meant to be shared across multiple projects beyond openchallenges? There doesn't seem to be any versioning in place for these constructs, so if multiple projects start using them, changes to the constructs specific for openchallenges could unintentionally break other projects. It would be worth thinking about a versioning strategy if these are intended to be shared. |
Description
This PR implements the core infrastructure components for deploying OpenChallenges applications using AWS CDK, establishing a production-ready foundation for container-based deployments. The implementation includes a complete VPC setup with cost-optimized NAT Gateway configuration, Application Load Balancer integration, ECS cluster management, and Fargate service orchestration. This work builds upon the initial CDK setup and represents a significant milestone in migrating OpenChallenges infrastructure to Infrastructure as Code using AWS CDK.
TODO
cdk.jsonRelated Issue
Related to OpenChallenges CDK migration efforts
Changelog
Testing
Login into an AWS profile that provides the
Developerrole for theorg-sagebase-openchallenges-devAWS account.Deploy the dev stack:
Copy the value of the CDK app output
openchallenges-dev-{developer}-app-service.AppUrland enter it into a browser.Destroy the stack:
Preview
Features
The OpenChallenges infrastructure now has: