我正在尝试使用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 追溯(最近一次通话):
我该如何解决?
答案 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
呼叫,以解决此问题。