aws.redshift package

Submodules

aws.redshift.helpers module

aws.redshift.helpers.redshift_cluster_security_group_test_id(security_group)[source]
aws.redshift.helpers.redshift_cluster_security_group_is_open_to_all_ips(security_group)[source]

Returns True if the security group grants access to all IPs.

Does not check EC2 Security groups.

>>> redshift_cluster_security_group_is_open_to_all_ips({'IPRanges': [{'CIDRIP': '0.0.0.0/0'}]})
True
>>> redshift_cluster_security_group_is_open_to_all_ips({'IPRanges': [{'CIDRIP': '::/0'}]})
True
>>> redshift_cluster_security_group_is_open_to_all_ips({'IPRanges': [{'CIDRIP': '192.168.1.1'}]})
False
>>> redshift_cluster_security_group_is_open_to_all_ips({'IPRanges': []})
False
>>> redshift_cluster_security_group_is_open_to_all_ips({})
False

aws.redshift.resources module

aws.redshift.resources.redshift_clusters()[source]

botocore.readthedocs.io/en/latest/reference/services/redshift.html#Redshift.Client.describe_clusters

aws.redshift.resources.redshift_cluster_security_groups()[source]

http://botocore.readthedocs.io/en/latest/reference/services/redshift.html#Redshift.Client.describe_cluster_security_groups

aws.redshift.test_redshift_security_group_does_not_allow_all_ips_access module

Module contents