def validate_bucket(self):
        """
        Do a quick check to see if the s3 bucket is valid
        :return:
        """
        s3_check_cmd = "aws s3 ls s3://{} --profile '{}' --region '{}'".format(self.bucket_name, self.aws_project,
                                                                               self.aws_regions[0])
        print "Checking for s3 bucket"
        try:
            subprocess.check_output(shlex.split(s3_check_cmd))
        except subprocess.CalledProcessError as e:
            print "Error: {}".format(e)
            print "Unable to query s3 bucket: {}. Validate that it exists, and your user has sufficient permissions"\
                .format(self.bucket_name)
            sys.exit(5)
def validate_bucket ( self ) : s3_check_cmd = "aws s3 ls s3://{} --profile '{}' --region '{}'" . format ( self . bucket_name , self . aws_project , self . aws_regions [ 0 ] ) print "Checking for s3 bucket" try : subprocess . check_output ( shlex . split ( s3_check_cmd ) ) except subprocess . CalledProcessError as e : print "Error: {}" . format ( e ) print "Unable to query s3 bucket: {}. Validate that it exists, and your user has sufficient permissions" . format ( self . bucket_name ) sys . exit ( 5 )
Do a quick check to see if the s3 bucket is valid
        :return: