Neil Philip asked:
Running nginx reverse proxy on an Amazon Workspace (virtual desktop). How can I get a public DNS or a stable public ip address (like an elastic IP?)
You can manually assign Elastic IPs to a WorkSpace if it is in a public subnet. But instead of attaching them directly to instances as you might have done with EC2 instances, you need to attach them to the WorkSpace’s public subnet Network Interface. The Amazon WorkSpaces documentation explains how this is done:
To assign an Elastic IP address to a WorkSpace manually
Open the Amazon WorkSpaces console at https://console.aws.amazon.com/workspaces/.
In the navigation pane, choose WorkSpaces.
Expand the row for the WorkSpace and note the value of WorkSpace IP. This is the primary private IP address of WorkSpace.
Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.
In the navigation pane, choose Elastic IPs. If you do not have an available Elastic IP address, choose Allocate new address and
follow the directions.
In the navigation pane, choose Network Interfaces.
Select the network interface for your WorkSpace. Note that the value of VPC ID matches the ID of your WorkSpaces VPC and the
value of Primary private IPv4 IP matches the primary private IP
address of the WorkSpace that you noted earlier.
Choose Actions, Associate Address.
On the Associate Elastic IP Address page, choose an Elastic IP address from Address and then choose Associate Address.
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.