- Newest
- Most votes
- Most comments
There could be few reasons for the issue.
- Make sure the IAM role or user that is deploying the stack has the correct permissions to deploy MongoDB.
- Make sure the Org ID has correct value
- Check CloudTrail for the IAM role that is deploying the stack in case it has failures.
- Make sure Atlas API keys are correct
Reference : https://www.mongodb.com/developer/products/atlas/deploy-mongodb-atlas-aws-cloudformation/
When encountering a CloudFormation stack creation failure with an "Internal Failure" message after running for about 30 minutes, there are several steps you can take to troubleshoot the issue:
-
Check the CloudFormation Events tab: Look for more detailed error messages or status updates that might provide insight into what's causing the failure.
-
Examine CloudTrail logs: These logs might contain more detailed information about the API calls made during the stack creation process, which could reveal the root cause of the failure.
-
Verify your template: Use the AWS CloudFormation Linter (cfn-lint) to validate your template before deployment. This can help catch syntax errors or other issues that might not be immediately apparent.
-
Check resource limits: Ensure you haven't reached any account or regional limits for the resources you're trying to create.
-
Verify permissions: Make sure the IAM role or user executing the CloudFormation template has sufficient permissions to create all the specified resources.
-
Investigate regional issues: Since you're using MongoDB Atlas resources, check if there are any known issues or limitations in the region you're deploying to.
-
Review MongoDB Atlas specific settings: Ensure that the ProjectId, OrgId, and other MongoDB Atlas specific parameters are correct and that your Atlas account has the necessary permissions and capacity to create the specified resources.
-
Use the CloudFormation console's "Detect root cause" feature: This can help identify the specific resource causing the failure.
-
Consider breaking down the template: If possible, try deploying smaller parts of your template separately to isolate the problematic resource.
-
Check for resource dependencies: Ensure that all necessary dependencies are properly defined in your template, especially for custom resources like MongoDB Atlas resources.
If these steps don't reveal the cause of the failure, you may need to contact AWS Support for further assistance, especially given the involvement of third-party resources (MongoDB Atlas) in your template.
Sources
Cloud Formation deployment failing due to "Internal Error" | AWS re:Post
Troubleshoot failure to create nested stack | AWS re:Post
Relevant content
- AWS OFFICIALUpdated 9 months ago

What Org ID should I use? The MongoDB Atlas template states it should be a "Unique 24-hexadecimal digit string that identifies your organization" but the Organization ID I see in AWD Organizations is a 12 digit string.
Link to the template - https://github.com/mongodb/mongodbatlas-cloudformation-resources/blob/master/examples/cluster/project-cluster.json