Skip to content

Commit

Permalink
chore(ec2): add GuardDuty Interface VPC Endpoint (#31477)
Browse files Browse the repository at this point in the history
### Issue # (if applicable)

None

### Reason for this change

GuardDuty supports private link access but AWS CDK does not support creating an interface VPC endpoint for GuardDuty.

### Description of changes

Add Interface VPC Endpoint for AWS GuardDuty.

### Description of how you validated changes

I executed the AWS CLI command as shown below.
```sh
❯ aws ec2 describe-vpc-endpoint-services --filters Name=service-type,Values=Interface Name=owner,Values=amazon --region us-east-1 --query ServiceNames | grep guardduty
    "com.amazonaws.us-east-1.guardduty", // added
    "com.amazonaws.us-east-1.guardduty-data", // added
    "com.amazonaws.us-east-1.guardduty-data-fips",
    "com.amazonaws.us-east-1.guardduty-fips",
```

### Checklist
- [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md)

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
badmintoncryer authored Sep 19, 2024
1 parent 0fdd6a9 commit 70beb6a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/aws-cdk-lib/aws-ec2/lib/vpc-endpoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,8 @@ export class InterfaceVpcEndpointAwsService implements IInterfaceVpcEndpointServ
public static readonly GRAFANA = new InterfaceVpcEndpointAwsService('grafana');
public static readonly GRAFANA_WORKSPACE = new InterfaceVpcEndpointAwsService('grafana-workspace');
public static readonly GROUNDSTATION = new InterfaceVpcEndpointAwsService('groundstation');
public static readonly GUARDDUTY = new InterfaceVpcEndpointAwsService('guardduty');
public static readonly GUARDDUTY_FIPS = new InterfaceVpcEndpointAwsService('guardduty-fips');
public static readonly GUARDDUTY_DATA = new InterfaceVpcEndpointAwsService('guardduty-data');
public static readonly GUARDDUTY_DATA_FIPS = new InterfaceVpcEndpointAwsService('guardduty-data-fips');
public static readonly HEALTH_IMAGING = new InterfaceVpcEndpointAwsService('medical-imaging');
Expand Down

0 comments on commit 70beb6a

Please sign in to comment.