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

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

项目:aws-transitVPC-jnpr 作者: serrollc 项目源码 文件源码
def putTransitConfig(bucket_name, bucket_prefix, s3_url, config_file, config):
    s3=boto3.client('s3', endpoint_url=s3_url,
                    config=Config(s3={'addressing_style': 'virtual'}, signature_version='s3v4'))
    log.info("Uploading new config file: %s/%s/%s%s", s3_url,bucket_name, bucket_prefix,config_file)
    s3.put_object(Bucket=bucket_name,Key=bucket_prefix+config_file,Body=str(config))

#Logic to download the SSH private key from S3 to be used for SSH public key authentication
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号