Kelley Spoon | 45b953d | 2020-07-14 04:18:34 -0500 | [diff] [blame] | 1 | # upstream AMIs |
| 2 | data "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 Spoon | 50e5475 | 2020-07-22 09:08:59 -0500 | [diff] [blame] | 19 | # route53 - handle manually |
Kelley Spoon | 45b953d | 2020-07-14 04:18:34 -0500 | [diff] [blame] | 20 | |
| 21 | #servers |
| 22 | resource "aws_instance" "staging-ci" { |
Riku Voipio | a4e6f59 | 2020-10-06 17:49:49 +0300 | [diff] [blame] | 23 | ami = "ami-0ac80df6eff0e70b5" |
Kelley Spoon | 45b953d | 2020-07-14 04:18:34 -0500 | [diff] [blame] | 24 | 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 Spoon | 01d132b | 2020-07-22 09:15:29 -0500 | [diff] [blame] | 37 | root_block_device { |
Kelley Spoon | 191e45f | 2022-08-09 16:30:25 -0500 | [diff] [blame] | 38 | volume_size = 300 |
Kelley Spoon | 01d132b | 2020-07-22 09:15:29 -0500 | [diff] [blame] | 39 | volume_type = "gp2" |
| 40 | } |
Kelley Spoon | 45b953d | 2020-07-14 04:18:34 -0500 | [diff] [blame] | 41 | } |