-
-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
144 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,36 @@ | ||
|
||
## Inputs | ||
|
||
| Name | Description | Type | Default | Required | | ||
|------|-------------|:----:|:-----:|:-----:| | ||
| attributes | Additional attributes (e.g. `policy` or `role`) | list | `<list>` | no | | ||
| attributes | Additional attributes (e.g. `1`) | list | `<list>` | no | | ||
| availability_zones | Availability Zone IDs | list | - | yes | | ||
| aws_region | AWS region ID | string | - | yes | | ||
| delimiter | Delimiter to be used between `name`, `namespace`, `stage`, etc. | string | `-` | no | | ||
| aws_region | AWS Region | string | - | yes | | ||
| delimiter | Delimiter to be used between `namespace`, `stage`, `name` and `attributes` | string | `-` | no | | ||
| enabled | Set to false to prevent the module from creating any resources | string | `true` | no | | ||
| encrypted | If true, the disk will be encrypted. | string | `false` | no | | ||
| mount_target_ip_address | The address (within the address range of the specified subnet) at which the file system may be mounted via the mount target. | string | `` | no | | ||
| name | Name (_e.g._ `app` or `wordpress`) | string | `app` | no | | ||
| namespace | Namespace (_e.g._ `eg` or `cp`) | string | `global` | no | | ||
| encrypted | If true, the disk will be encrypted | string | `false` | no | | ||
| mount_target_ip_address | The address (within the address range of the specified subnet) at which the file system may be mounted via the mount target | string | `` | no | | ||
| name | Name (_e.g._ `app`) | string | `app` | no | | ||
| namespace | Namespace (_e.g._ `eg` or `cp`) | string | `eg` | no | | ||
| performance_mode | The file system performance mode. Can be either `generalPurpose` or `maxIO` | string | `generalPurpose` | no | | ||
| provisioned_throughput_in_mibps | The throughput, measured in MiB/s, that you want to provision for the file system. Only applicable with throughput_mode set to provisioned. | string | `0` | no | | ||
| security_groups | AWS security group IDs to allow to connect to the EFS | list | - | yes | | ||
| provisioned_throughput_in_mibps | The throughput, measured in MiB/s, that you want to provision for the file system. Only applicable with throughput_mode set to provisioned | string | `0` | no | | ||
| security_groups | Security group IDs to allow access to the EFS | list | - | yes | | ||
| stage | Stage (_e.g._ `prod`, `dev`, `staging`) | string | `default` | no | | ||
| subnets | AWS subnet IDs | list | - | yes | | ||
| tags | Additional tags (e.g. `map('BusinessUnit','XYZ')`) | map | `<map>` | no | | ||
| throughput_mode | Throughput mode for the file system. Defaults to bursting. Valid values: bursting, provisioned. When using provisioned, also set provisioned_throughput_in_mibps. | string | `bursting` | no | | ||
| vpc_id | AWS VPC ID | string | - | yes | | ||
| zone_id | Route53 dns zone ID | string | `` | no | | ||
| subnets | Subnet IDs | list | - | yes | | ||
| tags | Additional tags (e.g. `{ BusinessUnit = "XYZ" }` | map | `<map>` | no | | ||
| throughput_mode | Throughput mode for the file system. Defaults to bursting. Valid values: bursting, provisioned. When using provisioned, also set provisioned_throughput_in_mibps | string | `bursting` | no | | ||
| vpc_id | VPC ID | string | - | yes | | ||
| zone_id | Route53 DNS zone ID | string | `` | no | | ||
|
||
## Outputs | ||
|
||
| Name | Description | | ||
|------|-------------| | ||
| arn | EFS ARN | | ||
| dns_name | DNS name | | ||
| host | Assigned DNS-record for the EFS | | ||
| dns_name | EFS DNS name | | ||
| host | Route53 DNS hostname for the EFS | | ||
| id | EFS ID | | ||
| mount_target_dns_names | List of DNS names for the given subnet/AZ per documented convention | | ||
| mount_target_ids | List of IDs of the EFS mount targets (one per Availability Zone) | | ||
| mount_target_ips | List of IPs of the EFS mount targets (one per Availability Zone) | | ||
| network_interface_ids | The IDs of the network interface that Amazon EFS created when it created the mount target | | ||
| mount_target_dns_names | List of EFS mount target DNS names | | ||
| mount_target_ids | List of EFS mount target IDs (one per Availability Zone) | | ||
| mount_target_ips | List of EFS mount target IPs (one per Availability Zone) | | ||
| network_interface_ids | List of mount target network interface IDs | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,65 @@ | ||
variable "region" { | ||
default = "us-east-1" | ||
type = "string" | ||
description = "AWS region" | ||
default = "us-east-1" | ||
} | ||
|
||
variable "attributes" { | ||
default = [] | ||
type = "list" | ||
type = "list" | ||
description = "Additional attributes (e.g. `1`)" | ||
default = [] | ||
} | ||
|
||
variable "namespace" { | ||
default = "eg" | ||
type = "string" | ||
description = "Namespace (_e.g._ `eg` or `cp`)" | ||
default = "eg" | ||
} | ||
|
||
variable "name" { | ||
default = "efs" | ||
type = "string" | ||
description = "Name (_e.g._ `app`)" | ||
default = "app" | ||
} | ||
|
||
variable "stage" { | ||
default = "testing" | ||
type = "string" | ||
description = "Stage (_e.g._ `prod`, `dev`, `staging`)" | ||
default = "testing" | ||
} | ||
|
||
variable "availability_zones" { | ||
type = "list" | ||
type = "list" | ||
description = "Availability Zone IDs" | ||
} | ||
|
||
variable "provisioned_throughput_in_mibps" {} | ||
variable "provisioned_throughput_in_mibps" { | ||
description = "The throughput, measured in MiB/s, that you want to provision for the file system. Only applicable with `throughput_mode` set to `provisioned`" | ||
default = 0 | ||
} | ||
|
||
variable "security_groups" { | ||
type = "list" | ||
type = "list" | ||
description = "Security Group IDs to allow access to the EFS" | ||
} | ||
|
||
variable "subnets" { | ||
type = "list" | ||
type = "list" | ||
description = "Subnet IDs" | ||
} | ||
|
||
variable "throughput_mode" { | ||
type = "string" | ||
description = "Throughput mode for the file system. Defaults to `bursting`. Valid values: `bursting`, `provisioned`. When using `provisioned`, also set `provisioned_throughput_in_mibps`" | ||
default = "bursting" | ||
} | ||
|
||
variable "throughput_mode" {} | ||
variable "vpc_id" {} | ||
variable "zone_id" {} | ||
variable "vpc_id" { | ||
type = "string" | ||
description = "VPC ID" | ||
} | ||
|
||
variable "zone_id" { | ||
type = "string" | ||
description = "Route53 DNS zone ID" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,39 @@ | ||
output "arn" { | ||
value = "${local.enabled ? join("", aws_efs_file_system.default.*.arn) : "" }" | ||
value = "${join("", aws_efs_file_system.default.*.arn)}" | ||
description = "EFS ARN" | ||
} | ||
|
||
output "id" { | ||
value = "${local.enabled ? join("", aws_efs_file_system.default.*.id) : "" }" | ||
value = "${join("", aws_efs_file_system.default.*.id)}" | ||
description = "EFS ID" | ||
} | ||
|
||
output "host" { | ||
value = "${local.enabled ? module.dns.hostname : "" }" | ||
description = "Assigned DNS-record for the EFS" | ||
value = "${module.dns.hostname}" | ||
description = "Route53 DNS hostname for the EFS" | ||
} | ||
|
||
output "dns_name" { | ||
value = "${local.enabled ? local.dns_name : "" }" | ||
description = "DNS name" | ||
value = "${local.dns_name}" | ||
description = "EFS DNS name" | ||
} | ||
|
||
output "mount_target_dns_names" { | ||
value = ["${local.enabled ? aws_efs_mount_target.default.*.dns_name : list("") }"] | ||
description = "List of DNS names for the given subnet/AZ per documented convention" | ||
value = ["${coalescelist(aws_efs_mount_target.default.*.dns_name, list(""))}"] | ||
description = "List of EFS mount target DNS names" | ||
} | ||
|
||
output "mount_target_ids" { | ||
value = ["${local.enabled ? aws_efs_mount_target.default.*.id : list("") }"] | ||
description = "List of IDs of the EFS mount targets (one per Availability Zone)" | ||
value = ["${coalescelist(aws_efs_mount_target.default.*.id, list(""))}"] | ||
description = "List of EFS mount target IDs (one per Availability Zone)" | ||
} | ||
|
||
output "mount_target_ips" { | ||
value = ["${local.enabled ? aws_efs_mount_target.default.*.ip_address : list("") }"] | ||
description = "List of IPs of the EFS mount targets (one per Availability Zone)" | ||
value = ["${coalescelist(aws_efs_mount_target.default.*.ip_address, list(""))}"] | ||
description = "List of EFS mount target IPs (one per Availability Zone)" | ||
} | ||
|
||
output "network_interface_ids" { | ||
value = ["${local.enabled ? aws_efs_mount_target.default.*.network_interface_id : list("") }"] | ||
description = "The IDs of the network interface that Amazon EFS created when it created the mount target" | ||
value = ["${coalescelist(aws_efs_mount_target.default.*.network_interface_id, list(""))}"] | ||
description = "List of mount target network interface IDs" | ||
} |
Oops, something went wrong.