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-LMLayerVersion
need to have the values for:Content_S3Bucket
andContent_S3Key
. These specify the S3 object key containing the layer archive int he specified bucket; OR,Content_ZipFile
parameter which is a byte array of base64-encoded contents of the layer archive.The
Get-LMLayerVersionByArn
returns Amazon.Lambda.Model.GetLayerVersionByArnResponse which does have theContent
property of typeLayerVersionContentOutput
that provides access to Location]. TheLocation
property 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-LMLayerVersion
is to create …