blob: a042dfe0ac1f363821544806884488a3b16764f2 [file] [log] [blame]
Kelley Spoon45b953d2020-07-14 04:18:34 -05001# upstream AMIs
2data "aws_ami" "ubuntu" {
3 most_recent = true
4
5 filter {
6 name = "name"
7 values = ["ubuntu/images/hvm-ssd/ubuntu-bionic-18.04-amd64-server-*"]
8 }
9
10 owners = ["099720109477"] # Official Canonical ID
11}
12
13# Production ------------
14# route53 - not currently managed by Systems terraform
15# roles - not currently managed by Systems terraform
16# server - not currently managed by Systems terraform
17
18# Staging --------------
Kelley Spoon50e54752020-07-22 09:08:59 -050019# route53 - handle manually
Kelley Spoon45b953d2020-07-14 04:18:34 -050020
21#servers
22resource "aws_instance" "staging-ci" {
Riku Voipioa4e6f592020-10-06 17:49:49 +030023 ami = "ami-0ac80df6eff0e70b5"
Kelley Spoon45b953d2020-07-14 04:18:34 -050024 instance_type = "t3.large"
25 # hardcoding for the time being. In the future we may want
26 # to split staging off to its own subnet.
27 subnet_id = "subnet-a0d573af"
28 vpc_security_group_ids = [
29 "${aws_security_group.ci-sg.id}",
30 "${aws_security_group.flexnet-sg.id}",
31 ]
32 key_name = "systems-bot-ssh"
33 tags = {
34 Name = "staging-ci"
35 Environment = "staging"
36 }
Kelley Spoon01d132b2020-07-22 09:15:29 -050037 root_block_device {
Kelley Spoon191e45f2022-08-09 16:30:25 -050038 volume_size = 300
Kelley Spoon01d132b2020-07-22 09:15:29 -050039 volume_type = "gp2"
40 }
Kelley Spoon45b953d2020-07-14 04:18:34 -050041}