Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

In aws-sam-deploy pipe, can the lambda uploaded to S3 with a lambda function name?

In pipe - aws-sam-deploy package-only, can we have option to put the lambda function name as prefix automatically before upload the zip file to S3?

Ex. Instead of "12af3377de8d9c743192c0182f3b7322" in the S3, can we have "my-lambda-name-12af3377de8d9c743192c0182f3b7322" in S3 ? 

This will ease the maintenance of the bucket.  

1 answer

1 accepted

1 vote
Answer accepted

@Chynthanks for the question!

sam package has the parameter in cli --s3-prefix, and if to pass there this prefix, it creates the folder with s3-prefix name in the root and inside that folder there is your code.

It will look like this:

s3://your-bucket/HelloWorldFunction/<uuid> .

Would be such result fine for you?

I suppose that there is no any other option according to aws  sam cli documentation

But in the case if you upload several resources to s3 bucket, you can use s3 prefix to put needed code in folder and simply reach it by lambda function name.

Since there will be just one zip inside that folder, you can simply list objects in the folder and get its arn or s3 url, if you need.


If such result is ok for you, we will consider your case as the feature request to our pipe.

Regards, Galyna

Ok that help. Thanks ! 

Like Halyna Berezovska likes this

@Chynok then, I'll update you when we maintain this in future release.

Cheers, Galyna

Adding support for --s3-prefix param in the aws-sam-deploy pipe would be great indeed!

Like # people like this

Yes, I've hit a wall because of the `--s3-prefix` issue. I've updated the source locally to support it, would love to send it to Atlassian to get it added.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

📣 Calling Bitbucket Data Center customers to participate in research

Hi everyone, Are you Bitbucket DC customer? If so, we'd love to talk to you! Our team wants to dive deep to understand your long-term plans regarding Bitbucket DC and Atlassian Cloud. Do you plan...

209 views 2 5
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you