-
Notifications
You must be signed in to change notification settings - Fork 70
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
Remove AmazonEC2ContainerServiceAutoscaleRole creation #33
Conversation
I think that my concern with this change is vaguely covered by this sentence:
If something doesn't call Given that hashicorp/terraform-provider-aws#2889 makes the role optional, and the main reason for emitting this role from the ECS cluster module was to be able to feed it to |
It would make sense that the
This vague piece of AWS documentation makes me want to test to make sure. The only places that
Since these methods are only invoked in I'm not sure what the difference between https://www.terraform.io/docs/providers/aws/r/autoscaling_policy.html |
I removed the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems like the best move. 👍
After merging this PR, if you end up creating a new release, please make sure to update the CHANGELOG
and bump the major version number.
Overview
Repeal Amazon EC2ContainerServiceAutoscaleRole creation and replace with
data
reference to service-linked IAM role.Fixes #24
Testing
I brought up a Django app using azavea/terraform-aws-ecs-cluster and azavea/terraform-aws-ecs-web-service.
Run
terraform plan
:AWS does not replace
aws_appautoscaling_target.role_arn
.