Instantly share code, notes, and snippets.

Embed
What would you like to do?
Zappa settings file with remote environment vars and VPC support
{
"dev": {
"aws_region": "us-east-1",
"s3_bucket": "yourcode-bucket",
"django_settings": "yourapp.settings",
"remote_env_file":"yourblog-dev.json",
"remote_env_bucket":"yourcode-bucket",
"use_precompiled_packages": true,
"domain": "yourblog-dev-apigw.yourdevdomain.com",
"lets_encrypt_key": "s3://yourcode-bucket/openssl.key",
"lets_encrypt_schedule": "rate(15 days)",
"vpc_config": {
"SubnetIds": [ "subnet-4dsfdasf", "subnet-2dsfsdf", "subnet-53dfsafa"],
"SecurityGroupIds": [ "sg-dsfsdffsd" ]
}
},
"prod": {
"aws_region": "us-east-1",
"s3_bucket": "yourcode-bucket-prod",
"django_settings": "yourapp.settings",
"remote_env_file":"yourblog-prod.json",
"remote_env_bucket":"yourcode-bucket-prod",
"use_precompiled_packages": true,
"domain": "yourblog-prod-apigw.yourdomain.com",
"lets_encrypt_key": "s3://yourcode-bucket-prod/openssl.key",
"lets_encrypt_schedule": "rate(15 days)",
"vpc_config": {
"SubnetIds": [ "subnet-4ddassf", "subnet-2dhjkhk", "subnet-5ghjjghja"],
"SecurityGroupIds": [ "sg-dhgjhgjg" ]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment