Skip to content
This repository was archived by the owner on Dec 9, 2024. It is now read-only.

fix: Update storage account naming convention #190

Merged
merged 3 commits into from
Jul 5, 2019

Conversation

wbreza
Copy link
Contributor

@wbreza wbreza commented Jul 4, 2019

Ensures storage account names do not clash based on combination of prefix, region, stage & service name

  • Ensures generated name is <= 24 chars
  • Ensures region names don't conflict
  • Generates short region part from full value
  • Generates short stage part from full value
  • Includes partial hash of service name in full name

Resolves AB#420

@wbreza wbreza requested review from mydiemho and tbarlow12 July 4, 2019 01:26
Copy link
Contributor

@tbarlow12 tbarlow12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@mydiemho mydiemho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, one minor suggestion

Guard.empty(longName);
Guard.null(wellKnownMap);

const pattern = `(${Object.keys(wellKnownMap).join("|")})`;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it would be good to have comments explaining what these pattern and regex do

@wbreza wbreza force-pushed the wabrez/fix-storage-account-name branch from 3fff350 to 7d49677 Compare July 5, 2019 21:33
@wbreza wbreza merged commit 74fdbe6 into dev Jul 5, 2019
@wbreza wbreza deleted the wabrez/fix-storage-account-name branch July 5, 2019 21:40
tbarlow12 pushed a commit that referenced this pull request Sep 13, 2019
Ensures storage account names do not clash based on combination of prefix, region, stage & service name

- Ensures generated name is <= 24 chars
-  Ensures region names don't conflict
-  Generates short region part from full value
-  Generates short stage part from full value
-  Includes partial hash of service name in full name

Resolves AB#420
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants