Skip to content

Commit

Permalink
Run terrafmt.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kit Ewbank authored and Kit Ewbank committed May 30, 2019
1 parent ec9dcbf commit 86a58bf
Showing 1 changed file with 29 additions and 19 deletions.
48 changes: 29 additions & 19 deletions aws/resource_aws_vpc_endpoint_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -495,8 +495,9 @@ resource "aws_subnet" "foo" {
data "aws_region" "current" {}
resource "aws_vpc_endpoint" "s3" {
vpc_id = "${aws_vpc.foo.id}"
service_name = "com.amazonaws.${data.aws_region.current.name}.s3"
vpc_id = "${aws_vpc.foo.id}"
service_name = "com.amazonaws.${data.aws_region.current.name}.s3"
route_table_ids = [
"${aws_route_table.default.id}",
]
Expand Down Expand Up @@ -605,9 +606,10 @@ data "aws_security_group" "default" {
data "aws_region" "current" {}
resource "aws_vpc_endpoint" "ec2" {
vpc_id = "${aws_vpc.foo.id}"
service_name = "com.amazonaws.${data.aws_region.current.name}.ec2"
vpc_endpoint_type = "Interface"
vpc_id = "${aws_vpc.foo.id}"
service_name = "com.amazonaws.${data.aws_region.current.name}.ec2"
vpc_endpoint_type = "Interface"
security_group_ids = [
"${data.aws_security_group.default.id}",
]
Expand Down Expand Up @@ -700,16 +702,19 @@ resource "aws_security_group" "sg2" {
}
resource "aws_vpc_endpoint" "ec2" {
vpc_id = "${aws_vpc.foo.id}"
service_name = "com.amazonaws.${data.aws_region.current.name}.ec2"
vpc_endpoint_type = "Interface"
subnet_ids = [
vpc_id = "${aws_vpc.foo.id}"
service_name = "com.amazonaws.${data.aws_region.current.name}.ec2"
vpc_endpoint_type = "Interface"
subnet_ids = [
"${aws_subnet.sn1.id}",
]
security_group_ids = [
security_group_ids = [
"${aws_security_group.sg1.id}",
"${aws_security_group.sg2.id}",
]
private_dns_enabled = false
}
`, rName)
Expand Down Expand Up @@ -778,17 +783,20 @@ resource "aws_security_group" "sg2" {
}
resource "aws_vpc_endpoint" "ec2" {
vpc_id = "${aws_vpc.foo.id}"
service_name = "com.amazonaws.${data.aws_region.current.name}.ec2"
vpc_endpoint_type = "Interface"
subnet_ids = [
vpc_id = "${aws_vpc.foo.id}"
service_name = "com.amazonaws.${data.aws_region.current.name}.ec2"
vpc_endpoint_type = "Interface"
subnet_ids = [
"${aws_subnet.sn1.id}",
"${aws_subnet.sn2.id}",
"${aws_subnet.sn3.id}",
]
security_group_ids = [
security_group_ids = [
"${aws_security_group.sg1.id}",
]
private_dns_enabled = true
}
`, rName)
Expand Down Expand Up @@ -863,12 +871,14 @@ resource "aws_security_group" "sg1" {
}
resource "aws_vpc_endpoint" "foo" {
vpc_id = "${aws_vpc.foo.id}"
service_name = "${aws_vpc_endpoint_service.foo.service_name}"
vpc_endpoint_type = "Interface"
security_group_ids = [
vpc_id = "${aws_vpc.foo.id}"
service_name = "${aws_vpc_endpoint_service.foo.service_name}"
vpc_endpoint_type = "Interface"
security_group_ids = [
"${aws_security_group.sg1.id}",
]
private_dns_enabled = false
auto_accept = true
}
Expand Down

0 comments on commit 86a58bf

Please sign in to comment.