I'm trying to create a new aws.alb.Listener in order to attach it to a new aws.alb.LoadBalancer and to reference the defaultActions to a new aws.lb.TargetGroup with this example (link) with YAML syntax and with the Pulumi Kubernetes Operator (link).
I was able to create the aws.alb.LoadBalancer & aws.lb.TargetGroupsuccessfully, but when I tried to create the aws.alb.Listener and reference in the defaultActions (which is list of maps) the new targetGroupArn from my new aws.lb.TargetGroup I got the following error:
Warning StackUpdateFailure 3s (x21 over 5h48m) stack-controller Failed to update Stack: failed to run update: exit status 255
code: 255
stdout: Updating (test-stack):
pulumi:pulumi:Stack test-test-stack running
@ updating....
pulumi:pulumi:Stack test-test-stack running ^[[31mError^[[0m: aws:alb/listener:Listener is not assignable from {defaultActions: List<{}>, loadBalancerArn: string, port: number, protocol: string}
pulumi:pulumi:Stack test-test-stack running on Pulumi.yaml line 79:
pulumi:pulumi:Stack test-test-stack running 79: ^[[1;4m- ^[[0m{}
pulumi:pulumi:Stack test-test-stack running Cannot assign '{defaultActions: List<{}>, loadBalancerArn: string, port: number, protocol: string}' to 'aws:alb/listener:Listener':
pulumi:pulumi:Stack test-test-stack running defaultActions: Cannot assign 'List<{}>' to 'List<aws:alb/ListenerDefaultAction:ListenerDefaultAction>':
pulumi:pulumi:Stack test-test-stack running Cannot assign '{}' to 'aws:alb/ListenerDefaultAction:ListenerDefaultAction':
pulumi:pulumi:Stack test-test-stack running type: Missing required property 'type'
pulumi:pulumi:Stack test-test-stack 7 messages
Diagnostics:
pulumi:pulumi:Stack (test-test-stack):
^[[31mError^[[0m: aws:alb/listener:Listener is not assignable from {defaultActions: List<{}>, loadBalancerArn: string, port: number, protocol: string}
on Pulumi.yaml line 79:
79: ^[[1;4m- ^[[0m{}
Cannot assign '{defaultActions: List<{}>, loadBalancerArn: string, port: number, protocol: string}' to 'aws:alb/listener:Listener':
defaultActions: Cannot assign 'List<{}>' to 'List<aws:alb/ListenerDefaultAction:ListenerDefaultAction>':
Cannot assign '{}' to 'aws:alb/ListenerDefaultAction:ListenerDefaultAction':
type: Missing required property 'type'
Any chance that there is a problem when the pulumi is trying to convert the list of maps?
What happened?
I'm trying to create a new
aws.alb.Listener
in order to attach it to a newaws.alb.LoadBalancer
and to reference thedefaultActions
to a newaws.lb.TargetGroup
with this example (link) withYAML
syntax and with the Pulumi Kubernetes Operator (link).I was able to create the
aws.alb.LoadBalancer
&aws.lb.TargetGroup
successfully, but when I tried to create theaws.alb.Listener
and reference in thedefaultActions
(which is list of maps) the newtargetGroupArn
from my newaws.lb.TargetGroup
I got the following error:Any chance that there is a problem when the pulumi is trying to convert the list of maps?
Example