首先,需要检查 AWS CLI 版本是否正确,并且需要安装最新的 AWS CLI 版本。如果问题仍然存在,可以使用以下命令解决该问题:
aws redshift-authorize-endpoint-access --cluster-identifier
此命令将为指定的 Redshift 集群授权端点访问权限。注意使用正确的参数以及替换 ClusterTag、AWSAccountID、subnet-id-1、subnet-id-2、vpc-id 和 AWSRegion 为正确的值。
示例:
aws redshift-authorize-endpoint-access --cluster-identifier my-redshift-cluster --account 123456789012 --subnet-ids subnet-123456 subnet-654321 --vpc-id vpc-123456 --authorize --region us-west-2
执行此命令,应该会成功授权指定的 Redshift 集群端点访问权限。
上一篇:AWSCLI缺失某些命令?
下一篇:AWSCLI任务定义的修订版本