HTTPS

Part 5: HTTPS - Set up Amazon CloudFront

Complete The Cloud Resume Challenge The Challenge Part 1: Get AWS Certified and complete The Cloud Resume Challenge Part 2: HTML - Create a website Part 3: CSS - Style your website Part 4: Static Website - Amazon S3 –> Part 5: HTTPS - Set up Amazon CloudFront <– Part 6: DNS - Custom domain name with Amazon Route 53 Part 7-12: Backend - Creating a serverless API and requesting it with JS Part 13-16: CI/CD - Commit, Build and Deploy with AWS CodePipeline tl;dr: HTTPS is like HTTP, but secure. Use CloudFront to front your website redirecting HTTP to HTTPS. ...

March 1, 2025
policies

AWS Policies Cheatsheet

tl;dr: A small overview of AWS permissions and policies This is some notes or a cheatsheet I wrote while reading about AWS permissions and policies. It is a collection of information from the AWS documentation and other sources. Table of Contents Policy Types of Policies Evaluation of identity-based policies Identity-based and resource-based policies Cross-account access using IAM roles Service Control Policies (scps) How AWS evaluates policies Policy Consists of: Version: policy language version Id: optional identifier for policy (optional) Statement: One or more individual statements (required) Statements consists of: Sid: Identifier for the statement (optional) Effect: allow or deny Principal: account/user/role/service to which this policy applies Action: list of actions this policy allows/denies Resource: list of resources to which the actions applies Condition: conditions for when this policy is in effect (optional) { "Version": "2012-10-17", "Id": "ExamplePolicyWithCondition", "Statement": [ { "Sid": "AllowS3AccessWithCondition", "Effect": "Allow", "Principal": { "AWS": "arn:aws:iam::123456789012:role/MyExampleRole" }, "Action": "s3:GetObject", "Resource": "arn:aws:s3:::example-bucket/*", "Condition": { "IpAddress": { "aws:SourceIp": "203.0.113.0/24" } } } ] } Types of Policies Organizations resource control policies (RCPs): used to set permissions on AWS Organizations resources Organizations service control policies (SCPs): used to set permission guardrails across multiple AWS accounts Permissions boundaries: used to set the maximum permissions that an identity-based policy can grant to an IAM entity Resource-based policies: attached to resources (S3 bucket, SNS topic, SQS queue) Identity-based policies: attached to IAM identities (users, groups, roles) Session policies: passed when an IAM role is assumed Evaluation of identity-based policies: With resource-based policies: The resulting permissions are the union of the permissions. So only one, the other or both are needed for the action to be allowed. With permissions boundaries: The resulting permissions are the intersection of the permissions. So both the identity-based policy and the permissions boundaries must allow the action for the action to be allowed. With SCPs or RCPs: The resulting permissions are the intersection of the permissions. So both the identity-based policy and the SCPs or RCPs must allow the action for the action to be allowed. The only exceptions are principals that are part of the management account, which are not affected by SCPs or RCPs. Identity-based and resource-based policies In some cases resource-based policies are required as well as identity-based policies. ...

February 10, 2025
sam with terraform

Sam with Terraform: Test your serverless API locally

tl;dr: Use terraform as a template for SAM to run your serverless API locally with the flag --hook-name terraform. Table of Contents What is SAM? Setting up Terraform for SAM Building with SAM and Terraform Sam config file Invoking a lambda function locally Running API Gateway locally Adding local DynamoDB with Docker Conclusion Introduction Lambdas for serverless computing is great for creating applications fast without spending time on physical infrastructure. How ever, without a good pipeline and workflow, developing can take a lot of time. ...

February 6, 2025
static website with s3

Part 4: Static Website - Amazon S3

Complete The Cloud Resume Challenge The Challenge Part 1: Get AWS Certified and complete The Cloud Resume Challenge Part 2: HTML - Create a website Part 3: CSS - Style your website –> Part 4: Static Website - Amazon S3 <– Part 5: HTTPS - Set up Amazon CloudFront Part 6: DNS - Custom domain name with Amazon Route 53 Part 7-12: Backend - Creating a serverless API and requesting it with JS Part 13-16: CI/CD - Commit, Build and Deploy with AWS CodePipeline tl;dr: Host a static website from AWS S3 ...

January 7, 2025
css

Part 3: CSS - Style your website

Complete The Cloud Resume Challenge The Challenge Part 1: Get AWS Certified and complete The Cloud Resume Challenge Part 2: HTML - Create a website –> Part 3: CSS - Style your website <– Part 4: Static Website - Amazon S3 Part 5: HTTPS - Set up Amazon CloudFront Part 6: DNS - Custom domain name with Amazon Route 53 Part 7-12: Backend - Creating a serverless API and requesting it with JS Part 13-16: CI/CD - Commit, Build and Deploy with AWS CodePipeline tl;dr: Learn some basic CSS at w3schools.com. Style a website using CSS. ...

January 5, 2025
html

Part 2: HTML - Create a website

Complete The Cloud Resume Challenge The Challenge Part 1: Get AWS Certified and complete The Cloud Resume Challenge –> Part 2: HTML - Create a website <– Part 3: CSS - Style your website Part 4: Static Website - Amazon S3 Part 5: HTTPS - Set up Amazon CloudFront Part 6: DNS - Custom domain name with Amazon Route 53 Part 7-12: Backend - Creating a serverless API and requesting it with JS Part 13-16: CI/CD - Commit, Build and Deploy with AWS CodePipeline tl;dr: Create a website using HTML ...

January 4, 2025
The Cloud Resume Challenge

Part 1: Get AWS Certified and complete The Cloud Resume Challenge

Complete The Cloud Resume Challenge The Challenge –> Part 1: Get AWS Certified and complete The Cloud Resume Challenge <– Part 2: HTML - Create a website Part 3: CSS - Style your website Part 4: Static Website - Amazon S3 Part 5: HTTPS - Set up Amazon CloudFront Part 6: DNS - Custom domain name with Amazon Route 53 Part 7-12: Backend - Creating a serverless API and requesting it with JS Part 13-16: CI/CD - Commit, Build and Deploy with AWS CodePipeline tl;dr: Complete an AWS Certification Exam and create an AWS Account. Next we’ll create a website using different AWS services. Following the steps of The Cloud Resume Challenge ...

January 3, 2025
aws s3

CI/CD workflow - GitHub Actions upload to AWS S3

tl;dr: Script to sync github repo with S3: https://github.com/jakejarvis/s3-sync-action Workflow Writing this blog I want as little friction as possible. By that I mean that i want as short as possible distance/time/clicks between me writing a post in a markdown file and the blog being updated on the world wide web. My solution to this goal was version control on GitHub and creating a pipeline with GitHub Actions, that would deploy my webpage automatically on push to main. This way all I need to do is write a new blog post and push it to git ...

December 29, 2024
hugo logo

Generating a website with Hugo

Creating a blog The first blog page I created I wrote the frontend in react and styled it with CSS. I spend 90% of my time writing code and 10% writing actual posts. Which was fine since the whole reason I created the site was to practice writing code. I wrote posts in markdown and used pandoc to convert them to html and then fixing whatever I was unhappy with manually. But later when I actually wanted to create some content documenting the things I learn or things that interests me I wanted to find a framework where I could just create my notes and posts in markdown (as I already was doing) and have everything else automatically generated. ...

December 21, 2024