PARALLAX

redshift_info

Gather information about Redshift cluster(s)

Collection: community.aws

Full Name: community.aws.redshift_info

Synopsis

Gather information about Redshift cluster(s)

Parameters

NameTypeRequiredDefaultDescription
access_keystr
aws_ca_bundlepath
aws_configdict
cluster_identifierstr
debug_botocore_endpoint_logsboolfalse
endpoint_urlstr
profilestr
regionstr
secret_keystr
session_tokenstr
tagsdict
validate_certsbooltrue

Example

yaml
- name: Find all clusters
  community.aws.redshift_info:
  register: redshift

- name: Find cluster(s) with matching tags
  community.aws.redshift_info:
    tags:
        env: prd
        stack: monitoring
  register: redshift_tags

- name: Find cluster(s) with matching name/prefix and tags
  community.aws.redshift_info:
    tags:
        env: dev
        stack: web
    name: user-
  register: redshift_web

- name: Fail if no cluster(s) is/are found
  community.aws.redshift_info:
    tags:
        env: stg
        stack: db
  register: redshift_user
  failed_when: redshift_user.results | length == 0
Search
    ↑ ↓ move↵ openesc close