aws-samples / aws-refarch-wordpress

This reference architecture provides best practices and a set of YAML CloudFormation templates for deploying WordPress on AWS.
MIT No Attribution
1.08k stars 601 forks source link

Render model in Designer fails #1

Closed shirokoweb closed 7 years ago

shirokoweb commented 7 years ago

When I try to render the model in Designer it fails with following error message :

Cannot render the template because of an error.: YAMLException: duplicated mapping key at line 292, column 32: Condition: DeployCloudFront ^

Lines 291-292 show :

    Condition: AvailableAWSRegion
    Condition: DeployCloudFront

I'm new to the syntax (first time ever using it) and I'm wondering which between these two is correct :

Condition: [ AvailableAWSRegion, DeployCloudFront ]

or

Condition:
- AvailableAWSRegion
- DeployCloudFront

Same question applies for lines 320-321 / 386-387

darrylsosborne commented 7 years ago

In cases like this where a top level condition is required I recommend adding an !And to the DeployElastiCache condition.

... Conditions: ...
DeployElastiCache: !And

Resources:

... cloudfront: Condition: DeployCloudFront ...

Pushing out this fix to all affected sections of the master yml file within the next 24 hours.

darrylsosborne commented 7 years ago

Fix published and verified.

screen shot 2017-07-18 at 9 16 44 pm