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()
评论列表
文章目录