Commit Graph

197 Commits

Author SHA1 Message Date
Jakub Sokołowski 1a1678d70f
upgrade Elastic Beanstalk stack name to v4.17.4
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-04-13 19:32:44 +02:00
Jakub Sokołowski 0e7eaa4a18
ansible/terraform.py: get rid of warning about encoding
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-04-13 19:28:03 +02:00
Jakub Sokołowski 8593691b03
ansible.cfg: ignore warnings about group names
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-04-13 19:27:54 +02:00
Jakub Sokołowski d309c3a8bb
change dev EB env instance to t2.micro to match prod
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-04-13 19:08:59 +02:00
Jakub Sokołowski 3c73458ed2
ses-forwarder: upgrade 4.2.0 to 5.0.0, set fromEmail
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-03-30 11:31:21 +02:00
Jakub Sokołowski 3d1db69fe9
upgrade Elastic Beanstalk version to 2018.03 v4.17.3
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-03-30 11:13:52 +02:00
Jakub Sokołowski e83cb3acd1
upgrade Terraform to 0.14, as well as providers and modules
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-03-30 11:11:45 +02:00
Jakub Sokołowski e50f2db95b
ansible/inventory: update dev db host IP
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-03-30 10:36:55 +02:00
Jakub Sokołowski bfd322b157
drop dap.ps from dev SANs, causes race condition in DNS
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-02-02 19:04:42 +01:00
Jakub Sokołowski 5b0212a446
dev: add INFURA_KEY, update DISCOVER_CONTRACT
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-02-02 18:33:19 +01:00
Jakub Sokołowski 427e94b553
aws-eb-env: drop unnecessary interpolation
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-02-02 18:30:24 +01:00
Jakub Sokołowski b953fde1c7
aws-acm-cert: reverse order of SANs to prevent re-creation
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-02-02 18:16:41 +01:00
Jakub Sokołowski 698148134f
ansible.cfg: enable ansible ssh multiplexing
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-02-01 13:24:47 +01:00
Jakub Sokołowski 525f7af1d2
readme: fix links to stages
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-01-22 11:48:32 +01:00
Jakub Sokołowski b908f939b1
mongodb-backups: limit number of kept backups to 7
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-01-14 14:50:28 +01:00
Jakub Sokołowski 479aa6f269
use bootstrap__active_extra_users var, drop lyubo
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-01-14 14:07:35 +01:00
Jakub Sokołowski 40026ff5ea
update name of s3cmd-upload role and its variables
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-12-09 11:46:21 +01:00
Jakub Sokołowski a5d61c7202
add tags for roles in ansible/dev.yml
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-10-21 15:56:34 +02:00
Jakub Sokołowski 797c43e2ad
upgrade to Terraform 0.13
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-09-26 18:23:01 +02:00
Jakub Sokołowski cea9813128
add known issue to readm
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-06-29 17:44:59 +02:00
Jakub Sokołowski 8dcd575eef
mongodb-backups: use systemd timers for backups
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-03-31 10:56:34 +02:00
Jakub Sokołowski a598fe3eaa
deploy a 1GB swap file to prod hosts
For details see:
https://github.com/dap-ps/infra-dapps/issues/19

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-03-31 10:21:16 +02:00
Jakub Sokołowski 0fefda143d
add cleanup.yml playbook
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-03-31 10:17:24 +02:00
Jakub Sokołowski e1c1163e2d
mongodb-firewall: fix type casting for port
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-03-31 10:17:08 +02:00
Jakub Sokołowski f799519fad
add tags to prod.yml playbook
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-03-31 10:17:00 +02:00
Jakub Sokołowski c0d6f47b89
fix MX record for dap.ps
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-02-06 17:44:54 +01:00
Jakub Sokołowski 6c30ded62c
forward admin@dap.ps to jakub@status.im
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-02-06 17:36:35 +01:00
Jakub Sokołowski d64cc12754
fix SES email forwarde by adding dap.ps to recipients
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-02-06 17:13:58 +01:00
Jakub Sokołowski 6c2067ae17
mail: move all config from ses.tf to mail.tf
Also add two emails:
 - dapps-staking@status.im
 - dapps-approvals@status.im

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-02-04 15:54:39 +01:00
Jakub Sokołowski 23cd4e9b22
mail: fix uploading of lambda index.js
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-02-04 15:34:32 +01:00
Jakub Sokołowski 1e6aac03b0
explain email setup, rename index.js to sesforwarder.js
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-02-04 13:26:00 +01:00
Jakub Sokołowski 8c6ed39984
forward stake@dap.ps to dapps-staking@status.im
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-02-04 13:16:50 +01:00
Jakub Sokołowski 93e565fead
drop unused dns provider
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-01-27 21:06:08 +01:00
Jakub Sokołowski eae370856f
use Status IPFS cluster
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-01-27 20:49:21 +01:00
Jakub Sokołowski f294580e31
delegate dap.ps domain management to Route53
We have to use Route53 because it provides the option to use an
ALIAS type record which works for apex records and can point to
a CloudFront distribution in a dynamic way.

Without this we'd have to use A records which are static unlike
a CNAME, which would eventually become obsolete and take down
the site when they do.

Details: https://github.com/dap-ps/infra-dapps/issues/18

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-01-27 20:49:05 +01:00
Jakub Sokołowski 9a207dddbc
use terraform 0.12 formatting
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-01-22 09:09:16 +01:00
Jakub Sokołowski 3942f3905c
Makefile: Use -e with echo for proper newlines
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-01-22 09:06:47 +01:00
Jakub Sokołowski c3b15a2b02
add special case for /metadata/all to lower its cache time
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-01-15 13:09:43 +01:00
Jakub Sokołowski eda1b43612
upgrade CloudPosse modules and AWS provider
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-01-15 12:27:46 +01:00
Jakub Sokołowski f96c98643c
add raw DNS entries for non-CDN access to the site
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-12-13 00:00:45 +01:00
Jakub Sokołowski 315eb38f26
limit aws provider version
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-12-12 11:23:33 +01:00
Jakub Sokołowski 73527a2f77
switch prod to use new CDN
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-11-12 22:00:13 +01:00
Jakub Sokołowski 761ae9f5f2
drop unused origin-cert role
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-11-12 22:00:01 +01:00
Jakub Sokołowski 38793d395e
don't forward caching headers
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-11-05 18:52:31 +01:00
Jakub Sokołowski db24716d39
add a CloudFront CDN
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-11-05 18:32:32 +01:00
Jakub Sokołowski a77df7224f
disable NAT Gateway for subnets
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-11-04 20:43:39 +01:00
Jakub Sokołowski 21923f795e
replace DB hosts
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-11-03 18:02:37 +01:00
Jakub Sokołowski 4d940e0b6b
make DB hosts use the same VPC as the EB env
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-11-03 18:02:27 +01:00
Jakub Sokołowski 7b9b37389a
fix how tf inventory is exported for ansible
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-11-03 18:02:05 +01:00
Jakub Sokołowski 1d68769b7b
upgrade Amazon Linux 2018/03: v4.8.3 > v4.11.0
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-11-02 14:45:16 +01:00