-
Notifications
You must be signed in to change notification settings - Fork 10
Description
Is your feature request related to a problem? Please describe.
AWS have a 32 characters hard requirements for domain names .. anything longer will raise the following exception
failed: [localhost] (item=/root/deploy/terraform/shaman/control-plane) => {"ansible_loop_var": "item", "changed": false, "item": "/root/deploy/terraform/shaman/control-plane", "msg": "Terraform plan could not be created\r\nSTDOUT: Refreshing Terraform state in-memory prior to plan...\nThe refreshed state will be used to calculate this plan, but will not be\npersisted to local or remote state storage.\n\ndata.aws_lb_target_group.int_6443_tg: Refreshing state...\ndata.aws_lb_target_group.int_22623_tg: Refreshing state...\ndata.aws_security_group.master-sg: Refreshing state...\n\r\n\r\nSTDERR: \nError: Error retrieving LB Target Group: ValidationError: Target group name 'spartaeast-production-22623-int-tg' cannot be longer than '32' characters\n\tstatus code: 400, request id: 49e18849-3bfd-4997-863a-629384def8b6\n\n\n\nError: Error retrieving LB Target Group: ValidationError: Target group name 'spartaeast-production-6443-int-tg' cannot be longer than '32' characters\n\tstatus code: 400, request id: 2b86ceea-d686-4be9-8116-559bfb57c309\n\n\n"}
Describe the solution you'd like
Warn end user about the requirements to avoid long domain names that will exceed that requirement