Skip to content

fix(lambda-python): allowPublicSubnet and filesystem not supported#10022

Merged
mergify[bot] merged 5 commits intoaws:masterfrom
adamdotdevin:10018
Sep 1, 2020
Merged

fix(lambda-python): allowPublicSubnet and filesystem not supported#10022
mergify[bot] merged 5 commits intoaws:masterfrom
adamdotdevin:10018

Conversation

@adamdotdevin
Copy link
Copy Markdown
Contributor

@adamdotdevin adamdotdevin commented Aug 27, 2020

Fixes #10018.
Fixes #10027.

#9468 added a flag (allowPublicSubnet) to FunctionProps, but PythonFunction and NodejsFunction props derive from FunctionOptions. This renders these derived function constructs unable to bypass the public subnet check that occurs in the base Function construct. We can resolve this issue by moving allowPublicSubnet to FunctionOptions.

I also moved filesystem up to FunctionOptions while I was here.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@jogold
Copy link
Copy Markdown
Contributor

jogold commented Aug 28, 2020

Shouldn't this PR move both allowPublicSubnet and filesystem? Also not sure we have to retest what's already tested in aws-lambda.

Fixes #10018.

#9468 added a flag (`allowPublicSubnet`) to `FunctionProps`,
but `PythonFunction` and `NodejsFunction` props derive from
`FunctionOptions`. This renders these derived function constructs
unable to bypass the public subnet check that occurs in the base
`Function` construct. We can resolve this issue by moving
`allowPublicSubnet` to `FunctionOptions`.

I also moved `filesystem` up to `FunctionOptions` while I was here.
@adamdotdevin
Copy link
Copy Markdown
Contributor Author

Re-added the python integration test to pass the linter check.

@adamdotdevin adamdotdevin changed the title fix(lambda): public subnets in derived functions fix(lambda): derived functions missing props Aug 28, 2020
@SomayaB SomayaB changed the title fix(lambda): derived functions missing props fix(lambda-python): derived functions missing props Aug 31, 2020
@SomayaB SomayaB assigned eladb and unassigned nija-at Aug 31, 2020
@eladb eladb changed the title fix(lambda-python): derived functions missing props fix(lambda-python): allowPublicSubnet and filesystem not supported Sep 1, 2020
@mergify
Copy link
Copy Markdown
Contributor

mergify Bot commented Sep 1, 2020

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-cdk-automation
Copy link
Copy Markdown
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: e5ade6f
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify
Copy link
Copy Markdown
Contributor

mergify Bot commented Sep 1, 2020

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).

@mergify mergify Bot merged commit 745922a into aws:master Sep 1, 2020
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.

[aws-lambda-python] mount EFS filesystem [aws-lambda-python] Does not include allowPublicSubnets property

5 participants