Skip to content

Commit 54e4611

Browse files
author
Alex Hewson
committed
Per recommendations from AWS support, add Allow statement to example VPC endpoint policy and switch S3 endpoint to type 'Gateway'
1 parent 7c1f791 commit 54e4611

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

examples/complete/main.tf

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,9 @@ module "vpc_endpoints" {
106106
s3 = {
107107
service = "s3"
108108
private_dns_enabled = true
109-
dns_options = {
110-
private_dns_only_for_inbound_resolver_endpoint = false
111-
}
112-
tags = { Name = "s3-vpc-endpoint" }
109+
type = "Gateway"
110+
route_table_ids = flatten([module.vpc.intra_route_table_ids, module.vpc.private_route_table_ids, module.vpc.public_route_table_ids])
111+
tags = { Name = "s3-vpc-endpoint" }
113112
},
114113
dynamodb = {
115114
service = "dynamodb"
@@ -210,6 +209,17 @@ data "aws_iam_policy_document" "generic_endpoint_policy" {
210209
values = [module.vpc.vpc_id]
211210
}
212211
}
212+
213+
statement {
214+
effect = "Allow"
215+
actions = ["*"]
216+
resources = ["*"]
217+
218+
principals {
219+
type = "*"
220+
identifiers = ["*"]
221+
}
222+
}
213223
}
214224

215225
resource "aws_security_group" "rds" {

0 commit comments

Comments
 (0)