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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,554,539
Community Members
 
Community Events
184
Community Groups

How to loop over step/pipe to be able to update any changed lambdas in the repo

The pipe to update a lambda in AWS takes a single function name, you would have to have a separate step for every lambda in the repo for this to work right. Is there a way to loop a pipe or step, or provide a list of lambda names to be updated?

1 answer

did you find how to do it?

No, not with this pipe, for now I just manually loop and do the updates without a pipe.

However, you are allowed to use a pipe within a script, so that might be a way to accomplish this, I haven't had time to investigate that though.

example:


- step: &email-release-complete-dev
        name: Send Completion Email - Dev Release
        condition:
          changesets:
            includePaths:
              - dependencies/**
              - dependencies.json
              - lambda/**/*.py
        script:
          - email=$(git log --format='%ae' ${BITBUCKET_COMMIT}^!)
          - HEADER="#AWS Lambda Deploy to Dev Complete"
          - CONTENT="The pipeline for a merge to the \`dev\` branch for the \`awslambda\` repo has completed. See the attached file \`lambda_to_update.txt\` for a list of effected lambdas."
          - BUILD_LINK="[Pipeline Execution ${BITBUCKET_BUILD_NUMBER}](${BB_LINK}/addon/pipelines/home#!/results/${BITBUCKET_BUILD_NUMBER})"
          - printf "$HEADER\n\n$CONTENT\n\n$BUILD_LINK" | docker run -i datafolklabs/markdown > email_body.html
          - pipe: atlassian/email-notify:0.6.0

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events