Skip to content

Commit 41ea7b5

Browse files
committed
add ssm access tag
1 parent f3f920c commit 41ea7b5

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

custom.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ variable "backup_frequency_days" {
5151
description = "The number of days after which the backup should be taken of the ami"
5252
}
5353

54+
variable "ssm_access_type" {
55+
type = string
56+
default = ""
57+
description = "ssm access type"
58+
}
5459

5560
variable "owner_team" {
5661
type = string

main.tf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,10 @@ resource "aws_instance" "this" {
193193
"Environment" = var.environment,
194194
"Service" = var.service,
195195
"ServiceComponent" = var.service_component,
196-
"OwnerTeam" = var.owner_team
196+
"OwnerTeam" = var.owner_team,
197+
env_type_ssm = var.ssm_access_type,
198+
disaster-recovery-backup = var.backup_for_disaster_recovery,
199+
backup-frequency = var.backup_frequency_days
197200
}, var.instance_tags, var.tags)
198201
volume_tags = var.enable_volume_tags ? merge({ "Name" = var.name }, var.volume_tags) : null
199202
}

0 commit comments

Comments
 (0)