EC2 instance creation fails with “InvalidParameterCombination: The parameter groupName cannot be used with the parameter subnet”

For the second time I ran into this same issue. When using RunInstancesCommand from the AWS SDK for Javascript, a certain parameter combination results in a misleading and confusing error message: “InvalidParameterCombination: The parameter groupName cannot be used with the parameter subnet” There is no parameter “groupName” in my request. The problem was that the… Continue reading EC2 instance creation fails with “InvalidParameterCombination: The parameter groupName cannot be used with the parameter subnet”

Nginx as origin for S3 with authentication, with CDN on top

We recently had a small problem with our content delivery system. The setup is as follows: – AWS S3 bucket that requires authentication – EC2 instance, running Nginx with ngx_aws_auth – ELB load balancer in front of the EC2 instance – CDN configured to use the ELB as the origin The problem was that the… Continue reading Nginx as origin for S3 with authentication, with CDN on top