Skip to Main Content
Building Serverless Python Web Services with Zappa
book

Building Serverless Python Web Services with Zappa

by Abdulwahid Abdulhaque Barguzar
July 2018
Intermediate to advanced content levelIntermediate to advanced
324 pages
8h 14m
English
Packt Publishing
Content preview from Building Serverless Python Web Services with Zappa

VPC configuration using Zappa

Zappa has an optimized way of automating the VPC with the deployed application. All you need to provide is the vpc_config attribute with subnet and security groups IDs, as mentioned here:

{    ...    "vpc_config": {         "SubnetIds": [ "subnet-12345678" ],
        "SecurityGroupIds": [ "sg-12345678" ]
    },    ...}

I mentioned the default VPC in the previous section. You can get the default subnet IDs from the VPC dashboard page, as shown in the following screenshot:

You can get the security group IDs by selecting Security Groups from the left panel, as shown in the following screenshot:

Now, we are going to create another deployment ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hands-On Docker for Microservices with Python

Hands-On Docker for Microservices with Python

Jaime Buelta

Publisher Resources

ISBN: 9781788837613Supplemental Content