Quick *nix commands to generate a login URL to your AWS Management Console.
Just a list of frequently-used Docker CLI commands.
Declaring Multiple Ingress/Egress Rules in an AWS::EC2::SecurityGroup
You can embed multiple ingress/egress rules in a single AWS::EC2::SecurityGroup CloudFormation template Resource declaration. Just be sure to format your template correctly. Don’t do what I did!
How to Enable an EC2 Instance to Access Files on S3 Buckets
An Amazon EC2 instance needs to be given privileges and opened ports in order to access files on an Amazon S3 bucket. This post offers a quick reference, as well as a tutorial to walk you through setting up an EC2 and copying files between an EC2 and S3 bucket.
AWS Cost Estimation with CloudFormation CLI
`estimate-template-cost` is a nifty command for creating an estimate of costs associated with your AWS CFN template. Results are viewed in a browser window.
How to Find an AWS Marketplace AMI Image ID
Finding an AWS Marketplace AMI image ID is not always straight-forward, but it’s getting easier. Here’s how to find that ID, as of 02/2020.
Create an AWS Lambda Function using CloudFormation
With this tutorial, you learn the basics of AWS Lambda by creating a classic “Hello World” function. You’ll use CloudFormation from the command line to create the Lambda function, then manually invoke it to prove it works.
Getting Started with AWS CloudFormation
This step-by-step, hands-on AWS CloudFormation tutorial is ideal for beginners. You will create a simple CloudFormation stack containing a single resource. And you’ll be doing it twice: with AWS CloudFormation Console, then with AWS Command Line Interface (AWS CLI).
Create EC2 Key Pairs Using AWS CLI
A key pair is required when connecting to an AWS EC2 instance. I’ll step you through how to create a key pair without having to go to the Amazon Management Console.
scikit-learn’s SimpleImputer lacks parameter for imputing across rows. Here’s a workaround.
Unfortunately, scikit-learn Python library Class Imputer is now deprecated and the replacement does not include an axis parameter. Here’s a work-around.
Jupyter Notebook doesn’t render on GitHub? Use nbviewer.
You attempt to open a Jupyter Notebook in your GitHub repository and get the dreaded ‘Sorry, something went wrong. Reload?’ message. Don’t dispair, use nbviewer!
Got a new AWS account? Do these 3 steps now.
A new AWS account is granted, by default, root privileges. That means it has access to everything. Best practices dictate we avoid using root privileges whenever possible: Enable Multi-Factor Authentication, create and use an Administrator user account instead of root. Also, setup billing alerts to avoid surprise charges.