In our project we are using AwsCustomResource
:
const sdkCall: customResource.AwsSdkCall = {
service: 'KMS',
action: 'replicateKey',
physicalResourceId: cr.PhysicalResourceId.of('CustomResource::KeyReplicaCreation'),
parameters: {
KeyId: keyId,
ReplicaRegion: replicaRegion
}
};
new cr.AwsCustomResource(this, `example replica`, {
onCreate: sdkCall,
onUpdate: sdkCall,
policy: cr.AwsCustomResourcePolicy.fromStatements([
new iam.PolicyStatement({
effect: iam.Effect.ALLOW,
actions: ['kms:*'],
resources: ['*']
})
])
});
Now that we know that nodejs12.x
is not supported where can we provide the lambda runtime value?
We have checked the props and there is no way to provide it.