Category: IaC

  • How CloudTrail Enhances AWS Log Management

    How CloudTrail Enhances AWS Log Management

    CloudTrail is useful in logging API events, such as creating a VPC or instance, and also non-API events (such as logging in using the AWS Management Console), both management and data events. By default, management events are captured for 90 days, but if you want to capture data events (like s3 bucket or lambda), or…

  • AWS Management & Monitoring

    When first setting up my AWS account, it was stressed on the importance of creating a Budget alarm, and also alerts (usually receveiving an SNS or email) for when budget or other resource limits were passed. So, my understanding of CloudTrail and CloudWatch has been very limited, but as I have begun to learn about…

  • AWS Architecting MySQL and Workbench

    In this exercise, I’m going to pull together a number of different threads – namely, the design and implementation of the infrastructure to spin up an EC2 instance (hosting Workbench, which will allow me to interact with a database) and an RDS MySQL instance. My objective is to be able to create a database and…

  • Deploying Container with Fargate

    Building on my previous post where I created a docker container and pushed it to Docker Hub, I’m going to be using the AWS ECS service to deploy said container, and I’ll be using the Fargate service. In ECS, I create a cluster named ‘inspiring_pictures_container’, and am a little perplexed because I don’t see the…

  • From local to EC2: Docker Apache Web App

    I’ve been following a tutorial which describes how to use containers within the AWS environment- it’s well done (Cantrill) but it does require the user (me) to simply download a pre-packaged container-ready file as part of a Cloud Formation deployment. That works for the intention of the author – provide a good, birds-eye view of…

  • Not cookies..Baking an AMI!

    In a previous post I manually spun up an EC2 instance and then installed and configured an Apache server and MariaDB to run a WP instance. It was useful for learning purposes, and as a reference of the benefits of automation! In this post, I’m going to be baking an AMI image, that is, creating…

  • How *not* to use AWS services: monolithic WP installation on single EC2

    I’ve been working with Terraform in creating an EC2 instance and provisioning it within a single AZ and subnet. I haven’t instantiated any scaling groups yet, though that’s on the near horizon, which is, along with an ELB, important for failover reasons and minimizing risks. In this post, I’m going to get some hands-on experience…

  • EC2 + SG + Key-Pair with AWS CLI

    These are the steps that I took to spin up an EC2 instance within the us-west-2 region, utilizing the Amazon Linux 2 AMI and t2.micro instance type. First, you have to make sure that you have the AWS CLI installed and configured on your local machine. Second, find the Amazon Linux 2 AMI IDs that…

  • AWS Console: VPC+SN+SG+EC2+RT

    In this post, I’m going to detail my journey building out this infrastructure. Here’s the goal: The goal is to practice a few things besides the deployment of these resources: INTRO: There’s a lot of directions that this project can grow, but the scope for this particular project is limited in scope: the ability for…

  • Terraform: Data Source: Debian > Amazon Linux 2

    In my previous iteration of using Terraform to configure AWS resources to build out the infrastructure needed (VPC, AZ, subnet, security group, Internet Gateway, Subnet Association) to host a running EC2 server, I used a Data Source that spun up a Debian instance. That worked great but tbh I have been spending most of my…