Beispiel #1
0
def main():
    config_parse_file()

    redshift = aws_client('redshift', "us-east-2")

    if check_cluster_creation(redshift):
        print('cluster available')
        destroy_redshift_cluster(redshift)
        print('New redshift cluster status: ')
        print(get_redshift_cluster_status(redshift))
    else:
        print('not yet...')
Beispiel #2
0
def main():
    config_parse_file()

    redshift = aws_client('redshift', "us-east-2")

    if check_cluster_creation(redshift):
        print('available')
        ec2 = aws_resource('ec2', 'us-east-2')
        config_persist_cluster_infos(redshift)
        aws_open_redshift_port(ec2, redshift)
    else:
        print('notyet')
def main():
    config_parse_file()

    redshift = aws_client('redshift', 'us-east-2')

    if check_cluster_creation(redshift):
        print('available')
        destroy_redshift_cluster(redshift)
        print('New redshift cluster status: ')
        print(get_redshift_cluster_status(redshift))
    else:
        print('Not Yet!!')
Beispiel #4
0
def main():
    config_parse_file()

    redshift = aws_client('redshift', "us-east-2")

    if check_cluster_creation(redshift):
        print('cluster available!')
        # Create an AWS client resource
        ec2 = aws_resource('ec2', 'us-east-2')
        # Write back to the dwh.cfg configuration file the cluster endpoint and IAM ARN
        config_persist_cluster_infos(redshift)
        # Open the Redshift port on the VPC security group.
        aws_open_redshift_port(ec2, redshift)
    else:
        print('Not Yet...')