Commit ba488d63 authored by GridexX's avatar GridexX
Browse files

doc(aws): update links, summary & versin docker image

parent e890286f
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
## Objective

This job uses the AWS CLI (v1 for now) in order to sync files between a directory and a target S3 bucket. See changes between the two versions [here](https://docs.aws.amazon.com/cli/latest/userguide/cliv2-migration.html).
This job uses the AWS CLI (v1 for now) in order to sync files between a directory and a target S3 bucket. See changes between the two versions [here](https://docs.aws.amazon.com/cli/latest/userguide/cliv2-migration.html){:target="_blank"}.

[AWS CLI](https://aws.amazon.com/cli/){:target="_blank"} is a unified tool to manage your AWS services. With just one tool to download and configure, you can control multiple AWS services from the command line and automate them through scripts.

@@ -9,10 +9,11 @@ This job uses the AWS CLI (v1 for now) in order to sync files between a director
    ```yaml
      - remote: 'https://jobs.r2devops.io/latest/aws_s3_sync.yml'
    ```
2. Fill the variables `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY` or `AWS_DEFAULT_REGION` with yours. See the [documentation](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-quickstart.html).
2. Fill the variables `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY` or `AWS_DEFAULT_REGION` with yours (see the [documentation](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-quickstart.html){:target="_blank"} ).

    ??? summary "Need a custom Endpoint ⚓ ?"
      Just type your custom url in the variable `AWS_ENDPOINT`
        For example, you can find the custom endpoint url for Scaleway on their [documentation](https://www.scaleway.com/en/docs/storage/object/api-cli/object-storage-aws-cli/).
      For example, you can find the custom endpoint url for Scaleway [here](https://www.scaleway.com/en/docs/storage/object/api-cli/object-storage-aws-cli/){:target="_blank"}.

3. If you need to customize the job (stage, variables, ...) 👉 check the [jobs
   customization](/use-the-hub/#jobs-customization)
@@ -20,7 +21,7 @@ This job uses the AWS CLI (v1 for now) in order to sync files between a director

## Job details
* Job name: `aws_s3_sync`
* Docker image: [bitnami/aws-cli:2.2.39](https://hub.docker.com/r/bitnami/aws-cli){:target="blank"}
* Docker image: [bitnami/aws-cli:2.2.41](https://hub.docker.com/r/bitnami/aws-cli){:target="blank"}
* Default stage: `others`

### Variables
+2 −2
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@ stages:
aws_s3_sync:
  stage: others
  image:
    name: bitnami/aws-cli:2.2.39
    name: bitnami/aws-cli:2.2.41
    entrypoint: [""]
  variables:
    AWS_ACCESS_KEY_ID: " "
@@ -41,7 +41,7 @@ aws_s3_sync:
    - aws configure set default.s3api.endpointurl https://s3.nl-ams.scw.cloud

    #update the ACL with the AWS json input
    - if [ ! -z ${BUCKET_NAME} ]; then
    - if [ ! -z ${AWS_ACL} ]; then
    -   aws s3api get-bucket-acl --bucket ${BUCKET_NAME} --cli-input-json ${AWS_ACL}
    - fi

+1 −1
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@ icon: 🅰️
maintainer: GridexX
license: MIT
images: 
  "bitnami/aws-cli": '2.2.39'
  "bitnami/aws-cli": '2.2.41'
tools:
  AWS CLI: "1.20.44"
  Python: "3.7.12"