A Virtual Private Cloud (VPC) allows you to launch resources in an isolated virtual network without the use of VPN’s or hardware. With a VPC, you define how the resources in your network are exposed to the internet.

For this VPC, 3 public and 3 private subnets will be created, along with an Internet Gateway, Route Table, and NAT Gateway.

The goal for this VPC setup is to allow our private resources access to the internet, and restrict access from the internet to our resources.

To begin, create a new directory to isolate these resources from any others in your…


Python will be required for this project. If you don’t have python currently installed, follow the link below for more information on how to install it. You will need Homebrew to install for a Mac OS and Chocolatey for Windows OS.
https://wiki.python.org/moin/BeginnersGuide/Download

After installation, verify the version that you have installed

$ python3 —- version
Python 3.7.6

Now let’s get started on the name generator. Create a greeting for the name generator so that the user knows what program they are using.

print("Welcome to the Band Name Generator")

We’ll want to ask the user for inputs that will combine to…


Python will be required for this project. If you don’t have python currently installed, follow the link below for more information on how to install it. You will need Homebrew to install for a Mac OS and Chocolatey for Windows OS.
https://wiki.python.org/moin/BeginnersGuide/Download

After installation, verify the version that you have installed

$ python3 —- version
Python 3.7.6

Now we can start creating the bill split and tip calculator using a code editor like VSCode or Atom. I’ll walk you through step-by-step, but my entire code is listed at the end of the article.

Create a new .py file and start…


We will create a CloudFront distribution using the AWS Console and link it to a WAF ACL.

Start by having an EC2 instance or ELB running for this project

Open the Amazon CloudFront console at https://console.aws.amazon.com/cloudfront/home?# and create a distribution.

In the Web section, click Get Started.


We can create users and groups with AWS Identity and Access Management (IAM) and manage their access to AWS services and resources through permissions.

IAM Users

Creating an IAM user:

To create a single IAM user in Terraform, create an aws_iam_user resource block and give it a name. If we only need to create one user, this is a relatively simple step.

resource "aws_iam_user" "demouser" {    name = "tuckerdemo"}

Creating multiple IAM users:

There are different ways to create multiple IAM users.

We could copy and paste the resource block from our first user and give the subsequent blocks new names…


This is a step-by-step tutorial of how to write files from AWS EC2 to S3 programmatically using EC2, S3, IAM, and Python.

We’ll take the following steps to setup a scenario to explore accessing S3 programmatically and writing files to a bucket in the CLI.

  1. Create an S3 bucket
  2. Create an EC2 instance
  3. Create an IAM role
  4. Apply role to EC2
  5. Write python code on EC2
  6. Inspect the file

1. Create an S3 Bucket

  • Navigate to S3 and create a bucket
  • Give the bucket a name (my-ec2-files-project), ignore versioning, tags, and encryption settings while keeping the “block all public access” setting.
  • Create Bucket and it…

Tucker Clinton

Starting with zero IT experience and working toward a career in cloud. I’ll be documenting some of my progress here!

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store