Skip to content

joseluis-fw/terraform-aws-session-manager-settings

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terraform-aws-session-manager-settings

This module creates an SSM document that stores preferences for session manager.

Session preferences let you specify a location to store log output for all sessions in your account. You can also enable server-side encryption using an AWS Key Management Service (KMS) key for a specified stream to ensure your session records are transferred securely.

Requires aws provider >= 1.36.0

Example Usage

module "session-manager-settings" {
  source  = "gazoakley/session-manager-settings/aws"

  s3_bucket_name            = "my-session-logs-bucket"
  cloudwatch_log_group_name = "/ssm/session-logs"
}

Inputs

The following arguments are supported:

  • s3_bucket_name - (Optional) The name of bucket to store session logs. Specifying this enables writing session output to an Amazon S3 bucket.
  • s3_key_prefix - (Optional) To write output to a sub-folder, enter a sub-folder name.
  • s3_encryption_enabled - (Optional) Encrypt log data.
  • cloudwatch_log_group_name - (Optional) The name of the log group to upload session logs to. Specifying this enables sending session output to CloudWatch Logs.
  • cloudwatch_encryption_enabled - (Optional) Encrypt log data.

Outputs

  • document_name - Name of the created document.
  • document_arn - ARN of the created document. You can use this to create IAM policies that prevent changes to session manager preferences.

License

Apache 2 Licensed. See LICENSE for full details.

About

Allows configuration of logging settings for AWS SSM Session Manager

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HCL 100.0%