Skip to content

Commit

Permalink
Make AWS name shorter
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianczech committed Sep 11, 2023
1 parent d437cec commit d075cab
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/testskeleton/testskeleton.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ type AwsRandomNames struct {
func GenerateAwRandomNames() AwsRandomNames {
prid := os.Getenv("PRID")
if prid != "" {
prid = fmt.Sprintf("-pr%s-", prid)
prid = fmt.Sprintf("pr%s", prid)
} else {
prid = "tt"
}

id := uuid.New().String()
Expand All @@ -77,7 +79,7 @@ func GenerateAwRandomNames() AwsRandomNames {
prefixId := idSliced[2]

names := AwsRandomNames{
NamePrefix: fmt.Sprintf("tt%s%s-", prid, prefixId),
NamePrefix: fmt.Sprintf("%s-%s-", prid, prefixId),
}

return names
Expand Down

0 comments on commit d075cab

Please sign in to comment.