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

Allow creating a function inside a VPC #364

Open
EliteMasterEric opened this issue Oct 17, 2020 · 0 comments
Open

Allow creating a function inside a VPC #364

EliteMasterEric opened this issue Oct 17, 2020 · 0 comments

Comments

@EliteMasterEric
Copy link

Initializing the lambda function with defined subnets and security groups should be possible by adding support for an optional VpcConfig object in

def _get_creations_args(self, zip_payload_path: str, supervisor_zip_path: str) -> Dict:

Example: The following configuration:

functions:
  aws:
  - lambda:
      name: scar-cowsay
      run_script: runcow.sh
      container:
        image: grycap/cowsay
        vpc_config:
          SubnetIds:
            - <SUBNETA-ID>
            - <SUBNETB-ID>
          SecurityGroupIds:
            - <GROUPA-ID>
            - <GROUPB-ID>

should configure the resulting lambda function to use Subnet IDs A and B, and Security Groups A and B.

This would be necessary once #360 is implemented, in order to allow access to Elastic File Shares contained within a VPC.

micafer added a commit that referenced this issue Jan 25, 2022
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

No branches or pull requests

1 participant