Skip to main content

activations

Creates, updates, deletes, gets or lists an activations resource.

Overview

Nameactivations
TypeResource
Idaws.ssm.activations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
activation_idstringThe ID created by Systems Manager when you submitted the activation. (pattern: <code>^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$</code>)
created_datestring (date-time)The date the activation was created.
default_instance_namestringA name for the managed node when it is created. (pattern: <code>^([\p{L}\p{Z}\p{N}_.:/=+-@]*)$</code>)
descriptionstringA user defined description of the activation.
expiration_datestring (date-time)The date when this activation can no longer be used to register managed nodes.
expiredbooleanWhether or not the activation is expired.
iam_rolestringThe Identity and Access Management (IAM) role to assign to the managed node.
registration_limitintegerThe maximum number of managed nodes that can be registered using this activation.
registrations_countintegerThe number of managed nodes already registered with this activation.
tagsarrayTags assigned to the activation.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_activationsselectregionDescribes details about the activation, such as the date and time the activation was created, its expiration date, the Identity and Access Management (IAM) role assigned to the managed nodes in the activation, and the number of nodes registered by using this activation.
create_activationinsertregion, IamRoleGenerates an activation code and activation ID you can use to register your on-premises servers, edge devices, or virtual machine (VM) with Amazon Web Services Systems Manager. Registering these machines with Systems Manager makes it possible to manage them using Systems Manager tools. You use the activation code and ID when installing SSM Agent on machines in your hybrid environment. For more information about requirements for managing on-premises machines using Systems Manager, see Using Amazon Web Services Systems Manager in hybrid and multicloud environments in the Amazon Web Services Systems Manager User Guide. Amazon Elastic Compute Cloud (Amazon EC2) instances, edge devices, and on-premises servers and VMs that are configured for Systems Manager are all called managed nodes.
delete_activationdeleteregionDeletes an activation. You aren't required to delete an activation. If you delete an activation, you can no longer use it to register additional managed nodes. Deleting an activation doesn't de-register managed nodes. You must manually de-register managed nodes.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Describes details about the activation, such as the date and time the activation was created, its expiration date, the Identity and Access Management (IAM) role assigned to the managed nodes in the activation, and the number of nodes registered by using this activation.

SELECT
activation_id,
created_date,
default_instance_name,
description,
expiration_date,
expired,
iam_role,
registration_limit,
registrations_count,
tags
FROM aws.ssm.activations
WHERE region = '{{ region }}' -- required
;

INSERT examples

Generates an activation code and activation ID you can use to register your on-premises servers, edge devices, or virtual machine (VM) with Amazon Web Services Systems Manager. Registering these machines with Systems Manager makes it possible to manage them using Systems Manager tools. You use the activation code and ID when installing SSM Agent on machines in your hybrid environment. For more information about requirements for managing on-premises machines using Systems Manager, see Using Amazon Web Services Systems Manager in hybrid and multicloud environments in the Amazon Web Services Systems Manager User Guide. Amazon Elastic Compute Cloud (Amazon EC2) instances, edge devices, and on-premises servers and VMs that are configured for Systems Manager are all called managed nodes.

INSERT INTO aws.ssm.activations (
Description,
DefaultInstanceName,
IamRole,
RegistrationLimit,
ExpirationDate,
Tags,
RegistrationMetadata,
region
)
SELECT
'{{ Description }}',
'{{ DefaultInstanceName }}',
'{{ IamRole }}' /* required */,
{{ RegistrationLimit }},
'{{ ExpirationDate }}',
'{{ Tags }}',
'{{ RegistrationMetadata }}',
'{{ region }}'
RETURNING
activation_code,
activation_id
;

DELETE examples

Deletes an activation. You aren't required to delete an activation. If you delete an activation, you can no longer use it to register additional managed nodes. Deleting an activation doesn't de-register managed nodes. You must manually de-register managed nodes.

DELETE FROM aws.ssm.activations
WHERE region = '{{ region }}' --required
;