terraform { backend "http" {} } variable "aws_access_key" { type = "string" } variable "aws_secret_key" { type = "string" } variable "aws_region" { type = "string" } variable "aws_vpc_id" { type = "string" } variable "aws_route_53_zone_id" { type = "string" } variable "ssh_public_key" { type = "string" } variable "ssh_private_key" { type = "string" } variable "guix_substitute_servers" { type = "map" default = { "https://berlin.guixsd.org" = < temp && mv temp .bashrc" ] connection { type = "ssh" user = "ubuntu" private_key = "${var.ssh_private_key}" } } } resource "aws_route53_record" "main" { zone_id = "${data.aws_route53_zone.main.zone_id}" name = "guix-daemon" type = "A" ttl = "60" records = ["${aws_spot_instance_request.main.public_ip}"] } # Outputs output "deployer_key_pair_name" { value = "${aws_key_pair.deployer.key_name}" } output "guix_client_security_group_name" { value = "${aws_security_group.guix_client.name}" } output "public_webserver_security_group_name" { value = "${aws_security_group.public_webserver.name}" } output "ssh_access_from_mini_environment_admin_security_group_name" { value = "${aws_security_group.ssh_access_from_mini_environment_admin.name}" } output "guix_daemon_private_dns" { value = "${aws_spot_instance_request.main.private_dns}" } output "efs_file_system_dns_name" { value = "${aws_efs_file_system.main.dns_name}" }