AWS Systems Manager Activation
This page shows how to write Terraform for Systems Manager Activation and write them securely.
aws_ssm_activation (Terraform)
The Activation in Systems Manager can be configured in Terraform with the resource name aws_ssm_activation
. The following sections describe 3 examples of how to use the resource and its parameters.
Example Usage from GitHub
ssm_activation_test.tf#L12
resource "aws_ssm_activation" "ssm_activation" {
name = "test_ssm_advanced_activation"
description = "Test"
iam_role = "my-test-iam-role"
registration_limit = 1001
}
ssm_activation_test.tf#L12
resource "aws_ssm_activation" "ssm_activation" {
name = "test_ssm_advanced_activation"
description = "Test"
iam_role = "my-test-iam-role"
registration_limit = 1001
}
main.tf#L7
resource "aws_ssm_activation" "this" {
description = var.description
expiration_date = var.expiration_date
iam_role = var.iam_role
name = var.name
registration_limit = var.registration_limit
Parameters
-
activation_code
optional computed - string -
description
optional - string -
expiration_date
optional computed - string -
expired
optional computed - bool -
iam_role
required - string -
id
optional computed - string -
name
optional - string -
registration_count
optional computed - number -
registration_limit
optional - number -
tags
optional - map from string to string
Explanation in Terraform Registry
Registers an on-premises server or virtual machine with Amazon EC2 so that it can be managed using Run Command.
CloudFormation Example
CloudFormation code does not have the related resource.
Frequently asked questions
What is AWS Systems Manager Activation?
AWS Systems Manager Activation is a resource for Systems Manager of Amazon Web Service. Settings can be wrote in Terraform.
Where can I find the example code for the AWS Systems Manager Activation?
For Terraform, the gilyas/infracost, infracost/infracost and niveklabs/aws source code examples are useful. See the Terraform Example section for further details.