Typical AWS infrastructure using boto3.
boto3-python-practice's Introduction
boto3-python-practice's People
Forkers
jfeliteboto3-python-practice's Issues
[BOT-3] Add routes and route tables for the public and private subnets
You may refer to the doc about creating route tables and routes.
If an internet gateway was already created, add it to the route table of the public subnet.
[BOT-13] A separate script for deleting resources
A great advantage of what we are doing in the main script of ours is that we tag everything with the boto3 prefix. However, things can go wrong and sometimes the resources don't end up being deleted (an exception happens before they could be deleted).
To save us from the manual work of having to delete everything in the AWS console, we could come up with a strategy to delete any of the resources that we use (ALB, target groups, security groups, subnets, etc.) that are tagged with the boto3 prefix. Note that the order of deletion is crucial since otherwise we may face the issue of dependency related errors.
[BOT-8] Create a target group
Also add the public EC2s if they exist
[BOT-16] Static website hosting on s3
Enable static website hosting (+ appropriate bucket rules) on the uploaded web page so that anyone can access the website. Print the endpoint in the Python console, once static hosting has been enabled.
[BOT-4] Create and attach an internet gateway to the VPC
Note that if the route tables were already created, update them accordingly.
Feel free to refer to help from the docs here
[BOT-15] Write a simple html web page and upload it to the s3 bucket
[BOT-11] Look for alternative ways for tagging
I came up with a method for tagging but there might be better alternative ways of doing that.
[BOT-7] Create a private EC2
Also add the private security group to it.
[BOT-2] Add private subnets
[BOT-5] Create a public and private EC2 security group
[BOT-10] Create an application load balancer
Add the ALB security group and the target group to the load balancer.
[BOT-9] Create a security group for the load balancer
Route traffic from the public EC2s to the internet and vice-versa.
[BOT-6] Create a public EC2
Also add the public security group to it.
[BOT-1] Create public subnet(s)
[BOT-14] Create a separate s3.py script which creates an s3 bucket
[BOT-12] Make sure to create at least two public subnets in different availability zones without explicitly specifying the availability zones
We should avoid explicitly specifying the availiability zones (e.g. us-east-1) because the program should work in any region.
Since all regions have at least two availability zones, we could retrieve the availiability zones in the current region and randomly select two different availability zones.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.