Skip to content

Commit 504d388

Browse files
committed
Tidy
1 parent 0796c51 commit 504d388

File tree

3 files changed

+3
-13
lines changed

3 files changed

+3
-13
lines changed

grafana/non-prod/terraform/all.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ data "template_file" "grafana_app" {
106106
template = file("${path.module}/templates/ecs/grafana_app.json.tpl")
107107

108108
vars = {
109-
app_image = var.app_image
109+
app_image = local.app_image
110110
app_port = var.app_port
111111
fargate_cpu = var.fargate_cpu
112112
fargate_memory = var.fargate_memory
@@ -303,7 +303,7 @@ data "aws_iam_policy_document" "ecs_auto_scale_role" {
303303
}
304304
# ECS auto scale role
305305
resource "aws_iam_role" "ecs_auto_scale_role" {
306-
name = var.ecs_auto_scale_role_name
306+
name = "${var.prefix}-${var.ecs_auto_scale_role_name}"
307307
assume_role_policy = data.aws_iam_policy_document.ecs_auto_scale_role.json
308308
}
309309
# ECS auto scale role policy attachment

grafana/non-prod/terraform/terraform.tfvars

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
aws_region = "eu-west-2"
22

3-
ec2_task_execution_role_name = "myEcsTaskExecutionRole"
4-
5-
ecs_auto_scale_role_name = "myEcsAutoScaleRole"
3+
ecs_auto_scale_role_name = "EcsAutoScaleRole"
64

75
az_count = 2
86

grafana/non-prod/terraform/variables.tf

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ variable "aws_region" {
22
description = "Destination AWS region"
33
}
44

5-
variable "ec2_task_execution_role_name" {
6-
description = "ECS task execution role name"
7-
}
8-
95
variable "ecs_auto_scale_role_name" {
106
description = "ECS auto scale role name"
117
}
@@ -15,10 +11,6 @@ variable "az_count" {
1511
default = 2
1612
}
1713

18-
variable "app_image" {
19-
description = "Docker image to run in the ECS cluster, derived from the account ID and region"
20-
}
21-
2214
variable "app_version" {
2315
description = "Version of the Docker image to run in the ECS cluster"
2416
default = "11.0.0-22.04_stable"

0 commit comments

Comments
 (0)