Je n'arrive pas à télécharger un fichier à partir d'une instance aws à l'aide de la commande powershell Write-S3Object. I do avoir un handle ouvert sur le fichier 'c: \ work \ log_instance2.txt' depuis que j'ai un script python en cours d'exécution et c'est le fichier journal. Est-ce le comportement attendu de Write-S3Object? Comment puis-je télécharger le fichier lorsque l'application python est toujours en cours d'exécution?Write-S3Object: Le processus ne peut pas accéder au fichier
Write-S3Object : The process cannot access the file
'c:\work\log_instance2.txt' because it is being used by another process.
At line:1 char:1
+ Write-S3Object -BucketName 'catcfs' -File 'c:\\work\\log_instance2.txt' -Key
'Un ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~
+ CategoryInfo : InvalidOperation: (Amazon.PowerShe...eS3ObjectCm
dlet:WriteS3ObjectCmdlet) [Write-S3Object], InvalidOperationException
+ FullyQualifiedErrorId : System.IO.IOException,Amazon.PowerShell.Cmdlets.
S3.WriteS3ObjectCmdlet