Skip to content

Commit 7d4e601

Browse files
authored
feat: Added tags to cluster, task, ssm, role, and fmt (#115)
1 parent dd30aa5 commit 7d4e601

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

main.tf

+14-1
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ resource "aws_ssm_parameter" "webhook" {
116116
name = var.webhook_ssm_parameter_name
117117
type = "SecureString"
118118
value = random_id.webhook.hex
119+
120+
tags = local.tags
119121
}
120122

121123
resource "aws_ssm_parameter" "atlantis_github_user_token" {
@@ -124,6 +126,8 @@ resource "aws_ssm_parameter" "atlantis_github_user_token" {
124126
name = var.atlantis_github_user_token_ssm_parameter_name
125127
type = "SecureString"
126128
value = var.atlantis_github_user_token
129+
130+
tags = local.tags
127131
}
128132

129133
resource "aws_ssm_parameter" "atlantis_gitlab_user_token" {
@@ -132,6 +136,8 @@ resource "aws_ssm_parameter" "atlantis_gitlab_user_token" {
132136
name = var.atlantis_gitlab_user_token_ssm_parameter_name
133137
type = "SecureString"
134138
value = var.atlantis_gitlab_user_token
139+
140+
tags = local.tags
135141
}
136142

137143
resource "aws_ssm_parameter" "atlantis_bitbucket_user_token" {
@@ -140,6 +146,8 @@ resource "aws_ssm_parameter" "atlantis_bitbucket_user_token" {
140146
name = var.atlantis_bitbucket_user_token_ssm_parameter_name
141147
type = "SecureString"
142148
value = var.atlantis_bitbucket_user_token
149+
150+
tags = local.tags
143151
}
144152

145153
###################
@@ -328,6 +336,8 @@ module "ecs" {
328336
version = "v2.0.0"
329337

330338
name = var.name
339+
340+
tags = local.tags
331341
}
332342

333343
data "aws_iam_policy_document" "ecs_tasks" {
@@ -348,6 +358,8 @@ data "aws_iam_policy_document" "ecs_tasks" {
348358
resource "aws_iam_role" "ecs_task_execution" {
349359
name = "${var.name}-ecs_task_execution"
350360
assume_role_policy = data.aws_iam_policy_document.ecs_tasks.json
361+
362+
tags = local.tags
351363
}
352364

353365
resource "aws_iam_role_policy_attachment" "ecs_task_execution" {
@@ -490,6 +502,8 @@ resource "aws_ecs_task_definition" "atlantis" {
490502
memory = var.ecs_task_memory
491503

492504
container_definitions = local.container_definitions
505+
506+
tags = local.tags
493507
}
494508

495509
data "aws_ecs_task_definition" "atlantis" {
@@ -532,4 +546,3 @@ resource "aws_cloudwatch_log_group" "atlantis" {
532546

533547
tags = local.tags
534548
}
535-

0 commit comments

Comments
 (0)