Skip to content

Commit

Permalink
Fixed formatting after #44
Browse files Browse the repository at this point in the history
  • Loading branch information
antonbabenko committed Jun 24, 2019
1 parent 8cdee35 commit 30a3643
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ Terraform documentation is generated automatically using [pre-commit hooks](http

| Name | Description | Type | Default | Required |
|------|-------------|:----:|:-----:|:-----:|
| allowed\_cidr\_blocks | A list of CIDR blocks which are allowed to access the database | list | `[]` | no |
| allowed\_cidr\_blocks\_count | The number of CIDR blocks being added, terraform doesn't let us use length() in a count field | string | `"0"` | no |
| allowed\_security\_groups | A list of Security Group ID's to allow access to. | list | `[]` | no |
| allowed\_security\_groups\_count | The number of Security Groups being added, terraform doesn't let us use length() in a count field | string | `"0"` | no |
| allowed\_cidr\_blocks | A list of CIDR blocks to allow access to | list | `[]` | no |
| allowed\_cidr\_blocks\_count | The number of CIDR blocks being added, terraform doesn't let us use length() in a count field | string | `"0"` | no |
| apply\_immediately | Determines whether or not any DB modifications are applied immediately, or during the maintenance window | string | `"false"` | no |
| auto\_minor\_version\_upgrade | Determines whether minor engine upgrades will be performed automatically in the maintenance window | string | `"true"` | no |
| backup\_retention\_period | How long to keep backups for (in days) | string | `"7"` | no |
Expand Down Expand Up @@ -109,7 +109,7 @@ Terraform documentation is generated automatically using [pre-commit hooks](http
| tags | A map of tags to add to all resources. | map | `{}` | no |
| username | Master DB username | string | `"root"` | no |
| vpc\_id | VPC ID | string | n/a | yes |
| vpc\_security\_group\_ids | List of VPC security groups to associate to the cluster in addition to the SG we create in this module | list | `<list>` | no |
| vpc\_security\_group\_ids | List of VPC security groups to associate to the cluster in addition to the SG we create in this module | list | `[]` | no |

## Outputs

Expand Down
3 changes: 3 additions & 0 deletions examples/mysql/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ module "aurora" {
db_parameter_group_name = "${aws_db_parameter_group.aurora_db_57_parameter_group.id}"
db_cluster_parameter_group_name = "${aws_rds_cluster_parameter_group.aurora_57_cluster_parameter_group.id}"
enabled_cloudwatch_logs_exports = ["audit", "error", "general", "slowquery"]

allowed_cidr_blocks_count = 1
allowed_cidr_blocks = ["10.20.0.0/20"]
}

resource "aws_db_parameter_group" "aurora_db_57_parameter_group" {
Expand Down
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,6 @@ resource "aws_security_group_rule" "cidr_ingress" {
from_port = "${aws_rds_cluster.this.port}"
to_port = "${aws_rds_cluster.this.port}"
protocol = "tcp"
cidr_blocks = [ "${element(var.allowed_cidr_blocks, count.index)}" ]
cidr_blocks = ["${element(var.allowed_cidr_blocks, count.index)}"]
security_group_id = "${aws_security_group.this.id}"
}

0 comments on commit 30a3643

Please sign in to comment.