Hi, documentation for ELB Cookie Stickiness Policy is not up to date:
http://docs.aws.amazon.com/cli/latest/reference/elb/create-app-cookie-stickiness-policy.html http://docs.aws.amazon.com/cli/latest/reference/elb/create-lb-cookie-stickiness-policy.html
Try the following example:
aws elb create-app-cookie-stickiness-policy --load-balancer-name test-lb --policy-name yada_yada --cookie-name yada_yada-124
A client error (ValidationError) occurred when calling the CreateAppCookieStickinessPolicy operation: Policy name cannot contain characters that are not letters, or digits or the dash.
or
aws elb create-lb-cookie-stickiness-policy --load-balancer-name test-lb --policy-name yada_yada
A client error (ValidationError) occurred when calling the CreateLBCookieStickinessPolicy operation: Policy name cannot contain characters that are not letters, or digits or the dash.
I believe these constraints should be documented.