Browsed by
Tag: aws

AWS IAM – Creating Users with Limited Rights

AWS IAM – Creating Users with Limited Rights

In the past few tutorials I have shown you how to do some basic things with AWS. It is my guess that a few people have used their AWS root user account to perform some of these things. While functional, this is against best practices. When performing the tutorials or modifying them to suit your environment it is vital to create an IAM user and assign it the least amount of privileges needed to perform the role. Similar to what…

Read More Read More

Static Website on S3 Bucket with Route 53 for DNS – CLI

Static Website on S3 Bucket with Route 53 for DNS – CLI

Last week I posted a generic tutorial on how to create S3 buckets and setup Route 53 so that you can access your static website via the domain. This week lets automate this so we don’t have to go through this mess again and we can simply run a script that is as simple as: In short here is the execution order of this script Collects information from the user Validates the region is correct, and sets the hosted zone…

Read More Read More

Static Website on S3 Bucket with Route 53 for DNS

Static Website on S3 Bucket with Route 53 for DNS

If you would like to host static content and have its own domain, Route 53 makes the domain part of this possible and S3 makes the content part possible. Before I covered how to make an S3 bucket and host content, today we will tie together Route 53 with this. If you already know how to create the bucket, this should be easy there are some very minor changes. Bucket 1 Creation (domainexample.com – no www. in front of it)…

Read More Read More

Static Website Deployment on a S3 Bucket with GitHub and CodePipeline

Static Website Deployment on a S3 Bucket with GitHub and CodePipeline

I have a static website I want to periodically change but I manage the code on GitHub, how can I host this on a S3 bucket and ensure the content is synced? This isn’t actually as daunting as it may sound, getting this to sync with AWS S3 is relatively easy with CodePipeline. Like with many AWS services, there is a small cost. I will be reusing one of the S3 buckets from a previous tutorial for this, specifically tutorial-001-sj….

Read More Read More

WordPress on Amazon Lightsail – CLI

WordPress on Amazon Lightsail – CLI

Like with some of the other tutorials I have written, it is possible to do the whole deployment via command line. In this case, it is a simple one liner. There is certainly a lot more that can be done, and I strongly read up on some of the commands below. The blueprints and bundles will change over time as things get updated. If you are creating your first instance this way, ensure you download your key. If you are…

Read More Read More

WordPress on Amazon Lightsail

WordPress on Amazon Lightsail

Lets say you wanted to host a WordPress blog and you had a small budget (first month was free when I wrote this!) but also wanted to do it in the cloud just for fun, Lightsail provides you the ability to do this. Sign into the AWS Console Under “Find Services” type in “Lightsail” and select Lightsail. Click on “Create an instance”, under “Instance location” change the region to one that is near you. In my case I went with…

Read More Read More

Automating S3 Bucket Creation for Websites – CLI

Automating S3 Bucket Creation for Websites – CLI

Last week I wrote a post about creating an S3 Bucket to host a static website. After I posted it I began to wonder, could we command line this to make it creating a bucket a quicker task? This post assumes you have the CLI installed and know the very basics on how to use it. Here is the rundown of the logic and what steps need to take place: A bucket needs to be created, region selected Public access…

Read More Read More

Create an S3 Bucket That Can Host a Website

Create an S3 Bucket That Can Host a Website

If you would like to host static content, Amazon AWS is one of the easiest methods to do so with a very low cost of entry. Creating a S3 bucket is the first step towards doing so. Sign into the AWS Console Under “Find Services” type in “S3” and select S3. Next, click on “Create Bucket”. For the purpose of this tutorial I will call the bucket “tutorial-001-sj”. I have also changed the region to the one nearest me, this…

Read More Read More