aws_info_helper/scripts/ec2_update_collection.py
def main(**kwargs):
    """Update info in AWS_EC2 and AWS_IP redis-helper collections"""
    if kwargs['all'] is True:
        for profile in get_profiles():
            ec2 = EC2(profile)
            ec2.update_collection()
    else:
        ec2 = EC2(kwargs['profile'])
        ec2.update_collection()
    if kwargs['non_interactive'] is not True:
        ih.start_ipython(ec2=AWS_EC2, ip=AWS_IP)
Update info in AWS_EC2 and AWS_IP redis-helper collections
Update info in AWS_EC2 and AWS_IP redis-helper collections
Update info in AWS_EC2 and AWS_IP redis - helper collections
def main(**kwargs):
    if kwargs['all'] is True:
        for profile in get_profiles():
            ec2 = EC2(profile)
            ec2.update_collection()
    else:
        ec2 = EC2(kwargs['profile'])
        ec2.update_collection()
    if kwargs['non_interactive'] is not True:
        ih.start_ipython(ec2=AWS_EC2, ip=AWS_IP)
def main ( ** kwargs ) : if kwargs [ 'all' ] is True : for profile in get_profiles ( ) : ec2 = EC2 ( profile ) ec2 . update_collection ( ) else : ec2 = EC2 ( kwargs [ 'profile' ] ) ec2 . update_collection ( ) if kwargs [ 'non_interactive' ] is not True : ih . start_ipython ( ec2 = AWS_EC2 , ip = AWS_IP )
Update info in AWS_EC2 and AWS_IP redis-helper collections
Update info in AWS_EC2 and AWS_IP redis - helper collections
"""Update info in AWS_EC2 and AWS_IP redis-helper collections"""