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

first pass at MongoDB Atlas via AWS #32

Merged
merged 26 commits into from
Sep 25, 2023
Merged

first pass at MongoDB Atlas via AWS #32

merged 26 commits into from
Sep 25, 2023

Conversation

rkhullar
Copy link
Owner

@rkhullar rkhullar commented Sep 24, 2023

Description

This PR starts support for the MongoDB provider. The construct supports creating either a shared or serverless single region Atlas cluster backed by AWS. And the access module manages network and permissions for the cluster.

Future Work

  • add example usage
  • support dedicated clusters
  • troubleshoot or add note for create_admin variable

Additional Notes

The access_rules are meant to reference IAM role names within a project. For example, if you use "fastapi-lambda" as the role name in the rule, that could reference "${var.project}-fastapi-lambda-{var.environment}-${var.namespace}" depending on your naming convention. I was looking to implement, but it doesn't seem like that's supported. Terraform has a templatefile but not an equivalent function for working with in memory string templates. And there is a data source with the template provider but that has been deprecated in favor of the templatefile function.

@rkhullar rkhullar marked this pull request as ready for review September 25, 2023 02:34
@rkhullar rkhullar changed the title MongoDB Atlas via AWS first pass at mongodb atlas via aws Sep 25, 2023
@rkhullar rkhullar changed the title first pass at mongodb atlas via aws first pass at MongoDB Atlas via AWS Sep 25, 2023
@rkhullar rkhullar merged commit c115c31 into main Sep 25, 2023
@rkhullar rkhullar deleted the feature/atlas branch September 25, 2023 02:49
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.

1 participant