Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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?

Chyn I'm New Here Jan 28, 2021

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

0 votes
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 Galyna Zholtkevych 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!

Suggest an answer

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

What We Learned When We Researched Open Source Vulnerabilities in 7 Popular Coding Languages

...hey are a part of us, shaping how we interact with the world around us. The same holds true for programming languages when we think about how different kinds of vulnerabilities raise their heads in t...

1,320 views 0 3
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