Skip to content
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-python): allowPublicSubnet and filesystem not supported #10022

Merged
merged 5 commits into from
Sep 1, 2020
Merged

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

merged 5 commits into from
Sep 1, 2020

Conversation

adamdottv
Copy link
Contributor

@adamdottv adamdottv 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
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.
@adamdottv
Copy link
Contributor Author

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

@adamdottv adamdottv 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
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
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
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