-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from jetbrains-infra/feature/terraform_0.12_sup…
…port syntax (interpolation) changes to support terraform 0.12
- Loading branch information
Showing
5 changed files
with
80 additions
and
85 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
output "password" { | ||
sensitive = true | ||
description = "RDS master password" | ||
value = "${local.password}" | ||
value = local.password | ||
} | ||
|
||
output "username" { | ||
description = "DB master user name" | ||
value = "${local.username}" | ||
value = local.username | ||
} | ||
|
||
output "address" { | ||
description = "The address of the RDS instance." | ||
value = "${local.address}" | ||
value = local.address | ||
} | ||
|
||
output "database" { | ||
description = "The database name." | ||
value = "${local.database}" | ||
value = local.database | ||
} | ||
|
||
output "hosted_zone_id" { | ||
description = "The canonical hosted zone ID of the DB instance (to be used in a Route 53 Alias record)." | ||
value = "${local.hosted_zone_id}" | ||
value = local.hosted_zone_id | ||
} | ||
|
||
output "rds_id" { | ||
description = "The RDS instance ID" | ||
value = "${local.rds_id}" | ||
value = local.rds_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,54 +1,54 @@ | ||
resource "aws_db_instance" "default" { | ||
count = "${local.rds_without_param_group}" | ||
instance_class = "${local.instance_type}" | ||
count = local.rds_without_param_group | ||
instance_class = local.instance_type | ||
engine = "mysql" | ||
engine_version = "${local.engine_version}" | ||
vpc_security_group_ids = ["${aws_security_group.default.id}"] | ||
db_subnet_group_name = "${aws_db_subnet_group.default.name}" | ||
identifier = "${local.id}" | ||
engine_version = local.engine_version | ||
vpc_security_group_ids = [aws_security_group.default.id] | ||
db_subnet_group_name = aws_db_subnet_group.default.name | ||
identifier = local.id | ||
skip_final_snapshot = true | ||
allocated_storage = "${local.disk_size}" | ||
allocated_storage = local.disk_size | ||
storage_type = "gp2" | ||
multi_az = "${local.multi_az}" | ||
backup_window = "${local.backup_window}" | ||
backup_retention_period = "${local.backup_retention_period}" | ||
name = "${local.database}" | ||
username = "${local.username}" | ||
password = "${local.password}" | ||
publicly_accessible = "${local.publicly_accessible}" | ||
multi_az = local.multi_az | ||
backup_window = local.backup_window | ||
backup_retention_period = local.backup_retention_period | ||
name = local.database | ||
username = local.username | ||
password = local.password | ||
publicly_accessible = local.publicly_accessible | ||
storage_encrypted = true | ||
apply_immediately = "${local.apply_immediately}" | ||
enabled_cloudwatch_logs_exports = ["${local.logs_set}"] | ||
apply_immediately = local.apply_immediately | ||
enabled_cloudwatch_logs_exports = local.logs_set | ||
|
||
tags { | ||
Project = "${local.project}" | ||
tags = { | ||
Project = local.project | ||
} | ||
} | ||
|
||
resource "aws_db_instance" "parameterized" { | ||
count = "${local.rds_with_param_group}" | ||
instance_class = "${local.instance_type}" | ||
count = local.rds_with_param_group | ||
instance_class = local.instance_type | ||
engine = "mysql" | ||
engine_version = "${local.engine_version}" | ||
vpc_security_group_ids = ["${aws_security_group.default.id}"] | ||
db_subnet_group_name = "${aws_db_subnet_group.default.name}" | ||
identifier = "${local.id}" | ||
parameter_group_name = "${local.parameter_group_name}" | ||
engine_version = local.engine_version | ||
vpc_security_group_ids = [aws_security_group.default.id] | ||
db_subnet_group_name = aws_db_subnet_group.default.name | ||
identifier = local.id | ||
parameter_group_name = local.parameter_group_name | ||
skip_final_snapshot = true | ||
allocated_storage = "${local.disk_size}" | ||
allocated_storage = local.disk_size | ||
storage_type = "gp2" | ||
multi_az = "${local.multi_az}" | ||
backup_window = "${local.backup_window}" | ||
backup_retention_period = "${local.backup_retention_period}" | ||
name = "${local.database}" | ||
username = "${local.username}" | ||
password = "${local.password}" | ||
publicly_accessible = "${local.publicly_accessible}" | ||
multi_az = local.multi_az | ||
backup_window = local.backup_window | ||
backup_retention_period = local.backup_retention_period | ||
name = local.database | ||
username = local.username | ||
password = local.password | ||
publicly_accessible = local.publicly_accessible | ||
storage_encrypted = true | ||
apply_immediately = "${local.apply_immediately}" | ||
enabled_cloudwatch_logs_exports = ["${local.logs_set}"] | ||
apply_immediately = local.apply_immediately | ||
enabled_cloudwatch_logs_exports = local.logs_set | ||
|
||
tags { | ||
Project = "${local.project}" | ||
tags = { | ||
Project = local.project | ||
} | ||
} |
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,15 +1,15 @@ | ||
resource "aws_security_group" "default" { | ||
name = "${local.name}" | ||
vpc_id = "${local.vpc_id}" | ||
name = local.name | ||
vpc_id = local.vpc_id | ||
|
||
ingress { | ||
from_port = 3306 | ||
protocol = "TCP" | ||
to_port = 3306 | ||
cidr_blocks = ["${local.trusted_cidr_blocks}"] | ||
cidr_blocks = local.trusted_cidr_blocks | ||
} | ||
|
||
tags { | ||
Project = "${local.project}" | ||
tags = { | ||
Project = local.project | ||
} | ||
} |
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,8 +1,8 @@ | ||
resource "aws_db_subnet_group" "default" { | ||
name = "${local.subnet_group_name}" | ||
subnet_ids = ["${local.db_subnets}"] | ||
name = local.subnet_group_name | ||
subnet_ids = local.db_subnets | ||
|
||
tags { | ||
Project = "${local.project}" | ||
tags = { | ||
Project = local.project | ||
} | ||
} |
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