-
Notifications
You must be signed in to change notification settings - Fork 4k
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
docs(lambda): Use bundlingImage rather than bundlingDockerImage #13945
Conversation
Runtimes still expose a
|
This actually does not work either. |
@jogold if i use |
Yes, it does but with typed languages you now have to force a cast: ie: And the deprecation warning suggests you should use Below is a working example using the now deprecated val function = Function(
this,
"loan${type.capitalize()}Function",
FunctionProps
.builder()
.functionName("loanDevl")
.handler("loan.app.lambda_handler")
.runtime(Runtime.PYTHON_3_8)
.code(
Code.fromAsset(
"../../src/",
AssetOptions
.builder()
.bundling(
BundlingOptions
.builder()
.image(Runtime.PYTHON_3_8.bundlingDockerImage as DockerImage?)
.command(
mutableListOf(
"bash",
"-c",
"pip install -r requirements.txt -t /asset-output && cp -au . /asset-output"
)
)
.build()
)
.build()
)
)
.build()
) |
Seems like these changes are current, I just an issue when running my unit tests and then run the a |
you're right! |
And this would also trigger a compilation error on Java / Kotlin (and i am sure other languages). What was confusing for me was when i switched |
Note @nija-at this causes compile errors in Java runtime |
@nija-at will this be merged? It was a time sink for me when I came across this documentation error. |
Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
@nija-at mergify is just hanging now? |
@michaelbrewer is not allowed to run commands Hey, I reacted but my real name is @Mergifyio |
@michaelbrewer - we're having trouble with Mergify across the repo since yesterday. We will get this merged eventually. |
Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
Resolves #13944
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license