Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lab 3: S3 Bucket Name is Not Unique #11

Open
charles-salmon opened this issue Oct 28, 2021 · 1 comment
Open

Lab 3: S3 Bucket Name is Not Unique #11

charles-salmon opened this issue Oct 28, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@charles-salmon
Copy link
Contributor

Task 5 of Lab 3 suggests that the bucket be named s3-pdf-requests. When concatenated with the application name and environment name specified earlier, this does not result in a globally unique name. I personally executed:

"s3-pdf-requests-" + [Guid]::NewGuid().ToString().Substring(0,8)

in PowerShell, but figured that you may have a more elegant solution in mind, so thought that I'd highlight this. Sorry that I forgot to point this one out yesterday!

@donnieprakoso
Copy link
Owner

donnieprakoso commented Oct 28, 2021

Thanks for flagging this!
It's funny that you raised this on the same day I filed the issue on copilot-cli repo.
We both have the same thought about this, and what I normally do isn't that elegant. Here's the command that I use on Linux:

PREFIX=$(tr -dc a-z0-9 </dev/urandom | head -c 10)

And add them into the S3 bucket name.

I'll update the doc using both Linux and PowerShell command.

@donnieprakoso donnieprakoso self-assigned this Oct 29, 2021
@donnieprakoso donnieprakoso added the enhancement New feature or request label Oct 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants