segmentio / stack

A set of Terraform modules for configuring production infrastructure with AWS
https://open.segment.com
MIT License
2.1k stars 421 forks source link

Stack and Terraform v0.7.0 #39

Open linuxbsdfreak opened 8 years ago

linuxbsdfreak commented 8 years ago

Hi,

I tried to launch the cluster with terrafrom v0.7.0 and found the following

data "template_file" "policy" { template = "${file("${path.module}/policy.json")}"

vars = { bucket = "${var.name}-${var.environment}-logs" account_id = "${var.account_id}" } }

resource "aws_s3_bucket" "logs" { bucket = "${var.name}-${var.environment}-logs"

tags { Name = "${var.name}-${var.environment}-logs" Environment = "${var.environment}" }

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

I changed that but it does not work

I then reverted the changes in ecs-cluster/main.tf and did a terraform apply and it worked since it was a warning.

After i include

module "rds" { source = "github.com/segmentio/stack/rds-cluster" # rds module source name = "pingdummy" database_name = "pingdummy" master_username = "root" master_password = "password"

these options are automatically generated by the stack

environment = "${module.stack.environment}" vpc_id = "${module.stack.vpc_id}" security_groups = "${module.stack.cluster_security_group_id}" subnet_ids = "${module.stack.private_subnets}" availability_zones = "${module.stack.availability_zones}" }

I get the following error Error configuring: 2 error(s) occurred:

What am i doing wrong?

gregwebs commented 8 years ago

you can ignore the warning about template for now

calvinfo commented 8 years ago

Ah, we don't yet support 0.7, but we're getting it going internally shortly! We'll be sure to update this as well :)

idris commented 7 years ago

@calvinfo any update on 0.7 support?

yields commented 7 years ago

Master is on v0.7, however i wouldn't use it yet, it's tested but i want to make sure we use lists and correct datatypes everywhere.

Once that's done, we'll release v0.2 which will fully support TF v0.7.

yields commented 7 years ago

If anyone would like to stick with v0.6, just use the 0.1 tag, it's untouched.

adambarthelson commented 7 years ago

@yields Ran into several problems when reverting to v0.6 and v0.1. Documented here: https://github.com/segmentio/stack/issues/8