Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/mongodb/mongodbatlas-cloudformation-resources/cfn-resources

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/mongodb/mongodbatlas-cloudformation-resources/cfn-resources

  • v0.0.0-20240514122715-c3d479c31f41
  • Source
  • Go
  • Socket score

Version published
Created
Source

cfn-resources

MongoDB Atlas AWS CloudFormation Custom Resource Type

This folder contains the source code for each of the AWS CloudFormation MongoDB Atlas Resources.

Note these are also hosted on AWS CloudFormation Public Registry under Third Party Extensions.

Resource Status Table

#ResourceStatusExamplesLocal Testing Scripts
1alert-configurationBuildexample./alert-configuration/test
2auditingBuildexample./auditing/test
3cloud-backup-restore-jobsBuildexample./cloud-backup-restore-jobs/test
4cloud-backup-scheduleBuildexample./cloud-backup-schedule/test
5cloud-backup-snapshotBuildexample./cloud-backup-snapshot/test
6cloud-backup-snapshot-export-bucketBuildexample./cloud-backup-snapshot-export-bucket/test
7clusterBuildexample./cluster/test
8custom-dns-configuration-cluster-awsBuildexample./custom-db-role/test
9custom-db-roleBuildexample./custom-dns-configuration-cluster-aws/test
10database-userBuildexample./database-user/test
11datalakesBuildexample./datalakes/test
12encryption-at-restBuildexample./encryption-at-rest/test
13federated-settings-org-role-mappingBuildexample./federated-settings-org-role-mapping/test
14global-cluster-configBuildexample./global-cluster-config/test
15ldap-configurationBuildexample./ldap-configuration/test
16ldap-verifyBuildexample./ldap-verify/test
17maintenance-windowBuildexample./maintenance-window/test
18network-containerBuildexample./network-container/test
19network-peeringBuildexample./network-peering/test
20online-archiveBuildexample./online-archive/test
21org-invitationBuildexample./org-invitation/test
22private-endpointBuildexample./private-endpoint/test
23private-endpoint-adlBuildexample./private-endpoint-adl/test
24private-endpoint-regional-modeBuildexample./private-endpoint-regional-mode/test
25projectBuildexample./project/test
26project-invitationBuildexample./project-invitation/test
27project-ip-access-listBuildexample./project-ip-access-list/test
28search-indexBuildexample./search-indexes/test
29serverless-instanceBuildexample./serverless-instance/test
30teamsBuildexample./teams/test
31third-party-integrationBuildexample files./third-party-integration/test
32triggerBuildexample./trigger/test
33X509AuthenticationDatabaseUserBuildexample./x509-authentication-database-user/test
34federated-database-instanceBuildexample./federated-database-instance/test
35privatelink-endpoint-service-data-federation-online-archiveBuildexample./privatelink-endpoint-service-data-federation-online-archive/test
36federated-query-limitBuildexample./federated-query-limit/test
37serverless-private-endpointBuildexample./serverless-private-endpoint/test
38api-keyBuildexample./api-key/test
39access-list-api-keyBuildexample./access-list-api-key/test
40data-lake-pipelineBuildexample./data-lake-pipeline/test
41organizationBuildexample./organization/test
42cloud-outage-simulationBuildexample./cloud-outage-simulation/test
43private-endpoint-serviceBuildexample./private-endpoint-service/test
44private-endpoint-awsBuildexample./private-endpoint-aws/test
45search-deploymentBuildexample./search-deployment/test
46stream-instanceBuildexample./stream-instance/test
47stream-connectionBuildexample./stream-connection/test
                                                                        |

Legend

BadgeMeaning
BuildGA, production ready
BuildBeta status, stable dev/testing
BuildNot fully tested
BuildBeta status, stable for dev/testing but not only for advanced use
BuildDeprecated

Test framework

Requirements for local dev testing

  • aws cli
  • cfn cli
  • python
  • go
  • bash
  • atlascli (you don't need this but will make testing easier)

How we handle ApiKeys

All apikey are injected through environment variables. We have a helper script which can export your mongocli profile, so this makes it very easy to switch Atlas environments.

To use this, first download and install mongocli. Next, run mongocli config and then;

$source <(./quickstart-mongodb-atlas/scripts/export-mongocli-config.py)
$env | grep ATLAS
MONGODB_ATLAS_PUBLIC_KEY=XXXXXX
MONGODB_ATLAS_PRIVATE_KEY=XXXXXX
MONGODB_ATLAS_ORG_ID=XXXXXX

Deployment.template.yaml

Note: section for project example line #145 contains an s3 bucket configuration string please edit value to S3 bucket that you require --> (SchemaHandlerPackage="s3://replace-placeholder-bucket-name-here/resources/mongodb-atlas-project.zip",)

How tests are structured

Each resource has a folder called test with 3 items:

  1. <resource_name>.sample-cfn-request.json Sample JSON template request to use for local testing with cfn invoke

  2. <resource_name>.create-sample-cfn-request.sh The create-sample-cfn-request script injects parameters into the sample json template. You run this script, passing resource specific parameters, and the tooling will inject ApiKeys based upon the exported configuration from above. See each resource README for specific testing documentation.

  3. <resource_name>.sample-template.yaml Sample real cloudformation template you can run with aws cloudformation create-stack or using ../../quickstart-mongodb-atlas/scripts/launch-x-quickstart.sh See each resource README for specific testing documentation.

FAQs

Package last updated on 14 May 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc