Skip to content

For Publish-LMLayerVersion Cmdlet I need to know Content_S3Bucket and Content_S3Key #290

Answered by ashishdhingra
dburtsev asked this question in Q&A
Discussion options

You must be logged in to vote

@dburtsev For Publish-LMLayerVersion need to have the values for:

  • Content_S3Bucket and Content_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 the Content property of type LayerVersionContentOutput that provides access to Location]. The Location property is A 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 using Publish-LMLayerVersion is to create …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by dburtsev
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
guidance Question that needs advice or information. response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. module/powershell-cmdlets
2 participants