Route 53 Cannot Find CloudFront Distribution

Problem You have create a CloudFront distribution with a custom domain name (such as yourdomain.com). Now if you try to link this distribution to your domain using Route 53, you get the following error message: `No AWS resource exists with the Alias Target that you specified.` Solution Try the following to solve this problem: Make … Continue reading Route 53 Cannot Find CloudFront Distribution

Solving ‘One or more of your origins do not exist’ for Cloud Front

Problem You are trying to create a CloudFront distribution using Amazon's API. You get the error: "One or more of your origins do not exist" Solution In my case, I provided a different value for these two properties: DistributionConfig.DefaultCacheBehavior.TargetOriginId and DistributionConfig.Origins.Items[0].Id Just make sure that the Id for one of your origins matches the TargetOriginId … Continue reading Solving ‘One or more of your origins do not exist’ for Cloud Front

Automatically Make Snapshots for EC2

A quick Google search reveals that there are quite a few different approaches for automatically creating snapshots for EC2 images (such as here,┬áhere and here). All of these are rather difficult to do. Thankfully, after some more searching around I found a great way to schedule regular snapshots using AWS CloudWatch. CloudWatch supports a built-in … Continue reading Automatically Make Snapshots for EC2

AWS Lambda: Cross-account pass role is not allowed.

Today I came across the following exception while working with the AWS SDK for Amazon Lambda: com.amazonaws.AmazonServiceException: Cross-account pass role is not allowed. (Service: AWSLambda; Status Code: 403; Error Code: AccessDeniedException; Request ID: xxx) At first I was a bit puzzled where this exception might come from; but when I found out what the problem … Continue reading AWS Lambda: Cross-account pass role is not allowed.