<div dir="ltr">See <a href="https://aws.amazon.com/premiumsupport/knowledge-center/iam-assume-role-cli/">https://aws.amazon.com/premiumsupport/knowledge-center/iam-assume-role-cli/</a> , they describe how to assume a role and set the usual AWS_* environment variables that GDAL should pick up.<div><br></div><div>There's discussion on vsis3 related stuff (e.g. authentication) here:  <a href="https://gdal.org/user/virtual_file_systems.html#vsis3">https://gdal.org/user/virtual_file_systems.html#vsis3</a></div><div><div><br></div><div>P</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 12, 2021 at 8:45 PM Jeannie May <<a href="mailto:jeannie_may@trimble.com">jeannie_may@trimble.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">I'm new to using Gdal. How do I configure gdal to use an IAM role, rather than defining an aws-Profile?<br><br>I get a timeout doing a gdal.Open() on a tiff file on S3 using vsis3, while trying to use an IAM role. <br><br>I'm using MaxRev.Gdal.Core 3.2.0.250. Netcore 3.1 c#, running in a Linux container.<br><br>Note that defining an AWS_Profile etc works ok, but I need to use IAM roles. Prior to trying to open the file with gdal, I successfully upload using s3Client (which uses the IAM role), so it's something specific to the Gdal.Open().  <br><br>using GetConfigOption() I can see that none of the following are set AWS_PROFILE; AWS_ACCESS_KEY_ID; AWS_SECRET_ACCESS_KEY; AWS_SESSION_TOKEN; AWS_NO_SIGN_REQUEST; AWS_DEFAULT_PROFILE<font color="#888888"><br clear="all"><div><br></div></font><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr" style="color:rgb(136,136,136)"><span style="color:rgb(54,53,69);font-family:sans-serif"><b><font size="4">Jeannie May</font></b><br></span><span style="font-size:13px;color:rgb(54,53,69);font-family:sans-serif">Senior Software Engineer</span></div><div style="color:rgb(136,136,136);font-size:12.8px"><span style="font-size:13px;color:rgb(54,53,69);font-family:sans-serif">11 Birmingham Drive, Christchurch | 963 5305</span><span style="font-size:13px;color:rgb(54,53,69);font-family:sans-serif"> Office </span><span style="color:rgb(54,53,69);font-family:sans-serif;font-size:13px"><br></span></div><div><a href="https://www.trimble.com/" target="_blank">www.trimble.com</a><br></div><span style="color:rgb(80,0,80);font-size:12.8px"><div style="color:rgb(34,34,34)"><font color="#000000"><br></font></div><div style="color:rgb(34,34,34)"><font color="#000000">Connect with us!<br></font></div></span></div></div></div></div></div></div>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</blockquote></div>