Skip to content

Commit

Permalink
feat: Create an endpoint for GuardDuty. (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesiarmes authored Dec 10, 2024
1 parent 72940c9 commit f7c9220
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
This module sets up a standard VPC with public and private subnets, NAT
gateway(s), service endpoints, and routing.

Creates endpoints for the following services: EC2, S3, SSM
Creates endpoints for the following services: EC2, GuardDuty, S3, SSM

## Usage

Expand All @@ -15,7 +15,7 @@ and private subnets, you could use the following configuration:

```hcl
module "vpc" {
source = "github.com/codeforamerica/tofu-modules-aws-vpc?ref=1.0.0"
source = "github.com/codeforamerica/tofu-modules-aws-vpc?ref=1.1.0"
project = "my-project"
environment = "dev"
Expand Down
6 changes: 6 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,12 @@ module "endpoints" {
subnet_ids = module.vpc.private_subnets
private_dns_enabled = true
},
guardduty = {
service = "guardduty-data"
tags = { Name = "${local.prefix}-guardduty" }
subnet_ids = module.vpc.private_subnets
private_dns_enabled = true
}
}

tags = var.tags
Expand Down

0 comments on commit f7c9220

Please sign in to comment.