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

role name is not accepting #10

Open
manikantakrishna opened this issue Nov 9, 2017 · 1 comment
Open

role name is not accepting #10

manikantakrishna opened this issue Nov 9, 2017 · 1 comment

Comments

@manikantakrishna
Copy link

manikantakrishna commented Nov 9, 2017

i'm not able to pass role name in lambda function.
lambda!(:index, :role => attr!(lambda_role, 'Arn')) or
lamdba!(:index, :role => 'LambdaRole')

I'm getting ERROR: TypeError: Received invalid value type Hash! (Allowed types: String, Symbol) -> ./.vendor/bundle/ruby/2.2.0/gems/sfn-lambda-0.1.2/lib/sfn-lambda/inject.rb @ line 12
vendor/bundle/ruby/2.2.0/gems/sparkle_formation-3.0.10/lib/sparkle_formation/utils.rb:23:in __t_check' ./.vendor/bundle/ruby/2.2.0/gems/sparkle_formation-3.0.10/lib/sparkle_formation/utils.rb:33:in __t_stringish'
./.vendor/bundle/ruby/2.2.0/gems/sfn-lambda-0.1.2/lib/sfn-lambda/inject.rb:12:in `_lambda'

@yyovkov
Copy link

yyovkov commented Nov 19, 2019

You can try with:

  lambda!(:lambda_function_name, '',
    :role => attr!('iam_role_resource_name', 'Arn')
  )

Pay attention on the second argument (which is empty at that case), this will do the trick in that case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants