Module to handle System Manager Documents in AWS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Christophe van de Kerchove 00d434b08d
feat: Initial import of the module
2 weeks ago
examples feat: Initial import of the module 1 week ago
.gitignore Initial commit 2 weeks ago
.pre-commit-config.yaml feat: Initial import of the module 1 week ago
CHANGELOG.md feat: Initial import of the module 1 week ago
Jenkinsfile feat: Initial import of the module 1 week ago
LICENSE feat: Initial import of the module 1 week ago
README.md feat: Initial import of the module 1 week ago
main.tf feat: Initial import of the module 1 week ago
outputs.tf feat: Initial import of the module 1 week ago
variables.tf feat: Initial import of the module 1 week ago
versions.tf feat: Initial import of the module 1 week ago

README.md

terraform-module-aws-ssm-documents

Template repository for public terraform modules

Requirements

Name Version
terraform >= 0.12
aws ~>2.28

Providers

Name Version
aws ~>2.28

Inputs

Name Description Type Default Required
additional_ssm_document_arns List of additional SSM document ARNs you want to attach to the IAM policy. list(string) [] no
enabled Whether or not to enable this module. bool true no
iam_policy_attachment_exclusive_enabled Whether or not the policy should be exclusively attached to only the provided users, groups and roles. bool false no
iam_policy_attachment_groups List of groups to which to attach the IAM policy. list(string) [] no
iam_policy_attachment_name Name of the exclusive IAM policy attachment. Note: Required if iam_policy_attachment_exclusive_enabled is true. string null no
iam_policy_attachment_roles List of roles to which to attach the IAM policy. list(string) [] no
iam_policy_attachment_users List of users to which to attach the IAM policy. list(string) [] no
iam_policy_description Description of the IAM policy. string null no
iam_policy_enabled Whether or not to create and enabled the IAM policy. bool true no
iam_policy_name Name of the IAM policy. string null no
iam_policy_path Path of the IAM policy. string null no
ssm_document_attachments_sources Ordered list of the attachment sources of each SSM document.
MUST follow this pattern:
list(
list(
object({
key = string # (Required) The key describing the location of an attachment to a document. Valid key types include: SourceUrl and S3FileUrl
values = string # (Required) The value describing the location of an attachment to a document
name = string # (Optional) The name of the document attachment file
})
)
)
list [] no
ssm_document_contents Ordered list of the contents of each SSM document. list(string) [] no
ssm_document_count Number of ssm documents that were passed as variable. number 0 no
ssm_document_document_formats Ordered list of the formats of each SSM document. list(string) [] no
ssm_document_document_types Ordered list of the types of each SSM document. list(string) [] no
ssm_document_names Ordered list of the names of each SSM document. list(string) [] no
ssm_document_permissions Ordered list of objects (or null to not use it) representing the permissions of each SSM document.
MUST follow the follwing pattern:
list(
object({
type = string # (Required) The permission type for the document. The permission type can be Share.
account_ids = any # (Required) The AWS user accounts that should have access to the document. The account IDs can either be a group of account IDs or All.
})
)
list [] no
ssm_document_tags Map of tags that will be applied on all SSM documents. map {} no
ssm_document_target_types Ordered list ofthe target type of each SSM document. list(string) [] no
ssm_document_types Ordered list of the type of each SSM document. Accepted values are JSON and YAML. list(string) [] no
ssm_documents_tags Ordered list of maps of tags that will be applied on each SSM cocument. list [] no
tags Map of tags that will be merged on all resources. map {} no

Outputs

Name Description
aws_iam_policy_attachment_id n/a
iam_policy_arn n/a
iam_policy_id n/a
ssm_document_arns n/a
ssm_document_names n/a

Versioning

This repository follows Semantic Versioning 2.0.0

Git Hooks

This repository uses pre-commit hooks.