Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue when creating VPC endpoint with MwsVpcEndpoint #336

Closed
ruaraikirkds opened this issue Feb 8, 2024 · 2 comments
Closed

Issue when creating VPC endpoint with MwsVpcEndpoint #336

ruaraikirkds opened this issue Feb 8, 2024 · 2 comments
Assignees
Labels
awaiting-feedback Blocked on input from the author impact/usability Something that impacts users' ability to use the product easily and intuitively kind/bug Some behavior is incorrect or out of spec resolution/no-repro This issue wasn't able to be reproduced

Comments

@ruaraikirkds
Copy link

ruaraikirkds commented Feb 8, 2024

What happened?

Hello team!

I am running into an unexpected error when creating a Databricks VPC Endpoint using MwsVpcEndpoint from the @pulumi/databricks npm package as suggested in the reference docs.

The error is quite vague so hoping for a little clarity as to whether this is a bug or an issue on my end. Please see below for simplified code for explanation.

Thanks!

Example

import * as aws from '@pulumi/aws';
import * as databricks from '@pulumi/databricks';
...

       const vpcEndpoint = new aws.ec2.VpcEndpoint(
            'vpc-endpoint',
            {
                privateDnsEnabled: true,
                securityGroupIds: ['some-group-id'],
                serviceName: 'some-name',
                subnetIds: ['some-subnet-id'],
                tags: {
                    Name: 'vpc-endpoint',
                },
                vpcEndpointType: 'Interface',
                vpcId: 'some-vpc-id',
            },
            {
                provider: awsProvider,
            },
        );

        const workspaceVpcEndpoint = new databricks.MwsVpcEndpoint(
            'workspace-vpc-endpoint',
            {
                accountId: 'my-account-id',
                awsAccountId: 'my-aws-account-id',
                awsVpcEndpointId: vpcEndpoint.id, // The identifier of the VPC endpoint.
                region: 'us-east-1',
                vpcEndpointName: 'workspace-vpc-endpoint',
            },
            {
                provider: databricksProvider,
            },
        );

When running pulumi up, the following error is returned:

databricks:index:MwsVpcEndpoint (workspace-vpc-endpoint):
    error: 1 error occurred:
    	* cannot create mws vpc endpoint: Invalid endpoint

The AWS resource is created and passes a valid id to MwsVpcEndpoint, and I have created a VPC endpoint in the Databricks UI with the AWS VPC endpoint id and it creates fine.

For instance, when i manually created a VPC endpoint, then ran pulumi up I get the following:

Diagnostics:
  databricks:index:MwsVpcEndpoint (workspace-rest-apis-endpoint):
    error: 1 error occurred:
        * cannot create mws vpc endpoint: MALFORMED_REQUEST: A VPCEndpoint with aws_vpc_endpoint_id vpce-iwebfipuwerbfpiuwebfiuwebfwiu already exists.

Output of pulumi about

CLI
Version 3.93.0
Go Version go1.21.3
Go Compiler gc

Plugins
NAME VERSION
nodejs unknown

Host
OS darwin
Version 14.3
Arch arm64

Additional context

No response

Contributing

Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

@ruaraikirkds ruaraikirkds added kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team labels Feb 8, 2024
@t0yv0 t0yv0 removed the needs-triage Needs attention from the triage team label Feb 8, 2024
@t0yv0
Copy link
Member

t0yv0 commented Feb 8, 2024

Thank you for reporting this @ruaraikirkds , I am sorry the error message is not informative. I'm going to keep this in the backlog for our team to pick up as capacity permits.

I cannot spot the issue at a glance, but in the meanwhile perhaps you can try getting a working starting example the might help avoid the error.

Unfortunately it looks like the Pulumi documentation page does not list examples for this resource at the moment: https://www.pulumi.com/registry/packages/databricks/api-docs/mwsvpcendpoint/

But there are some examples that could potentially be translated from the TF reference page:
https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/mws_vpc_endpoint

There is also Pulumi AI that sometimes is a good source of example code.

@t0yv0 t0yv0 added the impact/usability Something that impacts users' ability to use the product easily and intuitively label Feb 8, 2024
@mjeffryes
Copy link
Member

Unfortunately, it looks like this issue hasn't seen any updates in a while. If you're still encountering this problem, could you leave a quick comment to let us know so we can prioritize it? (Commenting will bump it back into our triage queue.)

@mjeffryes mjeffryes added the awaiting-feedback Blocked on input from the author label Sep 27, 2024
@mjeffryes mjeffryes added the resolution/no-repro This issue wasn't able to be reproduced label Oct 25, 2024
@mjeffryes mjeffryes self-assigned this Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-feedback Blocked on input from the author impact/usability Something that impacts users' ability to use the product easily and intuitively kind/bug Some behavior is incorrect or out of spec resolution/no-repro This issue wasn't able to be reproduced
Projects
None yet
Development

No branches or pull requests

3 participants