Skip to content
This repository has been archived by the owner on Jul 3, 2023. It is now read-only.

Stack and Terraform v0.7.0 #39

Open
linuxbsdfreak opened this issue Aug 9, 2016 · 6 comments
Open

Stack and Terraform v0.7.0 #39

linuxbsdfreak opened this issue Aug 9, 2016 · 6 comments

Comments

@linuxbsdfreak
Copy link

Hi,

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

  • Had to change s3-logs/main.tf

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}"
}

  • For error in template_file.cloud_config: using template_file as a resource is deprecated; consider using the data source instead In ecs-cluster/main.tf

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:

  • module.rds: missing dependency: module.stack.output.private_subnets
  • module.rds: missing dependency: module.stack.output.cluster_security_group_id

What am i doing wrong?

@gregwebs
Copy link
Contributor

gregwebs commented Sep 9, 2016

you can ignore the warning about template for now

@calvinfo
Copy link
Contributor

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
Copy link

idris commented Oct 6, 2016

@calvinfo any update on 0.7 support?

@yields
Copy link
Contributor

yields commented Oct 9, 2016

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
Copy link
Contributor

yields commented Oct 9, 2016

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

@adambarthelson
Copy link

@yields Ran into several problems when reverting to v0.6 and v0.1. Documented here: #8

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants