Skip to content

Commit 13ae61f

Browse files
authored
Merge branch 'master' into master
2 parents 27a9dd4 + 7534556 commit 13ae61f

File tree

4 files changed

+29
-10
lines changed

4 files changed

+29
-10
lines changed

CHANGELOG.md

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ All notable changes to this project will be documented in this file.
77

88

99

10+
<a name="v2.65.0"></a>
11+
## [v2.65.0] - 2021-01-14
12+
13+
- feat: Adding vpc_flow_log_permissions_boundary ([#536](https://github.com/terraform-aws-modules/terraform-aws-vpc/issues/536))
14+
15+
1016
<a name="v2.64.0"></a>
1117
## [v2.64.0] - 2020-11-04
1218

@@ -982,13 +988,13 @@ All notable changes to this project will be documented in this file.
982988
- Reverted bad merge, fixed [#33](https://github.com/terraform-aws-modules/terraform-aws-vpc/issues/33)
983989

984990

985-
<a name="v1.5.0"></a>
986-
## [v1.5.0] - 2017-11-23
991+
<a name="v1.5.1"></a>
992+
## [v1.5.1] - 2017-11-23
987993

988994

989995

990-
<a name="v1.5.1"></a>
991-
## [v1.5.1] - 2017-11-23
996+
<a name="v1.5.0"></a>
997+
## [v1.5.0] - 2017-11-23
992998

993999
- Reverted bad merge, fixed [#33](https://github.com/terraform-aws-modules/terraform-aws-vpc/issues/33)
9941000
- Set enable_dns_support=true by default
@@ -1061,7 +1067,8 @@ All notable changes to this project will be documented in this file.
10611067
- Initial commit
10621068

10631069

1064-
[Unreleased]: https://github.com/terraform-aws-modules/terraform-aws-vpc/compare/v2.64.0...HEAD
1070+
[Unreleased]: https://github.com/terraform-aws-modules/terraform-aws-vpc/compare/v2.65.0...HEAD
1071+
[v2.65.0]: https://github.com/terraform-aws-modules/terraform-aws-vpc/compare/v2.64.0...v2.65.0
10651072
[v2.64.0]: https://github.com/terraform-aws-modules/terraform-aws-vpc/compare/v2.63.0...v2.64.0
10661073
[v2.63.0]: https://github.com/terraform-aws-modules/terraform-aws-vpc/compare/v2.62.0...v2.63.0
10671074
[v2.62.0]: https://github.com/terraform-aws-modules/terraform-aws-vpc/compare/v2.61.0...v2.62.0
@@ -1198,9 +1205,9 @@ All notable changes to this project will be documented in this file.
11981205
[v1.8.0]: https://github.com/terraform-aws-modules/terraform-aws-vpc/compare/v1.7.0...v1.8.0
11991206
[v1.7.0]: https://github.com/terraform-aws-modules/terraform-aws-vpc/compare/v1.6.0...v1.7.0
12001207
[v1.6.0]: https://github.com/terraform-aws-modules/terraform-aws-vpc/compare/v1.4.1...v1.6.0
1201-
[v1.4.1]: https://github.com/terraform-aws-modules/terraform-aws-vpc/compare/v1.5.0...v1.4.1
1202-
[v1.5.0]: https://github.com/terraform-aws-modules/terraform-aws-vpc/compare/v1.5.1...v1.5.0
1203-
[v1.5.1]: https://github.com/terraform-aws-modules/terraform-aws-vpc/compare/v1.4.0...v1.5.1
1208+
[v1.4.1]: https://github.com/terraform-aws-modules/terraform-aws-vpc/compare/v1.5.1...v1.4.1
1209+
[v1.5.1]: https://github.com/terraform-aws-modules/terraform-aws-vpc/compare/v1.5.0...v1.5.1
1210+
[v1.5.0]: https://github.com/terraform-aws-modules/terraform-aws-vpc/compare/v1.4.0...v1.5.0
12041211
[v1.4.0]: https://github.com/terraform-aws-modules/terraform-aws-vpc/compare/v1.3.0...v1.4.0
12051212
[v1.3.0]: https://github.com/terraform-aws-modules/terraform-aws-vpc/compare/v1.2.0...v1.3.0
12061213
[v1.2.0]: https://github.com/terraform-aws-modules/terraform-aws-vpc/compare/v1.1.0...v1.2.0

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,10 @@ You can add additional tags with `intra_subnet_tags` as with other subnet types.
161161

162162
VPC Flow Log allows to capture IP traffic for a specific network interface (ENI), subnet, or entire VPC. This module supports enabling or disabling VPC Flow Logs for entire VPC. If you need to have VPC Flow Logs for subnet or ENI, you have to manage it outside of this module with [aws_flow_log resource](https://www.terraform.io/docs/providers/aws/r/flow_log.html).
163163

164+
### Permissions Boundary
165+
166+
If your organization requires a permissions boundary to be attached to the VPC Flow Log role, make sure that you specify an ARN of the permissions boundary policy as `vpc_flow_log_permissions_boundary` argument. Read more about required [IAM policy for publishing flow logs](https://docs.aws.amazon.com/vpc/latest/userguide/flow-logs-cwl.html#flow-logs-iam).
167+
164168
## Conditional creation
165169

166170
Sometimes you need to have a way to create VPC resources conditionally but Terraform does not allow to use `count` inside `module` block, so the solution is to specify argument `create_vpc`.
@@ -637,6 +641,7 @@ It is possible to integrate this VPC module with [terraform-aws-transit-gateway
637641
| transferserver\_endpoint\_security\_group\_ids | The ID of one or more security groups to associate with the network interface for Transfer Server endpoint | `list(string)` | `[]` | no |
638642
| transferserver\_endpoint\_subnet\_ids | The ID of one or more subnets in which to create a network interface for Transfer Server endpoint. Only a single subnet within an AZ is supported. If omitted, private subnets will be used. | `list(string)` | `[]` | no |
639643
| vpc\_endpoint\_tags | Additional tags for the VPC Endpoints | `map(string)` | `{}` | no |
644+
| vpc\_flow\_log\_permissions\_boundary | The ARN of the Permissions Boundary for the VPC Flow Log IAM Role | `string` | `null` | no |
640645
| vpc\_flow\_log\_tags | Additional tags for the VPC Flow Logs | `map(string)` | `{}` | no |
641646
| vpc\_tags | Additional tags for the VPC | `map(string)` | `{}` | no |
642647
| vpn\_gateway\_az | The Availability Zone for the VPN Gateway | `string` | `null` | no |

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2135,6 +2135,12 @@ variable "vpc_flow_log_tags" {
21352135
default = {}
21362136
}
21372137

2138+
variable "vpc_flow_log_permissions_boundary" {
2139+
description = "The ARN of the Permissions Boundary for the VPC Flow Log IAM Role"
2140+
type = string
2141+
default = null
2142+
}
2143+
21382144
variable "enable_dhcp_options" {
21392145
description = "Should be true if you want to specify a DHCP options set with a custom domain name, DNS servers, NTP servers, netbios servers, and/or netbios server type"
21402146
type = bool

vpc-flow-logs.tf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,9 @@ resource "aws_cloudwatch_log_group" "flow_log" {
4545
resource "aws_iam_role" "vpc_flow_log_cloudwatch" {
4646
count = local.create_flow_log_cloudwatch_iam_role ? 1 : 0
4747

48-
name_prefix = "vpc-flow-log-role-"
49-
assume_role_policy = data.aws_iam_policy_document.flow_log_cloudwatch_assume_role[0].json
48+
name_prefix = "vpc-flow-log-role-"
49+
assume_role_policy = data.aws_iam_policy_document.flow_log_cloudwatch_assume_role[0].json
50+
permissions_boundary = var.vpc_flow_log_permissions_boundary
5051

5152
tags = merge(var.tags, var.vpc_flow_log_tags)
5253
}

0 commit comments

Comments
 (0)