This repository contains a demo project created as part of my DevOps studies in the TechWorld with Nana – DevOps Bootcamp.
Demo Project: Automate configuring EC2 Server Instances
Technologies used: Python, Boto3, AWS
Project Description:
- Write a Python script that automates adding environment tags to all EC2 Server instances
Install Python dependencies with uv:
uv syncConfigure AWS credentials at ~/.aws/credentials:
[default]
aws_access_key_id = AKIA...
aws_secret_access_key = ...And the default region at ~/.aws/config:
[default]
region = us-east-1Navigate to AWS Dashboard → EC2 → Launch instances.
- Region: Europe (Frankfurt) —
eu-central-1 - Number of instances:
2 - Leave all other settings at their defaults.
- Region: Europe (Paris) —
eu-west-3 - Number of instances:
1 - Leave all other settings at their defaults.
The script tags Frankfurt instances as environment=prod and Paris instances as environment=dev.
Source: add-env-tags.py
Run:
python3 ./add-env-tags.pyA successful run produces no output.
For each instance, open Instance → Tags and confirm the environment tag is set.
Frankfurt (environment=prod):
Paris (environment=dev):


