Skip to content

Allow creating a function inside a VPC #364

@EliteMasterEric

Description

@EliteMasterEric

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions