This repository contains a Python script that tests the connectivity between an EC2 instance, an RDS instance, and an S3 bucket. The results are displayed on a webpage using the Flask web framework. This project can be useful for ensuring that your AWS infrastructure components can communicate with each other properly.
- RDS Connectivity Test: Connects to a PostgreSQL RDS instance and executes a simple query.
- S3 Connectivity Test: Lists the objects in a specified S3 bucket.
- Web Interface: Displays the results of the connectivity tests on a webpage for easy viewing.
- Python 3.x
- AWS credentials with appropriate permissions
- An RDS instance (PostgreSQL)
- An S3 bucket
- Clone the repository:
git clone https://github.com/yourusername/aws-connectivity-test.git cd aws-connectivity-test
- Install the requirements
sudo apt-get install libpq-dev - Ubuntu sudo yum install postgresql-devel - Centos pip install boto3 psycopg2-binary flask
- Run the application :
python3 test_connection.py