-
Notifications
You must be signed in to change notification settings - Fork 226
Fix lambda import #605
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
Fix lambda import #605
Conversation
fn/lambda.go
Outdated
@@ -214,9 +110,13 @@ func awsImport(c *cli.Context) error { | |||
return err | |||
} | |||
|
|||
if *function.Configuration.Runtime == "nodejs4.3" { | |||
*function.Configuration.Runtime = "node" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It thought we decided to just keep the lambda names?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that would require updating the names of the docker images first for this PR to work
fn/lambda.go
Outdated
opts := createImageOptions{ | ||
Name: functionName, | ||
Base: fmt.Sprintf("iron/lambda-%s", *function.Configuration.Runtime), | ||
Base: fmt.Sprintf("lambda-%s", *function.Configuration.Runtime), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
functions/lambda-%s
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the init produces
runtime: lambda-node
This serves the same purpose
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't even think this will pull any image though regardless, since you don't even have a docker hub username anymore. Let's assume we'll push the images with the following naming: iron/functions-lambda:{aws_name}
fn/lambda.go
Outdated
} | ||
|
||
var ( | ||
runtimeImportHandlers = map[string]func(functionName, tmpFileName string, opts *createImageOptions) ([]fileLike, error){ | ||
"nodejs": basicImportHandler, | ||
"node": basicImportHandler, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
node4.3?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again requires updating the image names for this to work
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, need to update the docs though.
* Fix lambda import * more updates * more changes
No description provided.