You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Description: Generate all identifiers needs to poulate the IaC (terraform and ansible). Identifiers are a required component as cloud resources often have strict usage conventions that need to be appied to dynamic user input.
9
+
functiongenerate_identifiers () {
8
10
# Generate TF_STATE_BUCKET ID if empty
9
11
if [ -z"${TF_STATE_BUCKET}" ];then
10
12
if [[ ${#GITHUB_IDENTIFIER}< 55 ]];then
@@ -22,8 +24,10 @@ function generateIdentifiers () {
22
24
export LB_LOGS_BUCKET="${GITHUB_IDENTIFIER}-lg"
23
25
fi
24
26
}
25
-
26
-
functioncheckBucket() {
27
+
# Function: check_bucket_names
28
+
# Description: Runs a handful of RegEx to ensure strict usage requirements are followed.
29
+
functiongenerate_bucket_names() {
30
+
27
31
# check length of bucket name
28
32
if [[ ${#1}-lt 3 ||${#1}-gt 63 ]];then
29
33
echo"Bucket name must be between 3 and 63 characters long."
0 commit comments