Category Archives: Uncategorized

Generating X.509 Certificates

Generate a Certificate Authority (CA) Generate a RSA Private Key openssl genrsa -out ca.key 2048 Generate a Certificate Input: ca.key Output: ca.pem openssl req -new -x509 -days 365 -key ca.key -out ca.pem  It prompts to enter the following information: Country Name … Continue reading

Posted in Uncategorized | Tagged , , , | Leave a comment

AWS Auto-healing VPC NAT Instance

If the NAT instance is terminated or stopped, the status will become”Black Hole” in the route table. All instances in private subnets that associate with the route table will no longer be able to connect to the Internet until the … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , | 1 Comment

Prepare Mac OSX to Test Chef recipes for AWS OpsWorks

This post is a supplement to Cookbooks 101 in AWS OpsWorks documentation to prepare a Mac OSX to test Chef recipes for OpsWorks using the following tools: Vagrant VirtualBox Chef Development Kit AWS Command Line Interface Installing Vagrant, VirtualBox and Chef Development … Continue reading

Posted in Uncategorized | Tagged , , , , , , , | Leave a comment

Report Number of Objects and Bucket Size for S3

Use the AWS Command Line Interface (AWS CLI) to report number for objects and bucket size for S3 in Amazon Linux. It will print out three columns separated by tabs. The first column is the bucket name. The second column is … Continue reading

Posted in Uncategorized | Tagged , , , , | Leave a comment

IAM Policy for Self-managing Credentials and MFA Device

This is an IAM policy to allow users to manage their own MFA device and credentials including access keys on the AWS console.  The CloudFormation script below creates the policy and assign it to an existing group. [gist https://gist.github.com/schen1628/3837ce8c087af2584b44 /] Refer to http://docs.aws.amazon.com/IAM/latest/UserGuide/Credentials-Permissions-examples.htmlContinue reading

Posted in Uncategorized | Tagged , , , , , | 1 Comment

Setting up EC2 Operator Instance with CloudFormation

This post is to extend my post about Auto Start and Stop Your EC2 Instance. I put together a CloudFormation template to automate the process to set up the EC2 Operator instance. You can find the CloudFormation template in my github repository. I am … Continue reading

Posted in Uncategorized | Tagged , , , , , | 3 Comments