This is one of my side projects. It is written in Python and Bash. The step is very straight forward: Download the current production version -> Add the rules, then pushes it to the staging -> Test the redirect in staging -> If passed, push it to production. If not, notify the user which one … Continue reading Automate Akamai Cloudlets Edge Redirect
Tag: AWS
First tsung load testing
Just finished my first 'official' web server load testing by using the bamboo plan for tsung that I built previously. Here are a few things that I learned: When set use_controller_vm="true", by default maxusers is 800. Adding maxusers="50000" for example to change it. For testing proxy server, the option has to be configured as <option type="ts_http" name="http_use_server_as_proxy" value="true"></option> arrivalrate means … Continue reading First tsung load testing
Bamboo plan for tsung
We recently created a dedicated bamboo plan for using tsung to run load testing. (It can be added as a 'test' stage into the exisiting bamboo plan too). Instead of installing tsung in bamboo agent, we use a dedicate box as it is resources extensive. Here is how we set it up: 1) Create a … Continue reading Bamboo plan for tsung
EC2 Instance assume role in other accounts
Besides IAM users, some AWS services can also assume roles. Here is the example of granting assume role permission to a EC2 instance. The scenario is that I have two accounts: In account A, I created a role (e.g RoleForB) to trust account B, and add a IAM policy to allow it to perform some read … Continue reading EC2 Instance assume role in other accounts
AWS cross accounts access S3 buckets
When working on AWS cross accounts S3 access, I found out that - Only s3:CreateBucket, s3:ListAllMyBuckets and s3:GetBucketLocation 3 actions are allowed to set relative-id of Resource to "*". For all other bucket actions, you must specify a bucket name. E.g If I want to allow a user from account B to put objects into … Continue reading AWS cross accounts access S3 buckets