File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -65,9 +65,15 @@ aws_resource_identifier_supershort="aws_resource_identifier_supershort = \"${GIT
65
65
aws_r53_sub_domain_name=
66
66
if [ -n " ${AWS_R53_SUB_DOMAIN_NAME} " ]; then
67
67
aws_r53_sub_domain_name=" aws_r53_sub_domain_name = \" ${AWS_R53_SUB_DOMAIN_NAME} \" "
68
+ concatenated_string=" ${AWS_R53_SUB_DOMAIN_NAME} .${AWS_R53_DOMAIN_NAME} "
69
+ if [ ${# concatenated_string} -gt 64 ] && [[ $( alpha_only " $AWS_R53_CREATE_SUB_CERT " ) == " true" ]] ; then
70
+ echo " Length of FQDN exceeds 64 characters. Reduce length of it."
71
+ echo " You can use a root domain cert with a wildcard or define one through the inputs."
72
+ exit 64
73
+ fi
68
74
else
69
75
concatenated_string=" ${GITHUB_IDENTIFIER} .${AWS_R53_DOMAIN_NAME} "
70
- if [ ${# concatenated_string} -gt 64 ] && [[ $( alpha_only " $AWS_SITE_CDN_ENABLED " ) == " false " ]] ; then
76
+ if [ ${# concatenated_string} -gt 64 ] && [[ $( alpha_only " $AWS_R53_CREATE_SUB_CERT " ) == " true " ]] ; then
71
77
aws_r53_sub_domain_name=" aws_r53_sub_domain_name = \" ${GITHUB_IDENTIFIER_SS} \" "
72
78
else
73
79
aws_r53_sub_domain_name=" aws_r53_sub_domain_name = \" ${GITHUB_IDENTIFIER} \" "
@@ -119,4 +125,4 @@ echo "Creating TF-STATE bucket"
119
125
/bin/bash $GITHUB_ACTION_PATH /scripts/create_tf_state_bucket.sh
120
126
121
127
echo " Creating provider.tf"
122
- /bin/bash $GITHUB_ACTION_PATH /scripts/generate_provider.sh
128
+ /bin/bash $GITHUB_ACTION_PATH /scripts/generate_provider.sh
You can’t perform that action at this time.
0 commit comments