Skip to content

Commit cc9e62e

Browse files
authored
Merge pull request #34 from synapsestudios/move-outputs-to-outputs-folder
move outputs to outputs.tf
2 parents 30f0112 + 6b58d20 commit cc9e62e

File tree

4 files changed

+28
-29
lines changed

4 files changed

+28
-29
lines changed

ecs_task_definitions.tf

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,3 @@ module "service_container_definition" {
4949
}
5050
}
5151
}
52-
53-
output "log_group_name" {
54-
value = aws_cloudwatch_log_group.service.name
55-
}

outputs.tf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
output "log_group_name" {
2+
value = aws_cloudwatch_log_group.service.name
3+
}

rds_cluster/main.tf

Lines changed: 9 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,15 @@ resource "aws_secretsmanager_secret_version" "connection_string" {
5656

5757
#tfsec:ignore:aws-rds-enable-performance-insights-encryption
5858
resource "aws_rds_cluster_instance" "this" {
59-
count = var.instance_count
60-
engine = "aurora-postgresql"
61-
engine_version = "14.6"
62-
identifier_prefix = "${var.name}-${count.index + 1}"
63-
performance_insights_enabled = true
64-
cluster_identifier = aws_rds_cluster.this.id
65-
instance_class = var.instance_class
66-
db_subnet_group_name = aws_db_subnet_group.this.name
67-
tags = var.tags
59+
count = var.instance_count
60+
engine = "aurora-postgresql"
61+
engine_version = "14.6"
62+
identifier_prefix = "${var.name}-${count.index + 1}"
63+
performance_insights_enabled = true
64+
cluster_identifier = aws_rds_cluster.this.id
65+
instance_class = var.instance_class
66+
db_subnet_group_name = aws_db_subnet_group.this.name
67+
tags = var.tags
6868
}
6969

7070
resource "aws_db_subnet_group" "this" {
@@ -98,19 +98,3 @@ resource "aws_security_group" "this" {
9898
data "aws_vpc" "database_vpc" {
9999
id = var.vpc_id
100100
}
101-
102-
output "db_cluster_id" {
103-
value = aws_rds_cluster.this.cluster_identifier
104-
}
105-
106-
output "security_group_id" {
107-
value = aws_security_group.this.id
108-
}
109-
110-
output "root_password_secret_id" {
111-
value = aws_secretsmanager_secret.root_password.id
112-
}
113-
114-
output "connection_string_arn" {
115-
value = aws_secretsmanager_secret.connection_string.arn
116-
}

rds_cluster/outputs.tf

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
output "db_cluster_id" {
3+
value = aws_rds_cluster.this.cluster_identifier
4+
}
5+
6+
output "security_group_id" {
7+
value = aws_security_group.this.id
8+
}
9+
10+
output "root_password_secret_id" {
11+
value = aws_secretsmanager_secret.root_password.id
12+
}
13+
14+
output "connection_string_arn" {
15+
value = aws_secretsmanager_secret.connection_string.arn
16+
}

0 commit comments

Comments
 (0)