def getTransitConfig(bucket_name, bucket_prefix, s3_url, config_file):
s3 = boto3.client('s3', endpoint_url=s3_url,
config=Config(s3={'addressing_style': 'virtual'}, signature_version='s3v4'))
log.info("Downloading config file: %s/%s/%s%s", s3_url, bucket_name, bucket_prefix,config_file)
return ast.literal_eval(s3.get_object(Bucket=bucket_name,Key=bucket_prefix+config_file)['Body'].read())
#Logic to upload a new/updated transit VPC configuration file to S3 (not currently used)
transit-vpc-push-juniper-config.py 文件源码
python
阅读 34
收藏 0
点赞 0
评论 0
评论列表
文章目录