spinnaker-plugins / aws-lambda-deployment-plugin-spinnaker

Spinnaker plugin to support deployment of AWS Lambda functions via Spinnaker pipelines
Apache License 2.0
23 stars 22 forks source link

Deck Lambda Invoke stage has type errors #63

Closed jgrumboe closed 3 years ago

jgrumboe commented 3 years ago

Hi,

I want to create a Lambda invoke stage but after selecting an account and region the UI "crashes"/collapses and I cannot edit the stage anymore, only via JSON directly. I'm running Spinnaker 1.23.7.

The console error is: TypeError: Cannot read property 'data' of undefined

The screenshot looks like this: image

Maybe this is somehow linked to #61

nimakaviani commented 3 years ago

I had a similar issue, and in my case it was because I didnt enable the functions feature in deck.

I solved this by editing settings-local.js and adding this line: window.spinnakerSettings.feature.functions = true which then allowed the function data to propagate properly in the stage. maybe that is your problem as well?

jgrumboe commented 3 years ago

@nimakaviani Thanks for the hint. I added the setting but it didn't resolve the error, unfortunately. The error message is still the same.

Update: It seems I skipped to enable Lambda support globally, according to https://github.com/spinnaker-plugins/aws-lambda-deployment-plugin-spinnaker/blob/master/samples/README.md I will follow the guide and will post updates.

jgrumboe commented 3 years ago

It's still not working, the error message stays the same. 😢

nimakaviani commented 3 years ago

Do you see a Functions tab in the red box of picture below?

image

jgrumboe commented 3 years ago

@nimakaviani No, I think there wasn't a functions menu.

I disabled and undeployed the plugin meanwhile, because I will implement a runjob stage with my aws tasks to be done. Therefore I will close this issue.

Thanks for your effort @nimakaviani!