You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ module "vpc" {
12
12
}
13
13
```
14
14
15
-
Full working references are available at [examples](examples)
15
+
Full working references are available at [examples](examples)
16
16
## Default Resources
17
17
18
18
By default only `vpc_name` is required to be set. Unless changed `aws_region` defaults to `us-west-2` and will need to be updated for other regions. `source` will also need to be declared depending on where the module lives. Given default settings the following resources are created:
@@ -47,12 +47,13 @@ The following module variables were updated to better meet current Rackspace sty
47
47
| Name | Description | Type | Default | Required |
48
48
|------|-------------|------|---------|:-----:|
49
49
| az\_count | Number of AZs to utilize for the subnets |`number`|`2`| no |
50
-
| build\_flow\_logs | Whether or not to build flow log components in cloud watch logs|`bool`|`false`| no |
50
+
| build\_flow\_logs | Whether or not to build flow log components in Cloudwatch Logs|`bool`|`false`| no |
51
51
| build\_igw | Whether or not to build an internet gateway. If disabled, no public subnets or route tables, internet gateway,<br>or NAT Gateways will be created. |`bool`|`true`| no |
52
52
| build\_nat\_gateways | Whether or not to build a NAT gateway per AZ. if `build_igw` is set to false, this value is ignored. |`bool`|`true`| no |
53
53
| build\_s3\_flow\_logs | Whether or not to build flow log components in s3 |`bool`|`false`| no |
54
54
| build\_vpn | Whether or not to build a VPN gateway |`bool`|`false`| no |
55
55
| cidr\_range | CIDR range for the VPC |`string`|`"172.18.0.0/19"`| no |
56
+
| cloudwatch\_flowlog\_retention | The number of days to retain flowlogs in CLoudwatch Logs. Valid values are: [0, 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, 3653]. A value of `0` will retain indefinitely. |`number`|`14`| no |
56
57
| custom\_azs | A list of AZs that VPC resources will reside in |`list(string)`|`[]`| no |
57
58
| default\_tenancy | Default tenancy for instances. Either multi-tenant (default) or single-tenant (dedicated) |`string`|`"default"`| no |
58
59
| domain\_name | Custom domain name for the VPC |`string`|`""`| no |
@@ -64,9 +65,8 @@ The following module variables were updated to better meet current Rackspace sty
64
65
| logging\_bucket\_encryption | Enable default bucket encryption. i.e. AES256 or aws:kms|`string`|`"AES256"`| no |
65
66
| logging\_bucket\_encryption\_kms\_mster\_key | The AWS KMS master key ID used for the SSE-KMS encryption. This can only be used when you set the value of sse\_algorithm as aws:kms. |`string`|`""`| no |
66
67
| logging\_bucket\_force\_destroy | Whether all objects should be deleted from the bucket so that the bucket can be destroyed without error. These objects are not recoverable. ie. true |`bool`|`false`| no |
67
-
| logging\_bucket\_name | Bucket name to store s3 flow logs. If empty, to create random bucket name. In conjuction with build\_s3\_flow\_logs|`string`|`""`| no |
68
+
| logging\_bucket\_name | Bucket name to store s3 flow logs. If empty, a random bucket name is generated. Use in conjuction with `build_s3_flow_logs`|`string`|`""`| no |
68
69
| logging\_bucket\_prefix | The prefix for the location in the S3 bucket. If you don't specify a prefix, the access logs are stored in the root of the bucket. |`string`|`""`| no |
69
-
| logging\_bucket\_retention | The number of days to retain load balancer logs. 0 to ratain forever. |`number`|`14`| no |
70
70
| name | Name prefix for the VPC and related resources |`string`| n/a | yes |
71
71
| private\_cidr\_ranges | An array of CIDR ranges to use for private subnets |`list(string)`| <pre>[<br> "172.18.16.0/22",<br> "172.18.20.0/22",<br> "172.18.24.0/22"<br>]<br></pre> | no |
72
72
| private\_subnet\_names | Text that will be included in generated name for private subnets. Given the default value of `["Private"]`, subnet<br>names in the form \"<vpc\_name>-Private<count+1>\", e.g. \"MyVpc-Public2\" will be produced. Otherwise, given a<br>list of names with length the same as the value of `az_count`, the first `az_count` subnets will be named using<br>the first string in the list, the second `az_count` subnets will be named using the second string, and so on. |`list(string)`| <pre>[<br> "Private"<br>]<br></pre> | no |
@@ -76,6 +76,7 @@ The following module variables were updated to better meet current Rackspace sty
76
76
| public\_subnet\_names | Text that will be included in generated name for public subnets. Given the default value of `["Public"]`, subnet<br>names in the form \"<vpc\_name>-Public<count+1>\", e.g. \"MyVpc-Public1\" will be produced. Otherwise, given a<br>list of names with length the same as the value of `az_count`, the first `az_count` subnets will be named using<br>the first string in the list, the second `az_count` subnets will be named using the second string, and so on. |`list(string)`| <pre>[<br> "Public"<br>]<br></pre> | no |
77
77
| public\_subnet\_tags | A list of maps containing tags to be applied to public subnets. List should either be the same length as the number of AZs to apply different tags per set of subnets, or a length of 1 to apply the same tags across all public subnets. |`list(map(string))`| <pre>[<br> {}<br>]<br></pre> | no |
78
78
| public\_subnets\_per\_az | Number of public subnets to create in each AZ. NOTE: This value, when multiplied by the value of `az_count`,<br>should not exceed the length of the `public_cidr_ranges` list! |`number`|`1`| no |
79
+
| s3\_flowlog\_retention | The number of days to retain flowlogs in s3. A value of `0` will retain indefinitely. |`number`|`14`| no |
79
80
| spoke\_vpc | Whether or not the VPN gateway is a spoke of a Transit VPC |`bool`|`false`| no |
80
81
| tags | Optional tags to be applied on top of the base tags on all resources |`map(string)`|`{}`| no |
Copy file name to clipboardExpand all lines: variables.tf
+14-8Lines changed: 14 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ variable "az_count" {
5
5
}
6
6
7
7
variable"build_flow_logs" {
8
-
description="Whether or not to build flow log components in cloud watch logs"
8
+
description="Whether or not to build flow log components in Cloudwatch Logs"
9
9
default=false
10
10
type=bool
11
11
}
@@ -44,6 +44,12 @@ variable "cidr_range" {
44
44
default="172.18.0.0/19"
45
45
}
46
46
47
+
variable"cloudwatch_flowlog_retention" {
48
+
description="The number of days to retain flowlogs in CLoudwatch Logs. Valid values are: [0, 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, 3653]. A value of `0` will retain indefinitely."
49
+
type=number
50
+
default=14
51
+
}
52
+
47
53
variable"custom_azs" {
48
54
description="A list of AZs that VPC resources will reside in"
0 commit comments