Skip to content

Instantly share code, notes, and snippets.

@bjinwright
Last active December 8, 2016 23:22
Show Gist options
  • Save bjinwright/1e7ecb763ad59dd8c9e3a07b88cc8682 to your computer and use it in GitHub Desktop.
Save bjinwright/1e7ecb763ad59dd8c9e3a07b88cc8682 to your computer and use it in GitHub Desktop.
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