Skip to content

Commit

Permalink
tools/terraform: Adapt lists to Terraform 0.12.x, take #2
Browse files Browse the repository at this point in the history
The definition of the `security_groups` variable in the `direct-vms`
module was incorrect. This may explain the error seen in CI. No idea why
the same error didn't appear locally though.
  • Loading branch information
dumbbell committed Jun 11, 2019
1 parent fc081f7 commit f1115f8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Expand Up @@ -31,7 +31,7 @@ resource "aws_launch_configuration" "lc" {
instance_type = "${module.direct_vms.instance_type}"
key_name = "${module.direct_vms.ssh_key_name}"

security_groups = flatten(module.direct_vms.security_groups)
security_groups = module.direct_vms.security_groups

user_data = "${module.direct_vms.instance_user_data}"

Expand Down
Expand Up @@ -193,7 +193,7 @@ resource "aws_instance" "vm" {

subnet_id = "${aws_subnet.vpc.id}"

vpc_security_group_ids = flatten(local.security_groups)
vpc_security_group_ids = local.security_groups

user_data = "${data.template_file.user_data.rendered}"

Expand Down
Expand Up @@ -47,7 +47,7 @@ output "ssh_key_name" {
}

output "security_groups" {
value = ["${local.security_groups}"]
value = local.security_groups
}

output "instance_user_data" {
Expand Down

0 comments on commit f1115f8

Please sign in to comment.