<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>On that page there are a number of arns for lambda layers, but
      when I try to get the http location of those I get from</p>
    <p>aws lambda get-layer-version-by-arn --arn
      arn:aws:lambda:us-east-1:552188055668:layer:geolambda-python:3
      --query Content.Location --output text</p>
    <p>An error occurred (AccessDeniedException) when calling the
      GetLayerVersionByArn operation: User: <removed> is not
      authorized to perform: lambda:GetLayerVersion on resource:
      arn:aws:lambda:us-east-1:552188055668:layer:geolambda-python:3
      because no resource-based policy allows the lambda:GetLayerVersion
      action</p>
    <p>And I have an admin access to one AWS account.</p>
    <p>How do I get those layers?<br>
    </p>
    <p>Ari<br>
    </p>
    <div class="moz-cite-prefix">Joe Lee kirjoitti 8.2.2023 klo 16.35:<br>
    </div>
    <blockquote type="cite"
cite="mid:DM6PR17MB2396F1A7DF886FDDF842D6E4C2D89@DM6PR17MB2396.namprd17.prod.outlook.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style>@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}@font-face
        {font-family:"Malgun Gothic";
        panose-1:2 11 5 3 2 0 0 2 0 4;}@font-face
        {font-family:"\@Malgun Gothic";}p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}div.WordSection1
        {page:WordSection1;}</style>
      <div class="WordSection1">
        <p class="MsoNormal">This worked quite well in 2019 with a few
          hacks:<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><a
            href="https://github.com/developmentseed/geolambda"
            moz-do-not-send="true" class="moz-txt-link-freetext">https://github.com/developmentseed/geolambda</a><o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <div style="border:none;border-top:solid #B5C4DF
          1.0pt;padding:3.0pt 0in 0in 0in">
          <p class="MsoNormal" style="margin-bottom:12.0pt"><b><span
                style="font-size:12.0pt;color:black">From:
              </span></b><span style="font-size:12.0pt;color:black">gdal-dev
              <a class="moz-txt-link-rfc2396E" href="mailto:gdal-dev-bounces@lists.osgeo.org"><gdal-dev-bounces@lists.osgeo.org></a> on behalf of Ari
              Jolma <a class="moz-txt-link-rfc2396E" href="mailto:ari.jolma@gmail.com"><ari.jolma@gmail.com></a><br>
              <b>Date: </b>Wednesday, February 8, 2023 at 1:42 AM<br>
              <b>To: </b><a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
              <a class="moz-txt-link-rfc2396E" href="mailto:gdal-dev@lists.osgeo.org"><gdal-dev@lists.osgeo.org></a><br>
              <b>Subject: </b>[gdal-dev] AWS Lambda layer with GDAL
              python bindings<o:p></o:p></span></p>
        </div>
        <div>
          <p class="MsoNormal">Hi,<br>
            <br>
            I need an AWS Lambda layer with GDAL python bindings, for
            "from osgeo <br>
            import gdal", but it seems difficult to make such a layer.<br>
            <br>
            In fact all I need is gdal.Open and gdal.BuildVRT - I have
            not dug <br>
            deeper into rasterio, can it do those?<br>
            <br>
            Anyway, I installed GDAL on a machine with python 3.8 as
            that's what to <br>
            lambda runtime will be, and from there copied files to a zip
            with /lib <br>
            and /python. The /lib is for the shared objects. I have now
            94 libraries <br>
            there. The error I now get from<br>
            <br>
            try<br>
            <br>
                 from osgeo import gdal<br>
            <br>
            except<br>
            <br>
            in the lambda is<br>
            <br>
            ImportError: /lib64/libm.so.6: version `GLIBC_2.27' not
            found (required <br>
            by /opt/lib/libgdal.so.29)<br>
            <br>
            this seems to be a problem as that's the lambda's libm and
            not the libm <br>
            in /lib, which I assume should work.<br>
            <br>
            Anybody know a solution? I tried some recipes I found from
            the net howto <br>
            build such a layer but they did not work for me out of the
            box, so I <br>
            tried myself.<br>
            <br>
            Best,<br>
            <br>
            Ari<br>
            <br>
            <br>
            _______________________________________________<br>
            gdal-dev mailing list<br>
            <a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
            <a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev"
              moz-do-not-send="true" class="moz-txt-link-freetext">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><o:p></o:p></p>
        </div>
      </div>
    </blockquote>
  </body>
</html>