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,552,359
Community Members
 
Community Events
184
Community Groups

AWS S3 Deploy: success but not uploading anything

Amirull Yusuf Zulkarnain
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
Apr 29, 2023

Hello everyone, i need help about this issue.

i got a situation when usiong aws s3 deploy, 

the pipeline build was successfull, the log can see bellow 

 

Screenshot 2023-04-29 151154.png

 

But when i check the S3 Bucket, there is nothing. the bucket are still empy

Screenshot 2023-04-29 151328.png

 

Whats wrong, do i missing something? 


 

and this is my Bitbucket pipelines,

my apps using Vue/Nuxt3 to be deploy on S3 and Cloud front, this is the full pipelines yml

 

image: node:16


pipelines:

  default:

    - parallel:

      - step:

          name: Build and Test

          caches:

            - node

          script:

            - npm install

      - step:

          name: Lint the node package

          script:

            - npm install eslint

          caches:

            - node

  branches:

    development:

      - parallel:

        - step:

            name: Build and Test

            caches:

              - node

            script:

              - npm install

              - npm run build

            artifacts:

              - .output

        - step:

            name: Security Scan

            script:

              - pipe: atlassian/git-secrets-scan:1.2.1

      - step:

          name: Deploy to Production

          deployment: Development

          clone:

            enabled: false

          script:

            # sync your files to S3

            - pipe: atlassian/aws-s3-deploy:1.2.0

              variables:

                AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID

                AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY

                AWS_DEFAULT_REGION: $AWS_DEFAULT_REGION

                S3_BUCKET: $S3_BUCKET

                ACL: 'public-read'

                LOCAL_PATH: '$(pwd)'

            # triggering a distribution invalidation to refresh the CDN caches

            - pipe: atlassian/aws-cloudfront-invalidate:0.7.0

              variables:

                AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID

                AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY

                AWS_DEFAULT_REGION: $AWS_DEFAULT_REGION

                DISTRIBUTION_ID: $DISTRIBUTION_ID


1 answer

1 vote
Erez Maadani
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 01, 2023

Hi @Amirull Yusuf Zulkarnain 

Try adding the DEBUG variable to get more info. You can also try and add the PRE_EXECUTION_SCRIPT to list the files in your `pwd` and make sure they exist where you think they should.

Have a look here: https://bitbucket.org/atlassian/aws-s3-deploy/src/master/ for more details.

Igor Stoyanov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 05, 2023

@Amirull Yusuf Zulkarnain hi.
To update previous answer.
Seems like the folder that you want to upload is empty.
Maybe you need to upload with artifacts.
Check this article for more info.

Regards, Igor

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events