We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63eb988 commit c63d2cbCopy full SHA for c63d2cb
examples/complete-ecs/main.tf
@@ -1,7 +1,3 @@
1
-provider "aws" {
2
- region = "eu-west-1"
3
-}
4
-
5
locals {
6
name = "complete-ecs"
7
environment = "dev"
@@ -10,6 +6,10 @@ locals {
10
ec2_resources_name = "${local.name}-${local.environment}"
11
}
12
8
9
+data "aws_availability_zones" "available" {
+ state = "available"
+}
+
13
module "vpc" {
14
source = "terraform-aws-modules/vpc/aws"
15
version = "~> 2.0"
@@ -18,7 +18,7 @@ module "vpc" {
18
19
cidr = "10.1.0.0/16"
20
21
- azs = ["eu-west-1a", "eu-west-1b"]
+ azs = data.aws_availability_zones.available.names
22
private_subnets = ["10.1.1.0/24", "10.1.2.0/24"]
23
public_subnets = ["10.1.11.0/24", "10.1.12.0/24"]
24
0 commit comments