cognitedata/inso-bootstrap-cli

Being able to create extractors and transformations CDF groups from cli

CogJoel opened this issue · 9 comments

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.

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

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

  • a new parameter was added to the deploy command
    => --with-special-groups=[yes|no]

pls let me know if the issue can be closed

the release is tagged now as v1.2.1 too:

- uses: cognitedata/inso-bootstrap-cli@v1.2.1

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

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

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

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

Hi @CogJoel

  • README with the gh-action example fixed and
  • added usage of with_special_groups there too

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:
- name: checkout repo content
uses: actions/checkout@main

  - name: Deploy bootstrap
    uses: cognitedata/inso-bootstrap-cli@v1.2.1
    env: 
    ....