Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

s3_bucket_object: support template_file #3155

Closed
stevendborrelli opened this issue Sep 2, 2015 · 4 comments
Closed

s3_bucket_object: support template_file #3155

stevendborrelli opened this issue Sep 2, 2015 · 4 comments

Comments

@stevendborrelli
Copy link

Use case: we want to populate an s3 object with terraform vars as part of configuring a system. (Think ecs.config getting the cluster name from tf:

Example:

resource "template_file" "ecs-config-file" {
  filename = "s3/ecs.config.tpl"
  vars = { 
    ecs_cluster = "${aws_ecs_cluster.ecs.name}"
    ecs_engine_auth_type = "${var.ecs_engine_auth_type}" 
    ecs_engine_auth_data = "${var.ecs_engine_auth_data}"
  }
}

resource "aws_s3_bucket_object" "ecs-config-file" {
  bucket = "${var.environment}-ecs-config"
  key = "ecs.config"
  source = "${template_file.ecs-config-file.rendered}"
}
@mnylen
Copy link

mnylen commented Sep 18, 2015

+1

@jaakkos
Copy link

jaakkos commented Oct 9, 2015

+1

@apparentlymart
Copy link
Contributor

I think this is what the PR #3200 achieves.

@ghost
Copy link

ghost commented Apr 30, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants