transit-vpc-push-juniper-config.py 文件源码

python
阅读 34 收藏 0 点赞 0 评论 0

项目:aws-transitVPC-jnpr 作者: serrollc 项目源码 文件源码
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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号