Skip to content

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

Merged
merged 4 commits into from
Mar 24, 2017
Merged

Fix lambda import #605

merged 4 commits into from
Mar 24, 2017

Conversation

seiflotfy
Copy link
Contributor

No description provided.

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"
Copy link
Contributor

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?

Copy link
Contributor Author

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),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

functions/lambda-%s ?

Copy link
Contributor Author

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

Copy link
Contributor

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,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

node4.3?

Copy link
Contributor Author

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

Copy link
Contributor

@treeder treeder left a 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.

@treeder treeder merged commit d8871d1 into iron-io:master Mar 24, 2017
martinpinto pushed a commit to martinpinto/functions that referenced this pull request Mar 29, 2017
* Fix lambda import

* more updates

* more changes
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

Successfully merging this pull request may close these issues.

3 participants