(under construction)
- boto3 v1.4.0
- flask v0.11.1
- netaddr v0.7.18
- Docker v:Latest (optional)
📓 refer to app/requirements.txt
for the full list of requirements
For testing:
- pytest
- moto
The following authentication environment variables:
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- AWS_SESSION_TOKEN
Use `make <target>` where <target> is one of:
build builds the docker image
build-no-cache builds the docker image with the '--no-cache=true option'
run creates and starts the docker container in the background
clean stops and removes the docker container
DESCRIPTION: Create a VPC
FORMAT: curl http://127.0.0.1:<port>/vpc/<action>
DETAILS:
Action: /check
Description: checks for the existence of a VPC
Parameters: [ region=<region_name>, cidr=<cidr_block> ]
Optional Parameters: none
Action: /create
Description: creates a VPC
Parameters: [ region=<region_name>, cidr=<cidr_block>, azs=<no_of_azs>, name=<project/api_name>, env=<env> ]
Optional Parameters: none
Action: /delete
Description: removes a VPC
Parameters: [ region=<region_name>, vpc-id=<vpc_id> ]
Optional Parameters: none
Action: /ping
Description: ping the API
Parameters: none
Optional Parameters: none
Action: /help
Description: prints this message
Parameters: none
Optional Parameters: none
Example:
curl http://127.0.0.1:5000/vpc/create?region=us-west-2\&cidr=10.10.10.0/23\&azs=3\&name=cloudops\&env=dev
make test
Python: