-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstage.ini
131 lines (106 loc) · 3.37 KB
/
stage.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
[server:main]
use = egg:Paste#http
host = 0.0.0.0
port = 5000
[composite:main]
use = egg:Paste#urlmap
/static = static
/ = default
# Serve the theme from disk from /static (as set up in [composite:main])
[app:static]
use = egg:Paste#static
document_root = %(here)s/theme
# Serve the Diazo-transformed content everywhere else
[pipeline:default]
pipeline = theme
content
# Reference the rules file and the prefix applied to relative links
# (e.g. the stylesheet). We turn on debug mode so that the theme is
# re-built on each request, making it easy to experiment.
[filter:theme]
use = egg:diazo
rules = %(here)s/rules.xml
prefix = /static
debug = true
[app:content]
use = egg:Paste#proxy
#address = http://diazo.org/
address = http://www.v-studios.com
suppress_http_headers = accept-encoding
[config:aws]
# - For each resource, give logical name and tags first, the special configs
# - The created logical name will be prefixed by the 'project'
# - Tags will be set including Name which will get project-name-env-
# - AWS resource logical names must be A-Za-z0-9 (no special chars)
# - Tag 'Name' like 'App-env-role' so they sort nicely by environment
# - Separarate ','-delimited values in python (tags, sgs, etc)
# - Separate tags into key:value ':' in python
# TODO:
# - make the repetitive tags app, env global configs?
# - use logical name as tag Name to remove repetition
# AWS Account Info
# see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/pseudo-parameter-reference.html
# Get AWS Account ID with :
# "Ref" : "AWS::AccountId"
account = ############
# Get AWS Region with :
# "Ref" : "AWS::Region"
region = us-east-1
# App Name
app = TTTDiazo
env = stage
# VPC ID
vpc_id = vpc-320bc355
pub_subnet_id = subnet-ae725fd8
app_subnet_id = subnet-a1725fd7
# Security Groups
sg_elb = sg-edb51696
sg_ssh = sg-e3b51698
sg_app.name = SGapp
sg_app.desc = Allow from ELB only via SGelb
sg_app.ports = 80,443
# not using cidr_block here, but SGelb reference
# IAM Role + Profile
role.name = RoleEc2S3
profile.name = Profile
s3.bucket = CODEBUCKET.DOMAIN.v-studios.com
# AutoScaling Group
launchconfig.name = LaunchConfig
launchconfig.instance_type = t2.micro
# ami-9a562df2 Ubuntu-trusty-14.04-amd64-server-20150123
# ami-d05e75b8 Ubuntu Server 14.04 LTS (HVM), SSD Volume Type
launchconfig.image_id = ami-d05e75b8
launchconfig.key_name = AWS-KEYPAIR-NAME
asg.name = ASG
asg.scale_min = 1
asg.scale_max = 1
asg.cooldown = 300
asg.health_grace = 300
# We don't need policy and alarm if our max is 1
# but we may want to allow it to scale up at some point
# AutoScaling Policies
scale_up_policy.name = ScaleUp
scale_up_policy.cooldown = 60
scale_down_policy.name = ScaleDown
scale_down_policy.cooldown = 300
# CloudWatch Alarms
alarm_high.name = AlarmHigh
alarm_high.threshold = 25
alarm_low.name = AlarmLow
alarm_low.threshold = 10
# Route53 DNS Records
dns.zone = stage.ttt.example.com.
dns.ttl = 900
dns_ttt.name = DNSOrigin
dns_ttt.record = TTT-ORIGIN-HOSTNAME
dns_ttt.ip = ###.###.###.###
# SNS Notification
sns.name = SNS
sns.emails = USER1@v-studios.com,USER2@v-studios.com
# CodeDeploy Deployment Group
cd_role_arn = arn:aws:iam::############:role/TTTinfra-TTTDiazoCDRole-WYZFH98NNFVL
cd_application = TTTDiazo
cd_deploymentgroup.name = Stage
cd_deploymentgroup.configname = CodeDeployDefault.OneAtATime
cd_iam_user = TTTinfra-TTTDiazoCDUser-15YJWXRBDTFBM
cd_iam_user_policy.name = CDIAMUserPolicy