dynamodb_ttl
Set TTL for a given DynamoDB table
Collection: community.aws
Full Name: community.aws.dynamodb_ttl
Synopsis
Set TTL for a given DynamoDB table
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| access_key | str | |||
| attribute_name | str | yes | ||
| aws_ca_bundle | path | |||
| aws_config | dict | |||
| debug_botocore_endpoint_logs | bool | false | ||
| endpoint_url | str | |||
| profile | str | |||
| region | str | |||
| secret_key | str | |||
| session_token | str | |||
| state | str | |||
| table_name | str | yes | ||
| validate_certs | bool | true |
Example
yaml
- name: enable TTL on my cowfacts table
community.aws.dynamodb_ttl:
state: enable
table_name: cowfacts
attribute_name: cow_deleted_date
- name: disable TTL on my cowfacts table
community.aws.dynamodb_ttl:
state: disable
table_name: cowfacts
attribute_name: cow_deleted_date