Skip to content

(ec2): add codeartifact api and respository to InterfaceVpcEndpointAwsService #21402

@michaeldrey

Description

@michaeldrey

Describe the feature

I would like to add the following to the InterfaceVpcEndpointAwsService:

    declare const vpc: ec2.Vpc;

    new ec2.InterfaceVpcEndpoint(
      this,
      'VpcEndpoint',
      {
        vpc: vpc,
        service: ec2.InterfaceVpcEndpointAwsService.CODEARTIFACT_API,  // Does not exist
      }
    );

OR

    declare const vpc: ec2.Vpc;

    new ec2.InterfaceVpcEndpoint(
      this,
      'VpcEndpoint',
      {
        vpc: vpc,
        service: ec2.InterfaceVpcEndpointAwsService.CODEARTIFACT_REPOSITORIES,  // Does not exist
      }
    );

Use Case

I have to write out each of these endpoints separately from the existing ones, like so:

    this.vpc.addInterfaceEndpoint('AWSEndpointCodeArtifact', {
      service: {
        name: 'com.amazonaws.us-west-2.codeartifact.repositories',
        port: 443,
      },
      privateDnsEnabled: true,
    });
    this.vpc.addInterfaceEndpoint('AWSEndpointCodeArtifactApi', {
      service: {
        name: 'com.amazonaws.us-west-2.codeartifact.api',
        port: 443,
      },
      privateDnsEnabled: true,
    });

Proposed Solution

I have opened a PR for this feature #21401

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CDK version used

^2.21.0

Environment details (OS name and version, etc.)

MacOS 12.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-ec2Related to Amazon Elastic Compute Cloudeffort/smallSmall work item – less than a day of effortfeature-requestA feature should be added or improved.p2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions