theonestack / cfhighlander

Cloudformation DSL and component library
MIT License
25 stars 23 forks source link

custom errors #170

Closed Guslington closed 3 years ago

Guslington commented 3 years ago

Catch and notify users of specific cfhighlander errors

https://github.com/theonestack/cfhighlander/commit/e5eb4647708c58a0d4ff0803e5529491ed3bb485 catch reference to unknown component in a cfout

CfhighlanderTemplate do
  Component name: 'vpcv2', template: 'vpc-v2'
  Component name: 'fargate-v2', template: 'fargate-v2' do
    parameter name: 'SubnetIds', value: cfout('vpc.ComputeSubnets')
  end
end
unable to find outputs from component vpc reference by parameters in component fargate-v2 (Cfhighlander::Error)
Guslington commented 3 years ago

Yeah for sure, id like to get a list of common errors and add some better error messages.