fix dns-compliant bucket names

This commit is contained in:
kneutron 2021-06-25 11:26:02 -05:00 committed by GitHub
parent 1b9f87047b
commit a3802563c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,7 +22,8 @@ sleep 1
out2=$(echo "$out1$((1 + $RANDOM % 99))$(date)" |sha256sum)
# include random number from 1-99 to try and prevent collisions
result=$(echo "$prefix-rbn-$out2" |tr ' ' '.' |cut -c 1-$pad)
# fix for https://www.cloudconformity.com/knowledge-base/aws/S3/dns-compliant-buckets-names.html
result=$(echo "$prefix-rbn-$out2" |tr ' ' '-' |cut -c 1-$pad)
echo ' 1 2 3 4 5 6 6'
echo '123456789012345678901234567890123456789012345678901234567890123'