Skip to content

Commit

Permalink
Add customizbale document name
Browse files Browse the repository at this point in the history
  • Loading branch information
zzh8829 committed May 16, 2023
1 parent 1d35089 commit b622ea7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ resource "aws_cloudwatch_log_group" "session_manager_log_group" {
}

resource "aws_ssm_document" "session_manager_prefs" {
name = "SSM-SessionManagerRunShell"
name = "${var.session_manager_document_name}"
document_type = "Session"
document_format = "JSON"
tags = var.tags
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,9 @@ variable "enable_s3_bucket_acl" {
type = bool
default = false
}

variable "session_manager_document_name" {
description = "Name of the Session Manager Document"
type = string
default = "SSM-SessionManagerRunShell"
}

0 comments on commit b622ea7

Please sign in to comment.