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 CDK Fargate deployed Grimoire Lab. #659

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

andrew-mclachlan
Copy link

@andrew-mclachlan andrew-mclachlan commented Apr 13, 2024

Special thanks to @itrich for guideance on an AWS deployment of Grimoire.

The following changes add basic support for hosting Grimoire on AWS with Fargate.

This PR has limitations. It relies on all configuration files (e.g., default-grimoirelab-settings/projects.json) being included in the Docker Images. This configuration has not been setup for EFS volume mounts or the use of AWS S3. More changes will follow which add better support for using RDS and EFS volume mounts.

This is my first Grimoire PR, so working through the process. Feedback most welcome. Tag @GeorgLink.

Signed-off-by: Andrew McLachlan <andrew.mclachlan@me.com>
This was referenced Apr 13, 2024
@GeorgLink
Copy link
Member

Thank you!

I will leave the review to @jjmerchante, @zhquan, or @sduenas

@sduenas
Copy link
Member

sduenas commented Apr 15, 2024

Thanks for your PR, @andrew-mclachlan . We're going to need some time to understand it before we merge it. My knowledge about AWS is limited.

@andrew-mclachlan
Copy link
Author

andrew-mclachlan commented Apr 15, 2024

We're going to need some time to understand it before we merge it. My knowledge about AWS is limited.

Not a problem. Happy to help!

You can find some background on this PR on https://chaoss-workspace.slack.com/archives/C022NPTPC8Z/p1708895468075019. Happy to have a call to walk through this setup if that would be helpful too. @itrich has a similar deployment with Terraform, so might be able to offer support here too.

In a nutshell, this PR setups a VPC with Subnets, a Docker Registry for hosting Images (although they could live on Docker Hub), and it runs the Docker images/containers as a tasks/services on AWS Fargate.

What I've not included here (I'll update the README) is once the IaaC has been deployed on AWS and the services are running, then you just need to push a new image(s) to the registry and run a CLI command (e.g., aws ecs update-service with options) to pull the new image and spin it up as a container.

@andrew-mclachlan
Copy link
Author

Created a separate repo https://github.com/andrew-mclachlan/grimoirelab-aws-cdk @sduenas.

@andrew-mclachlan
Copy link
Author

Hi @GeorgLink / @sduenas -

@itrich suggested maybe this PR becomes the separate repo and a mention of it in a section within community_components.md or some such. This AWS CDK deployment is presently being used for our hosted Grimoire, so hopefully useful to others? I'll defer to yourselves about this PR. Close? Change? Merge?

Thanks!

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.

None yet

3 participants