Skip to content

Commit fa2e037

Browse files
committed
Remove data resource lookup
1 parent 600c00c commit fa2e037

File tree

3 files changed

+0
-14
lines changed

3 files changed

+0
-14
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,6 @@ module "container_service_cluster" {
9090
- `container_instance_security_group_id` - Security group ID of the EC2 container instances
9191
- `container_instance_ecs_for_ec2_service_role_name` - Name of IAM role associated with EC2 container instances
9292
- `ecs_service_role_name` - Name of IAM role for use with ECS services
93-
- `ecs_autoscale_role_name` - Name of IAM role for use with ECS service autoscaling
9493
- `ecs_service_role_arn` - ARN of IAM role for use with ECS services
95-
- `ecs_autoscale_role_arn` - ARN of IAM role for use with ECS service autoscaling
9694
- `container_instance_ecs_for_ec2_service_role_arn` - ARN of IAM role associated with EC2 container instances
9795
- `container_instance_autoscaling_group_name` - Name of container instance Autoscaling Group

main.tf

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,6 @@ data "aws_iam_policy_document" "ecs_autoscale_assume_role" {
6969
}
7070
}
7171

72-
data "aws_iam_role" "ecs_autoscale_role" {
73-
name = "AWSServiceRoleForApplicationAutoScaling_ECSService"
74-
}
75-
7672
#
7773
# Security group resources
7874
#

outputs.tf

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@ output "ecs_service_role_name" {
1818
value = "${aws_iam_role.ecs_service_role.name}"
1919
}
2020

21-
output "ecs_autoscale_role_name" {
22-
value = "${data.aws_iam_role.ecs_autoscale_role.id}"
23-
}
24-
2521
output "container_instance_autoscaling_group_name" {
2622
value = "${aws_autoscaling_group.container_instance.name}"
2723
}
@@ -30,10 +26,6 @@ output "ecs_service_role_arn" {
3026
value = "${aws_iam_role.ecs_service_role.arn}"
3127
}
3228

33-
output "ecs_autoscale_role_arn" {
34-
value = "${data.aws_iam_role.ecs_autoscale_role.arn}"
35-
}
36-
3729
output "container_instance_ecs_for_ec2_service_role_arn" {
3830
value = "${aws_iam_role.container_instance_ec2.arn}"
3931
}

0 commit comments

Comments
 (0)