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

I'm create s3 by using pipeline but some issue please suggest me proper way

Ayush Sharma March 8, 2022
pipelines:
  branches: # Branch-specific pipelines definitions
    master:
      - step:
          name: Build and test the app
          image: node:latest
          script:
            - npm install
            - npm run test
            - npm run build
    production:
      - step:
          name: Building the app
          image: node:latest
          script:
            - npm install
            - npm run build
          artifacts:
            - build/**
      - step:
          name: Deploying the app to S3
          deployment: production
          script:
            - pipe: atlassian/aws-s3-deploy:0.2.4
              variables:
                AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
                AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
                AWS_DEFAULT_REGION: $AWS_DEFAULT_REGION
                CREATE_S3_BUCKET: "myreact-s3"
                ACL: "public-read"
                LOCAL_PATH: "build"
I use this file

1 answer

0 votes
Mark C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 9, 2022

Hi @Ayush Sharma

Thank you for reaching out to the community.

Unfortunately, the aws-s3-deploy doesn't offer to create an S3 bucket. It is only for deploying your repository data to your created S3 bucket.
If you'd like to create an S3 bucket on Pipelines, you can do it by using AWS CLI.
Here's an example I've found that might help: Create an AWS S3 Bucket using AWS CLI

Hope it helps and let me know if you have further questions.

Regards,
Mark C

Ayush Sharma April 21, 2022

thank you @Mark C 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events