Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

×
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

aws-code-deploy: S3 location and command

Hello,

a few questions

how can I specify a location (path) on a bucket where I'd like to deploy the artifacts?

As of right now, it appears that S3_BUCKET only takes the bucket name e.g. s3://mybucket

 

"Command":

 is there a way to combine both actions ( "upload" and "deploy") without invoking the pipe twice?

 

Thank you.

ref: https://bitbucket.org/atlassian/aws-code-deploy/src/master/README.md

1 answer

1 accepted

1 vote
Answer accepted
Oleksandr Kyrdan
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Feb 24, 2023

Hi @AZZ 

Thank you for your question!

1) there is an example in the Readme for your case:

script:
  - pipe: atlassian/aws-code-deploy:1.1.1
    variables:
      AWS_DEFAULT_REGION: 'ap-southeast-2'
      AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
      AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
      COMMAND: 'deploy'
      APPLICATION_NAME: 'lambda-application'
      DEPLOYMENT_GROUP: 'my-deployment-group'
      WAIT: 'true'
      S3_BUCKET: 'my-bucket'
      VERSION_LABEL: 'lambda-app-1.0.0'
      BUNDLE_TYPE: 'YAML'

2) the pipe supports `upload` or `deploy` mode in the current implementation.

Best regards,
Oleksandr Kyrdan

@Oleksandr Kyrdan,

Thank you for the reply.

If I understood you correctly:

1.  there is no way to specify a path on the bucket? I was hoping to upload to a specific location e.g. "mybucket/deployments".

2. There is no option to upload and deploy in the same pipe call?

Oleksandr Kyrdan
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Feb 24, 2023 • edited

@AZZ 

1. You could provide the FOLDER variable for the pipe to specify path on you S3 bucket according to the Readme documentation.

FOLDER If the deployable artifact is in any folder inside bucket, specify the folder name

2. You should choose only one of the option or upload or deploy at once.

Like Steffen Opel _Utoolity_ likes this

worked like a charm. Thank you @Oleksandr Kyrdan 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events