-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathinstance_core_incoming.tf
More file actions
34 lines (29 loc) · 970 Bytes
/
instance_core_incoming.tf
File metadata and controls
34 lines (29 loc) · 970 Bytes
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
variable "incoming-dns" {
default = "incoming.galaxyproject.eu"
}
resource "openstack_compute_instance_v2" "incoming" {
name = var.incoming-dns
image_name = "generic-rockylinux8-v60-j167-5f3adb0e100c-main"
flavor_name = "m1.small"
key_pair = "cloud2"
security_groups = ["egress", "public-ssh", "public-web2", "public-ftp", "public-ping"]
network {
name = "public-extended"
}
}
resource "aws_route53_record" "incoming" {
allow_overwrite = true
zone_id = var.zone_galaxyproject_eu
name = var.incoming-dns
type = "A"
ttl = "600"
records = ["${openstack_compute_instance_v2.incoming.access_ip_v4}"]
}
resource "aws_route53_record" "ftp" {
allow_overwrite = true
zone_id = var.zone_usegalaxy_eu
name = "ftp.usegalaxy.eu"
type = "A"
ttl = "600"
records = ["${openstack_compute_instance_v2.incoming.access_ip_v4}"]
}