Closed karlsburg closed 8 years ago
@karlsburg what's the name of your project?
ReasonAuthCore. It's not a public repo, will open it up if you want to have a look?
@karlsburg no need. I see where the issue is. We set the website bucket name with this format: <projectName>.client.<stage>.<region>
... and bucket names can't contain capital letters (From AWS: Bucket names can contain lowercase letters, numbers, and hyphens. Each label must start and end with a lowercase letter or a number.
). This is not your fault of course since we can't expect you to change your project name.
I'm gonna change this behavior and instead let users specify the bucket name in s-project.json
like this:
"client": {
"bucket": "client_BUCKET_NAME"
}
Thanks for reporting this, and stay tuned! ;)
@eahefnawy - brilliant, thanks for the quick response, and great work on the serverless projects.
While you're at it a path attribute would be handy also as mentioned in #10.
"client": {
"bucket": "client_BUCKET_NAME"
"path": "client/www"
}
I like the suggested option to specify a bucket, but might it also make sense to lowercase the the existing format as well so it will work with no changes?
@duckworth it goes beyond this issue. It was a mistake from my side to set a default bucket name because I realized that in enterprise environments, some teams don't have control over the company bucket naming policies, so the bucket name should follow a certain company policy. Because of that we want to give the user complete control over what the bucket name should be.
I hope that makes sense :)
Although, one disadvantage is that there's the extra step of having to specify a bucket name before using the plugin...hmmm....
A nice way around that would be to allow user to specify bucket name in config, but if it's not specified, fall back to your original naming convertion (in lowercase ;)
Done! Just released to npm as well. Let me know if you face any other issues @karlsburg :blush:
Great - Thank you @eahefnawy :+1:
Error when deploying: