参数验证失败:\ n输入中的未知参数:\“ VpcSecurityGroupIds \

时间:2019-07-18 01:08:37

标签: aws-lambda boto3

我正在尝试使用Python运行时3.6在AWS Lambda中运行restore_db_instance_from_db_snapshot

它引发异常:

  

输入:“ VpcSecurityGroupIds”中的未知参数必须是以下之一:   DBInstanceIdentifier,DBSnapshotIdentifier,DBInstanceClass,端口,   AvailabilityZone,DBSubnetGroupName,MultiAZ,PubliclyAccessible,   AutoMinorVersionUpgrade,LicenseModel,DBName,Engine,Iops,   OptionGroupName,标签,StorageType,TdeCredentialArn,   TdeCredentialPassword,Domain,CopyTagsToSnapshot,DomainIAMRoleName,   EnableIAMDatabaseAuthentication,EnableCloudwatchLogsExports,   ProcessorFeatures,UseDefaultProcessorFeatures:ParamValidationError   追溯(最近一次通话):

我该如何解决?

1 个答案:

答案 0 :(得分:0)

证明AWS lambda中的boto3版本是

for (let i = 0; i < array.length; i++){
    await this.executeA(array[i]);
}

async executeA(data){
    const res = await fetch(....)
    return new Promise(resolve => this.setState({ b: res }, async () => {
            await executeB(data);
            resolve();
        });
    });
}

async executeB(data){
    const res = await fetch(....)
    return new Promise(resolve => this.setState({ b: res }, async () => {
            await executeC(data);
            resolve();
        });
    });
}

async executeC(data){
    const res = await fetch(....)
    return new Promise(resolve => this.setState({ c: res }, resolve));
}

它们不支持参数boto3: 1.9.42 botocore: 1.12.42

我需要在VpcSecurityGroupIds之后发出modify_db_instance呼叫,以解决此问题。