cognitedata / inso-bootstrap-cli

CLI and GitHub-Action to configure and maintain CDF Projects (Groups, Data Sets, RAW DBs)
Apache License 2.0
4 stars 2 forks source link

Being able to create extractors and transformations CDF groups from cli #8

Closed CogJoel closed 2 years ago

CogJoel commented 2 years ago

A feature request here:

We would like to be able to create the extractors and transformations CDF groups with the CLI.

Either set it up automatically or add it as a choice within the config.

spex66 commented 2 years ago

@CogJoel : PR #9 is on it's way

spex66 commented 2 years ago

@CogJoel : PR #9 is merged and live in @main

pls let me know if the issue can be closed

spex66 commented 2 years ago

the release is tagged now as v1.2.1 too:

CogJoel commented 2 years ago

I understand exactly where in gh-action to add --with-special-groups=yes

CogJoel commented 2 years ago

jobs: deploy: name: Deploy Bootstrap Pipelines environment: dev runs-on: ubuntu-latest

environment variables

env:
  CDF_PROJECT: yourcdfproject
  CDF_CLUSTER: bluefield
  IDP_TENANT: abcde-12345
  CDF_HOST: https://bluefield.cognitedata.com/
  - name: Deploy bootstrap
    uses: cognitedata/inso-expipes-cli@main
    env:
        BOOTSTRAP_IDP_CLIENT_ID: ${{ secrets.CLIENT_ID }}
        BOOTSTRAP_IDP_CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}
        BOOTSTRAP_CDF_HOST: ${{ env.CDF_HOST }}
        BOOTSTRAP_CDF_PROJECT: ${{ env.CDF_PROJECT }}
        BOOTSTRAP_IDP_TOKEN_URL: https://login.microsoftonline.com/${{ env.IDP_TENANT }}/oauth2/v2.0/token
        BOOTSTRAP_IDP_SCOPES: ${{ env.CDF_HOST }}.default
    # additional parameters for running the action
    with:
      config_file: ./configs/test-bootstrap-deploy-example.yml

Where and how do I pass this arg? --with-special-groups=yes

spex66 commented 2 years ago

hi @CogJoel

        with:
          config_file: ./config/test-bootstrap-deploy-example.yml
          # deploy with special groups and aad_mappings
          with_special_groups: "yes"

is the way you add the new parameter to the gh-action with block

And that's a typo from you side?

 uses: cognitedata/inso-expipes-cli@main

should be either:

uses: cognitedata/inso-bootstrap-cli@main

or tagged to a release

uses: cognitedata/inso-bootstrap-cli@v1.2.1
CogJoel commented 2 years ago

Perfect I will try that, no typo from my side I just copied the example in the readMe, feel free to change that.

spex66 commented 2 years ago

Hi @CogJoel

CogJoel commented 2 years ago

Works well :)! Maybe mention that you need to checkout repo content in git action section in readMe aswell.

this is how I made it run: jobs: deploy-auth-config-dev: environment: dev runs-on: ubuntu-latest steps: