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

service-load-balancing: Support service-linked role for appautoscaling #11

Merged
merged 4 commits into from
Mar 7, 2018

Conversation

nishigori
Copy link
Contributor

Currently, terraform-provider-aws is not support creating srevice-linked role yet.

Hope to attached service-liked role if user specified.

like: hashicorp/terraform-provider-aws#2750 (comment)

Refs:

@nishigori
Copy link
Contributor Author

nishigori commented Mar 5, 2018

Still I'm testing to my aws resources ...

@tamakiii
Copy link

tamakiii commented Mar 5, 2018

:lgtm:

@@ -45,7 +45,7 @@ resource "aws_appautoscaling_target" "main" {
max_capacity = "${var.autoscale_max_capacity}"
min_capacity = "${var.autoscale_min_capacity}"
resource_id = "service/${var.cluster_name}/${aws_ecs_service.main.name}"
role_arn = "${aws_iam_role.service_autoscale.arn}"
role_arn = "${ var.autoscale_iam_role_arn != "" ? var.autoscale_iam_role_arn : aws_iam_role.service_autoscale.arn }"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, conditional operator cannot declare resource...

hashicorp/terraform#11566

@nishigori
Copy link
Contributor Author

hashicorp/terraform#11566

This PR has BC BREAKS...

@nishigori nishigori merged commit 43cac7c into master Mar 7, 2018
@nishigori
Copy link
Contributor Author

Released v0.2.0

@nishigori nishigori deleted the appautoscaling-optional-role branch March 7, 2018 01:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants