jorgebastida / gordon

λ Gordon is a tool to create, wire and deploy AWS Lambdas using CloudFormation
Other
2.04k stars 137 forks source link

gordon apply --stage should accept capitalized letters as well #87

Closed kpx-dev closed 8 years ago

kpx-dev commented 8 years ago

Ex: gordon apply --stage PROD gordon [build | apply | startproject | startapp] apply: error: argument -s/--stage: Stage names can only contain alphanumeric characters

Expected: gordon apply --stage PROD to works

jorgebastida commented 8 years ago

As far as I can remember this was introduced because s3 bucket names must be lowercase and one of the first things gordon does, is to create a bucket using your stage name on it.

I thought about making that parameter be lowercased by gordon, but that would mean that $ gordon apply --stage PROD and $ gordon apply --stage prod will end up meaning the same... which for a person with unix background feels completely wrong... sorry!