1

寻求有关为什么失败的帮助

aws elbv2 create-target-group --name $targetName --target-type lambda

返回

aws: error: the following arguments are required: --protocol, --port, --vpc-id

如果我提供协议、端口和 vpc-id

aws elbv2 create-target-group --name $targetName --target-type lambda --protocol HTTPS --port 443 --vpc-id vpc-1234

返回

An error occurred (ValidationError) when calling the CreateTargetGroup operation: Port cannot be specified for target groups with target type 'lambda'

我被卡住了,我尝试过 json 文件输入,结果相同。创建目标组后,您将无法更改目标类型(我尝试创建 https 然后将其编辑为目标类型,但不支持)

4

0 回答 0