<div>I was able to get this to work by upgrading to V3.3.3.</div><div> </div><div>03.11.2021, 20:01, "Vladimir Sandoval" <vladimir.sandoval@yandex.com>:</div><blockquote><div>With GDAL v3.2.1, Windows 10 - trying to write a geotiff to an S3 bucket using /vsis3/.</div><div> </div><div>The documentation states:</div><div> </div><div><div><span style="background-color:#fcfcfc;color:#404040;float:none;font-family:'lato' , 'proxima-nova' , 'helvetica neue' , 'arial' , sans-serif;font-size:16px;font-style:normal;font-weight:400;text-decoration-style:initial;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">It also allows sequential writing of files. No seeks or read operations are then allowed, so in particular direct writing of GeoTIFF files with the GTiff driver is not supported, unless, if, starting with GDAL 3.2, the </span><code style="background:rgb( 255 , 255 , 255 );border:1px solid rgb( 225 , 228 , 229 );box-sizing:border-box;color:black;font-family:'source code pro' , 'consolas' , 'courier new' , monospace;font-size:14.4px;font-style:normal;font-weight:400;max-width:100%;overflow-x:auto;padding:2px 5px 2px 5px;text-decoration-style:initial;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="box-sizing:border-box">CPL_VSIL_USE_TEMP_FILE_FOR_RANDOM_WRITE</span></code><span style="background-color:#fcfcfc;color:#404040;float:none;font-family:'lato' , 'proxima-nova' , 'helvetica neue' , 'arial' , sans-serif;font-size:16px;font-style:normal;font-weight:400;text-decoration-style:initial;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"> configuration option is set to </span><code style="background:rgb( 255 , 255 , 255 );border:1px solid rgb( 225 , 228 , 229 );box-sizing:border-box;color:black;font-family:'source code pro' , 'consolas' , 'courier new' , monospace;font-size:14.4px;font-style:normal;font-weight:400;max-width:100%;overflow-x:auto;padding:2px 5px 2px 5px;text-decoration-style:initial;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="box-sizing:border-box">YES</span></code><span style="background-color:#fcfcfc;color:#404040;float:none;font-family:'lato' , 'proxima-nova' , 'helvetica neue' , 'arial' , sans-serif;font-size:16px;font-style:normal;font-weight:400;text-decoration-style:initial;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">, in which case random-write access is possible (involves the creation of a temporary local file, whose location is controlled by the </span><code style="background:rgb( 255 , 255 , 255 );border:1px solid rgb( 225 , 228 , 229 );box-sizing:border-box;color:black;font-family:'source code pro' , 'consolas' , 'courier new' , monospace;font-size:14.4px;font-style:normal;font-weight:400;max-width:100%;overflow-x:auto;padding:2px 5px 2px 5px;text-decoration-style:initial;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="box-sizing:border-box">CPL_TMPDIR</span></code><span style="background-color:#fcfcfc;color:#404040;float:none;font-family:'lato' , 'proxima-nova' , 'helvetica neue' , 'arial' , sans-serif;font-size:16px;font-style:normal;font-weight:400;text-decoration-style:initial;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"> configuration option).</span></div><div> </div><div><span style="background-color:#fcfcfc;color:#404040;float:none;font-family:'lato' , 'proxima-nova' , 'helvetica neue' , 'arial' , sans-serif;font-size:16px;font-style:normal;font-weight:400;text-decoration-style:initial;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">So I have (obfuscated for privacy)</span></div><div> </div><div><span style="background-color:#fcfcfc;color:#404040;float:none;font-family:'lato' , 'proxima-nova' , 'helvetica neue' , 'arial' , sans-serif;font-size:16px;font-style:normal;font-weight:400;text-decoration-style:initial;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">gdal_translate ---config AWS_CONFIG_FILE c:/temp/credentials --config AWS_PROFILE myProfile --config AWS_VIRTUAL_HOSTING FALSE --config AWS_S3_ENDPOINT ourEndpoint.com --config CPL_VSIL_USE_TEMP_FILE_FOR_RANDOM_WRITE YES --config CPL_TMPDIR c:/temp/ -of COG  c:/temp/BlueMarbleJune.ntf /vsis3/test-imagery/COGS/BlueMarbleJune2.cog.tif</span></div><div> </div><div><span style="background-color:#fcfcfc;color:#404040;float:none;font-family:'lato' , 'proxima-nova' , 'helvetica neue' , 'arial' , sans-serif;font-size:16px;font-style:normal;font-weight:400;text-decoration-style:initial;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">and I get:</span></div><div><div><span style="background-color:#fcfcfc;color:#404040;float:none;font-family:'lato' , 'proxima-nova' , 'helvetica neue' , 'arial' , sans-serif;font-size:16px;font-style:normal;font-weight:400;text-decoration-style:initial;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Input file size is 21600, 10800</span></div><div><span style="background-color:#fcfcfc;color:#404040;float:none;font-family:'lato' , 'proxima-nova' , 'helvetica neue' , 'arial' , sans-serif;font-size:16px;font-style:normal;font-weight:400;text-decoration-style:initial;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">ERROR 1: Only read-only mode is supported for /vsicurl</span></div><div> </div><div><span style="background-color:#fcfcfc;color:#404040;float:none;font-family:'lato' , 'proxima-nova' , 'helvetica neue' , 'arial' , sans-serif;font-size:16px;font-style:normal;font-weight:400;text-decoration-style:initial;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">So, can I write a geotiff to S3 using those config options, or am I reading or doing something wrong with them?  I am able to write sequential rasters like NITF to S3.</span></div><div> </div><div><span style="background-color:#fcfcfc;color:#404040;float:none;font-family:'lato' , 'proxima-nova' , 'helvetica neue' , 'arial' , sans-serif;font-size:16px;font-style:normal;font-weight:400;text-decoration-style:initial;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">V</span></div><div> </div></div><div> </div></div>,<p>_______________________________________________<br />gdal-dev mailing list<br /><a href="mailto:gdal-dev@lists.osgeo.org" rel="noopener noreferrer">gdal-dev@lists.osgeo.org</a><br /><a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noopener noreferrer">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a></p></blockquote>