For Publish-LMLayerVersion Cmdlet I need to know Content_S3Bucket and Content_S3Key #290
-
|
How can I get these values from Get-LMLayerVersionByArn? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
@dburtsev For
The Thanks, |
Beta Was this translation helpful? Give feedback.
-
|
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
@dburtsev For
Publish-LMLayerVersionneed to have the values for:Content_S3BucketandContent_S3Key. These specify the S3 object key containing the layer archive int he specified bucket; OR,Content_ZipFileparameter which is a byte array of base64-encoded contents of the layer archive.The
Get-LMLayerVersionByArnreturns Amazon.Lambda.Model.GetLayerVersionByArnResponse which does have theContentproperty of typeLayerVersionContentOutputthat provides access to Location]. TheLocationproperty isA link to the layer archive in Amazon S3 that is valid for 10 minutes.. I'm unsure why you would want to use this property since the whole point of usingPublish-LMLayerVersionis to create …