mongodb / awscdk-resources-mongodbatlas

MongoDB Atlas AWS CDK Resources
Apache License 2.0
35 stars 17 forks source link

CfnPrivateEndpoint for a dedicated cluster or serverless instance #110

Closed pahud closed 1 year ago

pahud commented 1 year ago

According to the document, the private endpoint could for a dedicated cluster or a serverless instance.

Looking at CfnPrivateEndpoint, it's not clear to me how to control if it's provisioned for a dedicated cluster or a serverless instance.

If I create a PrivateEndpoint like this:

  EndpointEEF1FD8F:
    Type: MongoDB::Atlas::PrivateEndpoint
    Properties:
      Profile: my-mongo-profile
      GroupId:
        Fn::GetAtt:
          - ServerlessInstanceprojectServerlessInstanceFFBB5263
          - Id
      Region: us-east-1
      PrivateEndpoints:
        - VpcId: vpc-1f5b7e78
          SubnetIds:
            - subnet-071c85610846aa9c0
            - subnet-0ef7ac49e1edb06e4
            - subnet-0e2177a10a166f87d

And check the console, it 's actually a private endpoint for a dedicated cluster.

image

Please clarify how to create a private endpoint for a serverless instance instead.

To Reproduce Steps to reproduce the behavior: Create the CfnPrivateEndpoint as provided in:

https://github.com/mongodb/awscdk-resources-mongodbatlas/blob/257987ec6132bdffaf929fe8c9a80b7936e3ffd9/examples/l1-resources/private-endpoint.ts#L13-L30

Expected behavior To clarify how to control whether it's for a dedicated cluster or a serverless instance.

Screenshots If applicable, add screenshots to help explain your problem.

Please complete the following information:

Additional context Add any other context about the problem here.

github-actions[bot] commented 1 year ago

Thanks for opening this issue. The ticket INTMDB-994 was created for internal tracking.

Adelmar92 commented 1 year ago

hello @pahud we have the Serverless Private Endpoint in a separated resource, we are planning to start with the development within the next weeks.

pahud commented 1 year ago

@Adelmar92 Awesome! I got it. Thank you.

Adelmar92 commented 1 year ago

hello @pahud i inform you that the CloudFormation resource and CDK named MongoDB::Atlas::ServerlessPrivateEndpoint has been already deployed

florianbepunkt commented 1 year ago

@Adelmar92 When will this be published? The issue is closed, but currently the problem still exists. Current version 1.2.0 does not offer a CfnServerlessPrivateEndpoint. Please advise.