Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
## How to do cross parameter validation using CloudFormation Rules and Assertions

This code gives you some examples of how you can use CloudFormation Assertions to perform cross-parameter validations. For example, you have code snippets that validate the certificateARN parameter only if a secure listener is required as Application Load Balancer configuration. Likewise, a Hosted Zone name is expected only if a secure listener is chosen. This CloudFormation creates an entire topology with an Auto Scaling group behind a load balancer with a simple health check. The web site is available on port 80 or 443 based on the input. however, the instances can be configured to listen on any port (8888 by default). **WARNING** This template creates one or more Amazon EC2 instances and an Application Load Balancer. You will be billed for the AWS resources used if you create a stack from this template.
This code example demonstrates how you can use rules and assertions inside an AWS CloudFormation template to perform cross-parameter validations. This code example contains code snippets that validates the certificate ARN parameter if a secure listener is required as an Application Load Balancer configuration. Likewise, a Hosted Zone name is expected if a secure listener is chose. This AWS CloudFormation template creates an entire topology with an Auto Scaling group that conatins a load balancer with a health check. The web site created is available on port 80 or port 443, based on user input. The instance can be configured to listen on any port (8888 by default).


**WARNING** This template creates one or more Amazon EC2 instances and an Application Load Balancer. You will be billed for the AWS resources used if you create a stack from this template.


## License Summary
Expand Down