This repository contains a Python script that automates the setup of an API Gateway proxy in AWS using Boto3. The script creates the API Gateway, API key, usage plan, resources, methods, integrations, responses, and deployment. It also configures the AWS CLI for authentication.
Before running the script, make sure you have the following:
- Python 3.x installed
- AWS CLI installed and configured with appropriate IAM credentials
-
Clone this repository to your local machine:
git clone https://github.com/H0llyW00dzZ/aws-api-gateway-proxy-setup.git
-
Install the required Python dependencies:
pip install -r requirements.txt
-
Configure the AWS CLI profiles:
python main.py ACCESS_KEY SECRET_KEY
Replace
ACCESS_KEY
andSECRET_KEY
with your AWS access key and secret key.
To create the API Gateway proxy, run the following command:
python main.py ACCESS_KEY SECRET_KEY
Replace ACCESS_KEY
and SECRET_KEY
with your AWS access key and secret key.
The script will create the API Gateway proxy and print the URL of the deployed API Gateway.
This project is licensed under the MIT License. Feel free to modify and distribute the code as per the terms of the license.