镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content
This repository was archived by the owner on Jul 3, 2023. It is now read-only.
This repository was archived by the owner on Jul 3, 2023. It is now read-only.

Stack and Terraform v0.7.0 #39

Open

Description

@linuxbsdfreak

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?

Activity

  1. gregwebs commented on Sep 9, 2016

    @gregwebs
    Contributor

    you can ignore the warning about template for now

  2. calvinfo commented on Sep 14, 2016

    @calvinfo
    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 :)

  3. idris commented on Oct 6, 2016

    @idris

    @calvinfo any update on 0.7 support?

  4. yields commented on Oct 9, 2016

    @yields
    Contributor

    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.

  5. yields commented on Oct 9, 2016

    @yields
    Contributor

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

  6. adambarthelson commented on Oct 10, 2016

    @adambarthelson

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions