Skip to content

Adds VPC configuration and permissions to all Lambda functions in an Amplify backend

License

Notifications You must be signed in to change notification settings

ritikk/custom-amplify-util-lambda-vpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

custom-amplify-util-lambda-vpc

An Amplify CLI plugin that adds VPC configuration and permissions to all Lambda functions in an Amplify backend.

Installation

npm i -g @ritikk/custom-amplify-util-lambda-vpc

amplify plugin add @ritikk/custom-amplify-util-lambda-vpc

Usage

amplify custom-amplify-util-lambda-vpc update --file <file_path>

File path must point to a .json file with configuration information about your VPC and permissions you'd like to add to the lambda execution policy. E.g.:

{
    "VpcConfig": {
        "SecurityGroupIds": [
            "sg-1234"
        ],
        "SubnetIds": [
            "subnet-abcd",
            "subnet-efgh"
        ]
    },
    "ExecutionPolicyStatement": {
        "Effect": "Allow",
        "Action": [
            "ec2:CreateNetworkInterface",
            "ec2:DescribeNetworkInterfaces",
            "ec2:DeleteNetworkInterface"
        ],
        "Resource": "*"
    }
}

Commands

  • amplify custom-amplify-util-lambda-vpc help
  • amplify custom-amplify-util-lambda-vpc version
  • amplify custom-amplify-util-lambda-vpc update --file <file_path>

About

Adds VPC configuration and permissions to all Lambda functions in an Amplify backend

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published