Merge pull request #532 from cloudskiff/fix-db-subnet

Fix terraform file for db_subnet_group
main
William BEUIL 2021-05-19 18:01:57 +02:00 committed by GitHub
commit 3fd4a11361
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -15,21 +15,25 @@ resource "aws_vpc" "vpc" {
resource "aws_subnet" "subnet1" {
vpc_id = aws_vpc.vpc.id
cidr_block = "10.1.0.0/24"
availability_zone = "us-east-1a"
}
resource "aws_subnet" "subnet2" {
vpc_id = aws_vpc.vpc.id
cidr_block = "10.1.1.0/24"
availability_zone = "us-east-1b"
}
resource "aws_subnet" "subnet3" {
vpc_id = aws_vpc.vpc.id
cidr_block = "10.1.2.0/24"
availability_zone = "us-east-1c"
}
resource "aws_subnet" "subnet4" {
vpc_id = aws_vpc.vpc.id
cidr_block = "10.1.3.0/24"
availability_zone = "us-east-1a"
}
resource "aws_db_subnet_group" "foo" {