I am very new to aws Cloud and CloudFormation. I am trying to write a CloudFormation Template where a user can choose the DB Engine through a parameter. Depending on the choice made by the user I would like the instance type to change accordingly. For example: Say part of my template looks like this:
Parameters:
Engine:
Default: sqlserver-ex
Type: String
AllowedValues:
- sqlserver-se
- sqlserver-ex
- sqlserver-ee
DatabaseInstanceType:
Default: db.t3.small
AllowedValues:
- db.t2.micro
- db.t2.small
- db.t2.medium
- db.t2.large
- db.t2.xlarge
When the user chooses the sqlserver-ex I only want the user to be able to choose an InstanceType like
db.t2.micro
dbt2.medium
db.t3.small
db.t3.xlarge
db.t2.micro
dbt2.medium
db.t3.small
db.t3.xlarge
Is this posible? Is it also posible to use that technique multiple times in a template?
I have searched for a solution for this for a few days with no luck and decided to ask the more advanced developers. I hope that someone can clear this up for me. Thanks in advance.