Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/avidhara/terraform-aws-session-manager

Terraform module which creates Session Manager resources on AWS.
https://github.com/avidhara/terraform-aws-session-manager

aws terraform terraform-aws terraform-aws-module terraform-module

Last synced: about 1 month ago
JSON representation

Terraform module which creates Session Manager resources on AWS.

Awesome Lists containing this project

README

        

# Terraform AWS Session Manager Resources

## Use as a Module

```hcl
module "ssm_resources" {
source = "./"
kms_key = {
name = "ssm-cmk-key"
description = "CMK for cloudwath logs and session"
deletion_window_in_days = 7
}
cloudwatch_log_group_name = "/ssm/session-logs"
enable_log_to_cloudwatch = true
}
```

## Requirements

| Name | Version |
|------|---------|
| terraform | ~> 0.12.24 |
| aws | ~> 2.60 |

## Providers

| Name | Version |
|------|---------|
| aws | ~> 2.60 |

## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| cloudwatch\_log\_group\_name | Name of the CloudWatch Log Group for storing SSM Session Logs | `string` | `"/ssm/session-logs"` | no |
| cloudwatch\_logs\_retention | Number of days to retain Session Logs in CloudWatch | `number` | `30` | no |
| create\_ssm\_document | Do you want to create SSM Document | `bool` | `true` | no |
| default\_user | operating system user name for starting sessions | `string` | `"ec2-user"` | no |
| enable\_log\_to\_cloudwatch | Enable Session Manager to Log to CloudWatch Logs | `bool` | `true` | no |
| kms\_key | KMS Key Details | `map(string)` |

{
"deletion_window_in_days": 7,
"description": "CMK for cloudwath logs and session",
"name": "ssm-cmk-key"
}
| no |
| role\_name | Name of the Role | `string` | `""` | no |
| run\_as\_enabled | Do you want to use Specify Operating System user for sessions | `bool` | `true` | no |
| tags | A map of tags to add to all resources | `map(string)` | `{}` | no |

## Outputs

| Name | Description |
|------|-------------|
| ssm\_cloudwatch\_log\_group\_arn | The Amazon Resource Name (ARN) specifying the log group for SSM |
| ssm\_kms\_key\_arn | KMS key used for SSM |
| ssm\_role\_arn | n/a |