Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Miss leading error if a parameter reference cannot be found #116

Open
Guslington opened this issue Aug 13, 2019 · 0 comments
Open

Miss leading error if a parameter reference cannot be found #116

Guslington opened this issue Aug 13, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@Guslington
Copy link
Member

stack trace

Traceback (most recent call last):
	18: from /Users/gus/.rbenv/versions/2.5.3/bin/cfcompile:23:in `<main>'
	17: from /Users/gus/.rbenv/versions/2.5.3/bin/cfcompile:23:in `load'
	16: from /Users/gus/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/cfhighlander-0.10.1/bin/cfcompile:4:in `<top (required)>'
	15: from /Users/gus/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/cfhighlander-0.10.1/bin/cfcompile:4:in `require_relative'
	14: from /Users/gus/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/cfhighlander-0.10.1/bin/cfhighlander.rb:301:in `<top (required)>'
	13: from /Users/gus/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/thor-0.20.3/lib/thor/base.rb:466:in `start'
	12: from /Users/gus/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/thor-0.20.3/lib/thor.rb:387:in `dispatch'
	11: from /Users/gus/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command'
	10: from /Users/gus/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/thor-0.20.3/lib/thor/command.rb:27:in `run'
	 9: from /Users/gus/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/cfhighlander-0.10.1/bin/cfhighlander.rb:110:in `cfcompile'
	 8: from /Users/gus/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/cfhighlander-0.10.1/lib/cfhighlander.compiler.rb:163:in `compileCloudFormation'
	 7: from /Users/gus/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/cfhighlander-0.10.1/lib/util/cloudformation.util.rb:26:in `flattenCloudformation'
	 6: from /Users/gus/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/cfhighlander-0.10.1/lib/util/cloudformation.util.rb:280:in `collect_replacements'
	 5: from /Users/gus/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/cfhighlander-0.10.1/lib/util/cloudformation.util.rb:280:in `each'
	 4: from /Users/gus/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/cfhighlander-0.10.1/lib/util/cloudformation.util.rb:285:in `block in collect_replacements'
	 3: from /Users/gus/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/cfhighlander-0.10.1/lib/util/cloudformation.util.rb:285:in `each'
	 2: from /Users/gus/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/cfhighlander-0.10.1/lib/util/cloudformation.util.rb:290:in `block (2 levels) in collect_replacements'
	 1: from /Users/gus/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/cfhighlander-0.10.1/lib/util/cloudformation.util.rb:290:in `each'
/Users/gus/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/cfhighlander-0.10.1/lib/util/cloudformation.util.rb:293:in `block (3 levels) in collect_replacements': undefined method `inlined' for nil:NilClass (NoMethodError)

Actual issue

cfhighlander.rb

  Component template: 'vpc', name: 'vpc' do
    parameter name: 'NetworkPrefix', value: '10'
    parameter name: 'StackMask', value: '16'
    parameter name: 'DnsDomain', value: dns_domain
    parameter name: 'dnszoneAddNSRecords', value: 'true'
  end

  Component template: 'ecs', name: 'ecs' do
    parameter name: 'SubnetIds', value: cfout('vpc.ComputeSubnets')
    parameter name: 'AsgMin', value: '1'
    parameter name: 'AsgMax', value: '2'
  end

  Component template: 'aurora-postgrest', name: 'postgres' do
    parameter name: 'DnsDomain', value: dns_domain
    parameter name: 'SubnetIds', value: cfout('vpc.PersistenceSubnets')
    parameter name: 'EnableReader', value: 'false'
    parameter name: 'ReaderInstanceType', value: ''
    parameter name: 'SecurityGroupBastion', value: cfout('bastion.SecurityGroupBastion')
    parameter name: 'SecurityGroupECS', value: cfout('ecs.EcsSecurityGroup')
  end

problem line
parameter name: 'SecurityGroupBastion', value: cfout('bastion.SecurityGroupBastion')
where bastion component does not exist.

@Guslington Guslington added the enhancement New feature or request label Oct 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant