-
Notifications
You must be signed in to change notification settings - Fork 2
/
main.tf
46 lines (38 loc) · 1.32 KB
/
main.tf
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
35
36
37
38
39
40
41
42
43
44
45
46
provider "aws" {
region = var.region
}
module "aws_cloud_gaming" {
source = "github.com/Marcel-G/aws-cloud-gaming"
region = var.region
allowed_availability_zone_identifier = var.allowed_availability_zone_identifier
instance_type = var.instance_type
root_block_device_size_gb = var.root_block_device_size_gb
install_parsec = var.install_parsec
install_auto_login = var.install_auto_login
install_graphic_card_driver = var.install_graphic_card_driver
install_steam = var.install_steam
install_gog_galaxy = var.install_gog_galaxy
install_uplay = var.install_uplay
install_origin = var.install_origin
install_epic_games_launcher = var.install_epic_games_launcher
resource_name = "cloud-gaming-${terraform.workspace}"
custom_ami = var.custom_ami
skip_install = var.skip_install
}
resource "aws_ami_from_instance" "paused_instance_ami" {
name = "cloud-gaming-${terraform.workspace}-paused"
source_instance_id = var.running_instance_id
}
output "paused_instance_ami" {
value = aws_ami_from_instance.paused_instance_ami.id
}
output "instance_id" {
value = module.aws_cloud_gaming.instance_id
}
output "instance_public_dns" {
value = module.aws_cloud_gaming.instance_public_dns
}
output "instance_password" {
value = module.aws_cloud_gaming.instance_password
sensitive = true
}