Skip to content

Commit

Permalink
fix: make lambda exec unit resource more reusable.
Browse files Browse the repository at this point in the history
make lambda exec unit resource more reusable.
  • Loading branch information
tjholm authored Oct 29, 2023
1 parent 4e93ec3 commit d5f4015
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cloud/aws/deploy/exec/lambda.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ type LambdaExecUnitArgs struct {
// Image needs to be built and uploaded first
DockerImage *image.Image
Compute *v1.ExecutionUnit
EnvMap map[string]string
EnvMap pulumi.StringMap
Config config.AwsLambdaConfig
}

Expand Down Expand Up @@ -152,7 +152,7 @@ func NewLambdaExecutionUnit(ctx *pulumi.Context, name string, args *LambdaExecUn
"NITRIC_HTTP_PROXY_PORT": pulumi.String(fmt.Sprint(3000)),
}
for k, v := range args.EnvMap {
envVars[k] = pulumi.String(v)
envVars[k] = v
}

var vpcConfig *awslambda.FunctionVpcConfigArgs = nil
Expand Down
2 changes: 1 addition & 1 deletion cloud/aws/deploy/up.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ func (d *DeployServer) Up(request *deploy.DeployUpRequest, stream deploy.DeployS
DockerImage: image,
StackID: stackID,
Compute: eu.ExecutionUnit,
EnvMap: eu.ExecutionUnit.Env,
EnvMap: pulumi.ToStringMap(eu.ExecutionUnit.Env),
Client: lambdaClient,
Config: *typeConfig.Lambda,
})
Expand Down

0 comments on commit d5f4015

Please sign in to comment.