I am deploying an AWS Transfer Family server with CloudFormation Stack. When the server is created with the VPC hosted option an endpoint is created with DNS entries. The problem is those DNS entries are not stable and contain some unique parts in it, e.g.:
vpce-xx767xx3x7xcx7x2c-6wxxxrxu.vpce-svc-0xx8b4xx07xx08cex.eu-central-1.vpce.amazonaws.com
As part of the automation process I would like to add a CNAME record to the route53 hostedzone, so that I could reach it with the stable url.
Any suggestions on how it could be achieved ?
I have tried to follow the following: https://docs.aws.amazon.com/transfer/latest/userguide/requirements-dns.html#tag-custom-hostname-cdk Adding tags did not create a CNAME record.
Also, TransferFamily cloud formation object (AWS::Transfer::Server) does not expose endpoints, as such I cant extract the hostnames.