Hello, I am trying to deploy the `aws-py-voting-ap...
# getting-started
b
Hello, I am trying to deploy the
aws-py-voting-app
example (https://github.com/pulumi/examples/blob/master/aws-py-voting-app/). It's taking quite long and then failing with this error:
Copy code
aws:lb:TargetGroup (redis-targetgroup):
    error: 1 error occurred:
        * creating urn:pulumi:dev::voting-app::aws:lb/targetGroup:TargetGroup::redis-targetgroup: 1 error occurred:
        * error modifying Target Group Attributes: ValidationError: 'Stickiness type' must be one of [app_cookie, lb_cookie, source_ip]
        status code: 400, request id: 9995a158-8d9b-4e97-93ed-884389a95f6d

Resources:
    + 17 created

Duration: 45m20s
I can not make sense of this error message because 'lb_cookie' is used as type, as far as I can tell: https://github.com/pulumi/examples/blob/master/aws-py-voting-app/__main__.py#L130 Any hints what the problem could be?
e
I think this is because
lb_cookie
isn't supported with the TCP protocol.
b
Thanks, without knowing what I am doing, I switched out
lb_cookie
for
source_ip
. It works now! I think I still need to understand the change. Would this change be worth to commit to the
examples
-repo?
e
Yes please do!