question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can not create docdb cluster within non-default VPC

See original GitHub issue

Reproduction Steps

Error Log

Environment

  • CLI Version :
  • Framework Version:
  • OS :
  • Language :

Other


This is 🐛 Bug Report

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
siyuanhcommented, Jan 31, 2020

Okay the problem is solved, but I think it needs to be well documented The problem is when I create the subnet group I need to explicitly give a name like this

        docdb_subnet_group = docdb.CfnDBSubnetGroup(
            self, "DocDBSubnets",
            db_subnet_group_description="Subnet group for DocumentDB",
            db_subnet_group_name='fix_is_here',    # must have a name here instead of the default name\
            subnet_ids=list(map(lambda x: x.subnet_id,
                vpc.private_subnets)),
        )
0reactions
lbjaycommented, May 18, 2020

Same here. I don’t know what the underlying issue is, but dbSubnetGroupName is effectively a required prop for creation. Spent a couple hours trying to figure this out before finding this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Creating AWS DocumentDB in non-default VPC
I found the solution: seems like AWS is using the term "Subnet Group" in multiple services. I created the group in the service...
Read more >
Creating an Amazon DocumentDB Cluster
You can only create an Amazon DocumentDB cluster in an Amazon Virtual Private Cloud (Amazon VPC). Your Amazon VPC must have at least...
Read more >
New VPC not showing in selection list for new DocumentDB Cluster ...
I created a new VPC for our pre-production environment and am attempting to create a DocumentDB cluster within it. Per the VPC Prerequisites...
Read more >
non-default-vpc-deployment - tfsec - Aqua Security
Redshift clusters that are created without subnet details will be created in ... Redshift cluster does not benefit from VPC security if it...
Read more >
Do not use default settings of a VPC - Documentation
We recommend you create a non-default hardened VPC that suits its specific networking requirements. Fix - Runtime. CLI Command.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found