Skip to content

Configure Cloud CLI

Actions
Configure Cloud CLI, AWS, Aliyun, etc
v1.0.1
Latest
Star (1)

Setup Cloud CLI

There are several profiles as below for our CI/CD kubernetes cluster.

  • aws-us (default)
  • aws-cn
  • aliyun
  • aliyun-prod

Below are 2 examples for Aliyun and AWS. After a profile is configured, cloud cli (aliyun or aws) will have proper permissions to manipulate corresponding cloud resources.

jobs:
  build:
    runs-on: ubuntu-18.04
    steps:
      - name: Setup Cloud CLI
        uses: GlobeFishNG/setup-cloud-cli@v1
        with:
          profile: aliyun
      - run: |
          aliyun oss cp oss://example-bucket/example-file.json .
jobs:
  build:
    runs-on: ubuntu-18.04
    steps:
      - name: Setup Cloud CLI
        uses: GlobeFishNG/setup-cloud-cli@v1
        with:
          profile: aws-cn
      - run: |
          aws s3 cp s3://example-bucket/example-file.json .

Configure Cloud CLI is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Configure Cloud CLI, AWS, Aliyun, etc
v1.0.1
Latest

Configure Cloud CLI is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.