Commit Graph

40 Commits

Author SHA1 Message Date
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 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 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 83d0c7434d
add Data Lifecycle Policy for MongoDB volumes
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-10-04 14:56:46 +02:00
Jakub Sokołowski 1398bf4a67
can't use CNAMEs with apex records, have to resolve the ELB FQDN
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-08-16 09:00:02 -04:00
Jakub Sokołowski aa458ecf28
map dap.ps DNS entry as CNAME for prod.dap.ps
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-08-15 12:38:04 -04:00
Jakub Sokołowski 96bb3c48d3
create a db.dev instance using new aws-ec2-instance module
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-07-31 12:36:57 -04:00
Jakub Sokołowski dcf66cd102
upgrade to Terraform 0.12
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-07-30 14:36:52 -04:00
Jakub Sokołowski 0ae6566968
move dev and prod envs to their own files
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-07-30 13:24:01 -04:00
Jakub Sokołowski e4bb7f6208
add DB_CONNECTION env variable
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-07-29 17:10:36 -04:00
Jakub Sokołowski 012002e192
fix elb dns entry records
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-07-29 16:52:10 -04:00
Jakub Sokołowski 67f6c4c8be
add env variables for dev EB deployment
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-07-29 11:00:31 -04:00
Jakub Sokołowski a81e83458d
lock down provider versions
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-07-29 10:35:40 -04:00
Jakub Sokołowski 16a6d1ba62
add autoscaling settings
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-07-26 17:02:09 -04:00
Jakub Sokołowski 2236f96e62
fixup! rename dev module to aws-eb-env
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-07-26 13:16:09 -04:00
Jakub Sokołowski 8f2b2974b5
use the CloudPosse modules for ElasicBeanstalk environment
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-07-25 17:05:05 -04:00
Jakub Sokołowski d904ef830a
add a prod module, create an AMC certificate for dap.ps
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-07-25 13:16:00 -04:00
Jakub Sokołowski e8136e233a
drop dns.tf file, move to other files
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-07-25 13:14:50 -04:00
Jakub Sokołowski cf4d933702
move dev environment to it's own tf module
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-07-25 12:59:11 -04:00
Jakub Sokołowski 14e2c6e010
move admin key file and s3 policy to files/
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-05-31 11:44:22 -04:00
Jakub Sokołowski 6fb617c133
move dev resources to separate file
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-05-29 11:05:30 -04:00
Jakub Sokołowski 8f1b13c4b8
move DNS setup to separate file
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-05-29 11:04:45 -04:00
Jakub Sokołowski e116aa3339
fix type of records for main site
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-05-29 09:34:20 -04:00
Jakub Sokołowski d6d52eee77
enable provisioning
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-05-28 18:33:01 -04:00
Jakub Sokołowski bd5e899867
fix instance to be publicly availble from vpc
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-05-28 18:32:47 -04:00
Jakub Sokołowski 7ec6a7e72f
add provisioning (commented)
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-05-28 18:19:55 -04:00
Jakub Sokołowski 9512baab07
add a security group to enable SSH, HTTP, and HTTPS
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-05-28 17:37:47 -04:00
Jakub Sokołowski e08ad869e9
add record for host only
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-05-28 17:30:23 -04:00
Jakub Sokołowski 0952abdc59
add creation of AWS instance and record for it
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-05-28 17:23:18 -04:00
Jakub Sokołowski 2a7cdb640c
add an entry for main site pointing at GitHub servers
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-05-28 16:48:24 -04:00
Jakub Sokołowski f22949a49c
add missing domain attachment for Gandi
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-05-28 16:33:40 -04:00
Jakub Sokołowski 606bf723b8
add missin verification reocrds
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-05-28 16:23:56 -04:00
Jakub Sokołowski c1e38389e6
add DNS records for SES setup
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-05-28 16:15:26 -04:00
Jakub Sokołowski ed34cf53ce
add aws key pair
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-05-28 15:49:05 -04:00
Jakub Sokołowski f6760d053d
add gandi provider
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-05-28 14:51:33 -04:00
Jakub Sokołowski 7086beac7a
use newer AMI
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-05-28 14:49:53 -04:00
Jakub Sokołowski ea781be845
add missing owner account id
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-05-28 14:48:09 -04:00
Jakub Sokołowski df664bd2f6
find the right AMI for instance
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-05-28 14:42:16 -04:00
Jakub Sokołowski e204597c51
use s3 as bckend
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-05-28 12:50:35 -04:00
Jakub Sokołowski f923028eb9
add initial main file for creating s3 bucket
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-05-28 12:33:58 -04:00