{"action":"created","issue":{"url":"https://api.github.com/repos/aws/aws-lambda-dotnet/issues/347","repository_url":"https://api.github.com/repos/aws/aws-lambda-dotnet","labels_url":"https://api.github.com/repos/aws/aws-lambda-dotnet/issues/347/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-lambda-dotnet/issues/347/comments","events_url":"https://api.github.com/repos/aws/aws-lambda-dotnet/issues/347/events","html_url":"https://github.com/aws/aws-lambda-dotnet/issues/347","id":383998305,"node_id":"MDU6SXNzdWUzODM5OTgzMDU=","number":347,"title":"PowerShell - New-S3Bucket fails if bucketname is not lowercase","user":{"login":"pauby","id":12760779,"node_id":"MDQ6VXNlcjEyNzYwNzc5","avatar_url":"https://avatars2.githubusercontent.com/u/12760779?v=4","gravatar_id":"","url":"https://api.github.com/users/pauby","html_url":"https://github.com/pauby","followers_url":"https://api.github.com/users/pauby/followers","following_url":"https://api.github.com/users/pauby/following{/other_user}","gists_url":"https://api.github.com/users/pauby/gists{/gist_id}","starred_url":"https://api.github.com/users/pauby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pauby/subscriptions","organizations_url":"https://api.github.com/users/pauby/orgs","repos_url":"https://api.github.com/users/pauby/repos","events_url":"https://api.github.com/users/pauby/events{/privacy}","received_events_url":"https://api.github.com/users/pauby/received_events","type":"User","site_admin":false},"labels":[{"id":1110650476,"node_id":"MDU6TGFiZWwxMTEwNjUwNDc2","url":"https://api.github.com/repos/aws/aws-lambda-dotnet/labels/feature-request","name":"feature-request","color":"008672","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-11-24T15:29:22Z","updated_at":"2018-11-26T21:51:43Z","closed_at":null,"author_association":"NONE","body":"When executing the following command: `New-S3Bucket -BucketName SomeLogs` the following error is issued:\r\n\r\n```\r\nNew-S3Bucket : One or more errors occurred. (The specified bucket is not valid.)\r\nAt line:1 char:1\r\n+ New-S3Bucket -BucketName 'SomeLogs'\r\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n+ CategoryInfo          : InvalidOperation: (Amazon.PowerShe...wS3BucketCmdlet:NewS3BucketCmdlet) [New-S3Bucket], AggregateException\r\n+ FullyQualifiedErrorId : Failed to create the specified bucket.\r\nAmazon S3 error: One or more errors occurred. (The specified bucket is not valid.),Amazon.PowerShell.Cmdlets.S3.NewS3BucketCmdlet\r\n\r\nNew-S3Bucket : One or more errors occurred. (The specified bucket is not valid.)\r\nAt line:1 char:1\r\n+ New-S3Bucket -BucketName 'SomeLogs'\r\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n+ CategoryInfo          : InvalidOperation: (Amazon.PowerShe...wS3BucketCmdlet:NewS3BucketCmdlet) [New-S3Bucket], InvalidOperationException\r\n+ FullyQualifiedErrorId : System.AggregateException,Amazon.PowerShell.Cmdlets.S3.NewS3BucketCmdlet\r\n```\r\n\r\nExecuting `New-S3Bucket -BucketName somelogs` creates the bucket as normal.\r\n\r\nThe case of the `BucketName` parameter should be handled within the function itself either to convert it to lower case and pass onto AWS to create the bucket (preferred), or an error thrown with a helpful error message advising that the bucket case is important AND update the cmdlet help to say this."},"comment":{"url":"https://api.github.com/repos/aws/aws-lambda-dotnet/issues/comments/441812644","html_url":"https://github.com/aws/aws-lambda-dotnet/issues/347#issuecomment-441812644","issue_url":"https://api.github.com/repos/aws/aws-lambda-dotnet/issues/347","id":441812644,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MTgxMjY0NA==","user":{"login":"klaytaybai","id":21030068,"node_id":"MDQ6VXNlcjIxMDMwMDY4","avatar_url":"https://avatars2.githubusercontent.com/u/21030068?v=4","gravatar_id":"","url":"https://api.github.com/users/klaytaybai","html_url":"https://github.com/klaytaybai","followers_url":"https://api.github.com/users/klaytaybai/followers","following_url":"https://api.github.com/users/klaytaybai/following{/other_user}","gists_url":"https://api.github.com/users/klaytaybai/gists{/gist_id}","starred_url":"https://api.github.com/users/klaytaybai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klaytaybai/subscriptions","organizations_url":"https://api.github.com/users/klaytaybai/orgs","repos_url":"https://api.github.com/users/klaytaybai/repos","events_url":"https://api.github.com/users/klaytaybai/events{/privacy}","received_events_url":"https://api.github.com/users/klaytaybai/received_events","type":"User","site_admin":false},"created_at":"2018-11-26T21:51:43Z","updated_at":"2018-11-26T21:51:43Z","author_association":"NONE","body":"Hi @pauby, thank you for your feedback.  The error is by design, but we will consider changing the error message and help information.\r\n\r\nPlease check out the following for more info:\r\n[Bucket Restrictions documentation](https://docs.aws.amazon.com/AmazonS3/latest/dev/BucketRestrictions.html)"}}
{"actor":{"display_login":"klaytaybai"}}