iopipe / serverless-iopipe-layers

Please migrate to the equivalent New Relic Serverless plugin: serverless-newrelic-lambda-layers
https://github.com/iopipe/serverless-newrelic-lambda-layers
Apache License 2.0
14 stars 8 forks source link

Fetch latest layers from the Layers API #6

Closed ewindisch closed 5 years ago

ewindisch commented 5 years ago

Landing page /w documentation: https://layers.iopipe.com/

It's not a unified API, each region must have layers queried independently. This Restful API is built with OpenAPI and is based on the official AWS API for AWS Lambda (scoped to the layers functionality)

For example this query:

curl https://us-east-1.layers.iopipe.com/get-layers?CompatibleRuntime=nodejs8.10

with this response:

{
   "NextMarker" : null,
   "Layers" : [
      {
         "LayerName" : "IOpipeNodeJS810",
         "LayerArn" : "arn:aws:lambda:us-east-1:146318645305:layer:IOpipeNodeJS810",
         "LatestMatchingVersion" : {
            "CreatedDate" : "2019-03-15T15:47:00.179+0000",
            "Version" : 9,
            "Description" : "IOpipe Layer for Node 8.10",
            "CompatibleRuntimes" : [
               "nodejs8.10"
            ],
            "LayerVersionArn" : "arn:aws:lambda:us-east-1:146318645305:layer:IOpipeNodeJS810:9",
            "LicenseInfo" : "Apache 2.0"
         }
      }
   ]
}
kolanos commented 5 years ago

Should be able to disable this feature via the serverless.yml config. One advantage to pinning ARNs is if you run into a bug with the latest version you can downgrade to an earlier version by downgrading the plugin.

ewindisch commented 5 years ago

I agree with the option to pin, but I think users should do it inside the plugin and shouldn't have to update the plugin to update layers

On Mon, Jul 22, 2019 at 2:07 PM Michael Lavers notifications@github.com wrote:

Should be able to disable this feature via the serverless.yml config. One advantage to pinning ARNs is if you run into a bug with the latest version you can downgrade to an earlier version by downgrading the plugin.

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/iopipe/serverless-iopipe-layers/issues/6?email_source=notifications&email_token=AAAR356J6GFZSH2MCRHRB2TQAXZN7A5CNFSM4HB2RZS2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2QWDBQ#issuecomment-513892742, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAR357YWNI7QSXAHKYP3G3QAXZN7ANCNFSM4HB2RZSQ .

-- -Erica

kolanos commented 5 years ago

Closed by #34