Automatically install software to your new AWS EC2 instances

cloud-computing-concept-in-box

When creating an AWS EC2 instance, you can configure a startup script or list of commands to be automatically executed. The commands are performed immediately following initialization and the process allows you to start multiple configured instances. This saves time by having programs install themselves before you have ever even needed to log in. The Advanced Details section in Step 6 of creating a new EC2 instance in the AWS dashboard provides a text area to enter all commands. The example in the photo shows some commands to update and install MySQL Database on an enterprise Linux instance. This allows a user to have access to an … Read More

Compatibility of AWS EC2 API Actions and IAM Policy Resource-Level Permissions

Compatibility of AWS EC2 API Actions and IAM Policy Resource-Level Permissions

In this blog post I will examine how partial implementation of a feature of IAM policies: resource-level permissions interacts with AWS EC2 API actions to produce confusing results. Please note that AWS states in its documentation that it is planning on expanding the compatibility of resource-level permissions, so check the links at the bottom of this post for the most up-to-date information. Below is a short python program (troubleshooting.py) that utilizes the ec2:DescribeVolumes action. As you can see, I have omitted the access/secret key pair. If you wish to use this code, simply insert your access/secret key you obtained from the IAM … Read More