importer.py 文件源码

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

项目:gateway_manager 作者: binarydud 项目源码 文件源码
def main(region, profile='default'):
    session = boto3.Session(
        profile_name=profile,
        region_name=region
    )
    apex_json = json.load(open('project.json'))
    raml = ramlfications.parse('api_schema.raml')
    gateway = ApiGateway(raml, apex_json, session)
    print 'Creating Api Gateway'
    gateway.create()
    gateway.load()
    print 'Creating Authorizers'
    gateway.create_authorizers()
    print 'Creating Resources'
    gateway.create_resources()
    print 'Deploying Stage'
    print gateway.create_deployment()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号