2024-07-08 17:52:37 +02:00
|
|
|
resource "aws_vpc" "ml-survey-vpc" {
|
2024-07-07 19:39:42 +02:00
|
|
|
cidr_block = "10.0.0.0/16"
|
2024-06-26 17:29:56 +02:00
|
|
|
enable_dns_hostnames = true
|
|
|
|
enable_dns_support = true
|
|
|
|
tags = {
|
2024-07-08 17:52:37 +02:00
|
|
|
Name = "ml-survey-vpc"
|
2024-06-26 17:29:56 +02:00
|
|
|
}
|
|
|
|
}
|
2024-06-27 17:55:21 +02:00
|
|
|
|
2024-07-08 17:52:37 +02:00
|
|
|
resource "aws_subnet" "ml-survey-public-subnet" {
|
|
|
|
vpc_id = aws_vpc.ml-survey-vpc.id
|
2024-07-07 19:39:42 +02:00
|
|
|
cidr_block = "10.0.1.0/24"
|
2024-06-27 17:55:21 +02:00
|
|
|
map_public_ip_on_launch = true
|
|
|
|
availability_zone = "eu-central-1"
|
|
|
|
tags = {
|
2024-07-08 17:52:37 +02:00
|
|
|
Name = "ml-survey-public"
|
2024-06-27 17:55:21 +02:00
|
|
|
}
|
|
|
|
}
|