Skip to content

Commit 281ee93

Browse files
committed
Upgraded examples/minimal to support Terraform 0.12
1 parent 9dfb399 commit 281ee93

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

examples/minimal/main.tf

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@ module "elasticache_redis" {
44
number_cache_clusters = 2
55
node_type = "cache.m3.medium"
66

7-
subnet_ids = ["${module.vpc.public_subnet_ids}"]
8-
vpc_id = "${module.vpc.vpc_id}"
9-
ingress_cidr_blocks = ["${module.vpc.vpc_cidr_block}"]
7+
subnet_ids = [module.vpc.public_subnet_ids]
8+
vpc_id = module.vpc.vpc_id
9+
ingress_cidr_blocks = [module.vpc.vpc_cidr_block]
1010
}
1111

1212
module "vpc" {
1313
source = "git::https://github.com/tmknom/terraform-aws-vpc.git?ref=tags/1.0.0"
14-
cidr_block = "${local.cidr_block}"
14+
cidr_block = local.cidr_block
1515
name = "vpc-elasticache-redis"
16-
public_subnet_cidr_blocks = ["${cidrsubnet(local.cidr_block, 8, 0)}", "${cidrsubnet(local.cidr_block, 8, 1)}"]
17-
public_availability_zones = ["${data.aws_availability_zones.available.names}"]
16+
public_subnet_cidr_blocks = [cidrsubnet(local.cidr_block, 8, 0), cidrsubnet(local.cidr_block, 8, 1)]
17+
public_availability_zones = [data.aws_availability_zones.available.names]
1818
}
1919

2020
locals {

examples/minimal/outputs.tf

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,47 @@
11
output "elasticache_replication_group_id" {
2-
value = "${module.elasticache_redis.elasticache_replication_group_id}"
2+
value = module.elasticache_redis.elasticache_replication_group_id
33
}
44

55
output "elasticache_replication_group_primary_endpoint_address" {
6-
value = "${module.elasticache_redis.elasticache_replication_group_primary_endpoint_address}"
6+
value = module.elasticache_redis.elasticache_replication_group_primary_endpoint_address
77
}
88

99
output "elasticache_replication_group_member_clusters" {
10-
value = "${module.elasticache_redis.elasticache_replication_group_member_clusters}"
10+
value = module.elasticache_redis.elasticache_replication_group_member_clusters
1111
}
1212

1313
output "elasticache_parameter_group_id" {
14-
value = "${module.elasticache_redis.elasticache_parameter_group_id}"
14+
value = module.elasticache_redis.elasticache_parameter_group_id
1515
}
1616

1717
output "security_group_id" {
18-
value = "${module.elasticache_redis.security_group_id}"
18+
value = module.elasticache_redis.security_group_id
1919
}
2020

2121
output "security_group_arn" {
22-
value = "${module.elasticache_redis.security_group_arn}"
22+
value = module.elasticache_redis.security_group_arn
2323
}
2424

2525
output "security_group_vpc_id" {
26-
value = "${module.elasticache_redis.security_group_vpc_id}"
26+
value = module.elasticache_redis.security_group_vpc_id
2727
}
2828

2929
output "security_group_owner_id" {
30-
value = "${module.elasticache_redis.security_group_owner_id}"
30+
value = module.elasticache_redis.security_group_owner_id
3131
}
3232

3333
output "security_group_name" {
34-
value = "${module.elasticache_redis.security_group_name}"
34+
value = module.elasticache_redis.security_group_name
3535
}
3636

3737
output "security_group_description" {
38-
value = "${module.elasticache_redis.security_group_description}"
38+
value = module.elasticache_redis.security_group_description
3939
}
4040

4141
output "security_group_ingress" {
42-
value = "${module.elasticache_redis.security_group_ingress}"
42+
value = module.elasticache_redis.security_group_ingress
4343
}
4444

4545
output "security_group_egress" {
46-
value = "${module.elasticache_redis.security_group_egress}"
46+
value = module.elasticache_redis.security_group_egress
4747
}

0 commit comments

Comments
 (0)