Skip to content

Commit

Permalink
Adjusting syntax for vpc security groups to rds instance
Browse files Browse the repository at this point in the history
  • Loading branch information
twerthi committed Aug 15, 2022
1 parent 77997c7 commit ee038a4
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ resource "aws_db_instance" "mariadb_rds_instance" {
iam_database_authentication_enabled = true
skip_final_snapshot = true
db_subnet_group_name = aws_db_subnet_group.samples_rds_subnet_group.name
vpc_security_group_ids = "[${aws_security_group.samples_security_group.id}]"
vpc_security_group_ids = [aws_security_group.samples_security_group.id]
}

resource "aws_db_instance" "mysql_rds_instance" {
Expand All @@ -29,7 +29,7 @@ resource "aws_db_instance" "mysql_rds_instance" {
iam_database_authentication_enabled = true
skip_final_snapshot = true
db_subnet_group_name = aws_db_subnet_group.samples_rds_subnet_group.name
vpc_security_group_ids = "[${aws_security_group.samples_security_group.id}]"
vpc_security_group_ids = [aws_security_group.samples_security_group.id]
}

resource "aws_db_instance" "postgresql_rds_instance" {
Expand All @@ -43,7 +43,7 @@ resource "aws_db_instance" "postgresql_rds_instance" {
iam_database_authentication_enabled = true
skip_final_snapshot = true
db_subnet_group_name = aws_db_subnet_group.samples_rds_subnet_group.name
vpc_security_group_ids = "[${aws_security_group.samples_security_group.id}]"
vpc_security_group_ids = [aws_security_group.samples_security_group.id]
}

resource "aws_db_instance" "mssql_rds_instance" {
Expand All @@ -57,5 +57,5 @@ resource "aws_db_instance" "mssql_rds_instance" {
skip_final_snapshot = true
license_model = "license-included"
db_subnet_group_name = aws_db_subnet_group.samples_rds_subnet_group.name
vpc_security_group_ids = "[${aws_security_group.samples_security_group.id}]"
vpc_security_group_ids = [aws_security_group.samples_security_group.id]
}

0 comments on commit ee038a4

Please sign in to comment.