File tree Expand file tree Collapse file tree 3 files changed +3
-13
lines changed
grafana/non-prod/terraform Expand file tree Collapse file tree 3 files changed +3
-13
lines changed Original file line number Diff line number Diff 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
305305resource "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
Original file line number Diff line number Diff line change 11aws_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
75az_count = 2
86
Original file line number Diff line number Diff 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-
95variable "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-
2214variable "app_version" {
2315 description = " Version of the Docker image to run in the ECS cluster"
2416 default = " 11.0.0-22.04_stable"
You can’t perform that action at this time.
0 commit comments