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

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!
April 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 1, 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 5, 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