tsgoff / mongodb-demo

MongoDB 5.0 Cluster on AWS Graviton Demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MongoDB

MonngoDB 5.0 Demo on AWS Graviton EC2 instances with GP3 volumes. Deployed with local Puppet apply over CodeDeploy.

Default is 1x c7g.medium. This can be adjusted in ./terraform/env/int/main.tf (instance_count must be odd and max 50)

Show cluster state:

ssh demo@`aws ec2 describe-instances --filters \
  "Name=tag:Name,Values=*mongodb-01*"  \
  "Name=instance-state-name,Values=running" --query \
  "Reservations[*].Instances[*].PublicIpAddress" --output text` \
  "echo 'rs.status()' | mongo"

Inputs

Variables
AWS_DEFAULT_REGION
AWS_ROLE_ARN or AWS_ACCESS_KEY_ID
AWS_EXTERNAL_ID or AWS_SECRET_ACCESS_KEY
PUBLIC_KEY

About

MongoDB 5.0 Cluster on AWS Graviton Demo


Languages

Language:HCL 52.6%Language:Shell 30.3%Language:Puppet 14.8%Language:Ruby 1.4%Language:HTML 0.8%