plugin: amazon.aws.aws_rds
access_key: '{{ aws_access_key }}'
secret_key: '{{ aws_secret_key }}'
{% if security_token | default(false) %}
session_token: '{{ security_token }}'
{% endif %}
regions:
  - '{{ aws_region }}'
keyed_groups:
  - key: 'db_parameter_groups|map(attribute="db_parameter_group_name")'
    prefix: rds_parameter_group
  - key: tags
    prefix: tag
  - key: engine
    prefix: rds
filters:
  db-instance-id: "{{ instance_id }}"
