AWS
create_document
Creates a Systems Manager (SSM) document
Add or update a parameter in the Systems Manager Parameter Store
Below are the details and signature of the activity Python module.
Type | action |
Module | chaosaws.ssm.actions |
Name | put_parameter |
Return | mapping |
Usage
JSON
{
"name": "put-parameter",
"type": "action",
"provider": {
"type": "python",
"module": "chaosaws.ssm.actions",
"func": "put_parameter",
"arguments": {
"name": "",
"value": ""
}
}
}
YAML
name: put-parameter
provider:
arguments:
name: ""
value: ""
func: put_parameter
module: chaosaws.ssm.actions
type: python
type: action
Arguments
Name | Type | Default | Required | Title | Description |
---|---|---|---|---|---|
name | string | Yes | Name | Name of the parameter to set | |
value | string | Yes | Value | Value for the parameter | |
description | string | null | No | Description | |
type | string | null | No | Parameter Type | Type such as String |
key_id | string | null | No | KMS Key ID | KMS key identifier to encrypt the value |
overwrite | boolean | false | No | Overwrite | If the parameter exists, should it be overwritten |
allowed_pattern | string | null | No | Validation Pattern | Regex to validate the parameter value |
tags | list | null | No | Tags | |
tier | string | null | No | Tier | Storage class |
policies | string | null | No | Policies | Storage policies |
data_type | string | null | No | Data Type | Validation data type for String value |
Example configuration within experiment
{
"name": "Activate Chaos",
"type": "action",
"provider": {
"type": "python",
"module": "chaosaws.ssm.actions",
"func": "put_parameter",
"arguments": {
"name": "chaos_trigger",
"value": true,
"overwrite": true,
"type": "SecureString"
}
}
}
Signature
def put_parameter(name: str,
value: str,
description: str = None,
type: str = None,
key_id: str = None,
overwrite: bool = False,
allowed_pattern: str = None,
tags: List[Dict[str, str]] = None,
tier: str = None,
policies: str = None,
data_type: str = None,
configuration: Dict[str, Dict[str, str]] = None,
secrets: Dict[str, Dict[str, str]] = None) -> Dict[str, Any]:
pass