Optional Parameter in CloudFormation

Sometimes you want a CloudFormation Parameter to be optional. Unfortunately a blank Parameter contains an empty string. If you pass this empty string to e.g. the KeyName Property of an EC2 Instance or Launch Configuration you end up with a validation error. Imagine the following CloudFormation template: { "AWSTemplateFormatVersion": "2010-09-09", "Description": "Optional Parameters in CloudFormation: Problem", "Parameters": { "KeyName": { "Description": "Provides the name of the...


Are you part of a highly motivated DevOps team? Use marbot, a friendly chatbot, to forward all kinds of alerts from your AWS infrastructure to Slack. Alerts are escalated across your team automatically allowing you to focus on your daily work.

Amazon Web Services in Action (Second Edition)

Amazon Web Services in Action (Second Edition) introduces you to computing, storing, and networking in the AWS cloud.