Skip to content

Commit 455e938

Browse files
committed
Upgraded examples/complete to support Terraform 0.12
1 parent 281ee93 commit 455e938

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

examples/complete/main.tf

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ module "elasticache_redis" {
1616
family = "redis5.0"
1717
description = "This is example"
1818

19-
subnet_ids = ["${module.vpc.public_subnet_ids}"]
20-
vpc_id = "${module.vpc.vpc_id}"
21-
ingress_cidr_blocks = ["${module.vpc.vpc_cidr_block}"]
19+
subnet_ids = [module.vpc.public_subnet_ids]
20+
vpc_id = module.vpc.vpc_id
21+
ingress_cidr_blocks = [module.vpc.vpc_cidr_block]
2222

2323
tags = {
2424
Environment = "prod"
@@ -27,10 +27,10 @@ module "elasticache_redis" {
2727

2828
module "vpc" {
2929
source = "git::https://github.com/tmknom/terraform-aws-vpc.git?ref=tags/1.0.0"
30-
cidr_block = "${local.cidr_block}"
30+
cidr_block = local.cidr_block
3131
name = "vpc-elasticache-redis"
32-
public_subnet_cidr_blocks = ["${cidrsubnet(local.cidr_block, 8, 0)}", "${cidrsubnet(local.cidr_block, 8, 1)}"]
33-
public_availability_zones = ["${data.aws_availability_zones.available.names}"]
32+
public_subnet_cidr_blocks = [cidrsubnet(local.cidr_block, 8, 0), cidrsubnet(local.cidr_block, 8, 1)]
33+
public_availability_zones = [data.aws_availability_zones.available.names]
3434
}
3535

3636
locals {

examples/complete/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)