skip to Main Content

I am deploying nuxt 3 project from bidbucket to AWS s3 bucket. I am following this link for nuxt deployment bidbucket to aws s3

I need to know how can I find the AWS local path.

Kindly please help me to find that relevent details

Thanks in advance!

2

Answers


  1. The AWS_local path mentioned in that pipe is nothing but the folder which you want to deploy to s3. I have done this 100’s of times.

    For example, I am going to deploy a change of my glue jobs to the location where the glue job points in S3. Then the folder name in my repo is "glue_jobs_code", I want it to be deployed to S3 so I just mention the folder name there like below.

     LOCAL_PATH: "glue_jobs_code"
    

    EDIT : It should be the name of your local directory simply!

    Best!
    Sai Teja

    Login or Signup to reply.
  2. You can keep the local folder in your working directory that want to deploy into S3 as AWA_LOCAL_PATH.

    Further if you don’t want to deploy the whole repo but only few files from different src folders, the way we do is before the S3 deploy pipe I will use script section on the same step to crate a new directory on the fly and copy the files that wanted to deploy into that.

    Now all I have to do is give that folder name to S3 deploy pipe as AWS_LOCAL_PATH.

    - step: deploy-glue-script-modules
        name: "Deploying glue script modules"
        deployment: staging
        script:
          - pipe: atlassian/aws-s3-deploy:1.1.0
            variables:
              AWS_ACCESS_KEY_ID: $DE_AWS_KEY
              AWS_SECRET_ACCESS_KEY: $AWS_SECRET 
              AWS_DEFAULT_REGION: $AWS_REGION 
              S3_BUCKET: code-$ENV/project-name/modules
              LOCAL_PATH: "modules"
    

    Best!
    Makanist

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search