TheSudoYT / terraform-aws-palworld

Terraform module for Palworld Server Infrastructure on AWS
BSD 3-Clause "New" or "Revised" License
11 stars 5 forks source link

How can I create the EC2 on a local zone to reduce latency? #17

Open eefret opened 7 months ago

eefret commented 7 months ago

What is your Question? How can I create the EC2 on a local zone to reduce latency?

Can you Provide Context? I live in Dominican Republic and the smallest ping is a local zone in atlanta "us-east-1-atl-1a" so I would like to create the ec2 in there, I have the local zone activated in my account already (its where I run my other servers) my question would if your module supports to deploy in a local zone. Thanks for the great work.

eefret commented 7 months ago

Adding the subnet_availability_zone = "us-east-1-atl-1a" results in the following:

image

Josh-Tracy commented 7 months ago

Hi @eefret let me look into this.

Josh-Tracy commented 7 months ago

I'll have to update the module with this resource https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ec2_availability_zone_group and have a mechanism for creating the subnet and ec2 instance in the local zone. Not supported in the current version of the module.