.. _community.aws.aws_ssm_connection:
*********************
community.aws.aws_ssm
*********************
**execute via AWS Systems Manager**
.. contents::
:local:
:depth: 1
Synopsis
--------
- This connection plugin allows ansible to execute tasks on an EC2 instance via the aws ssm CLI.
Requirements
------------
The below requirements are needed on the local Ansible controller node that executes this connection.
- The remote EC2 instance must be running the AWS Systems Manager Agent (SSM Agent).
- The control machine must have the aws session manager plugin installed.
- The remote EC2 linux instance must have the curl installed.
Parameters
----------
.. raw:: html
| Parameter |
Choices/Defaults |
Configuration |
Comments |
|
access_key_id
-
added in 1.3.0
|
|
var: ansible_aws_ssm_access_key_id
|
The STS access key to use when connecting via session-manager.
|
|
bucket_name
-
|
|
var: ansible_aws_ssm_bucket_name
|
The name of the S3 bucket used for file transfers.
|
|
bucket_sse_kms_key_id
-
added in 2.2.0
|
|
var: ansible_aws_ssm_bucket_sse_kms_key_id
|
KMS key id to use when encrypting objects using bucket_sse_mode=aws:kms. Ignored otherwise.
|
|
bucket_sse_mode
-
added in 2.2.0
|
|
var: ansible_aws_ssm_bucket_sse_mode
|
Server-side encryption mode to use for uploads on the S3 bucket used for file transfer.
|
|
instance_id
-
|
|
var: ansible_aws_ssm_instance_id
|
The EC2 instance ID.
|
|
plugin
-
|
Default:
"/usr/local/bin/session-manager-plugin"
|
var: ansible_aws_ssm_plugin
|
This defines the location of the session-manager-plugin binary.
|
|
profile
-
added in 1.5.0
|
|
var: ansible_aws_ssm_profile
|
Sets AWS profile to use.
|
|
reconnection_retries
integer
|
Default:
3
|
var: ansible_aws_ssm_retries
|
Number of attempts to connect.
|
|
region
-
|
Default:
"us-east-1"
|
var: ansible_aws_ssm_region
|
The region the EC2 instance is located.
|
|
secret_access_key
-
added in 1.3.0
|
|
var: ansible_aws_ssm_secret_access_key
|
The STS secret key to use when connecting via session-manager.
|
|
session_token
-
added in 1.3.0
|
|
var: ansible_aws_ssm_session_token
|
The STS session token to use when connecting via session-manager.
|
|
ssm_timeout
integer
|
Default:
60
|
var: ansible_aws_ssm_timeout
|
Connection timeout seconds.
|