Skip to main content

Sinistral CLI

Project description

Sinistral CLI

Setup

$ poetry shell
$ poetry install

Create a config file at ~/.stacklet/sinistral/config.json:

{
  "api": "https://api.sinistral.stacklet.io",
  "region": "us-east-1",
  "cognito_client_id": "5bogrjv9om1tjhfsd1c8d2kouo",
  "cognito_user_pool_id": "us-east-1_F4Ca4BFQS",
  "idp_id": "idp-4a301a48-cd63-4c6c-caf7-419c5b0ee737",
  "auth_url": "https://auth.sinistral.stacklet.io"
}

Login with a cognito user:

$ sinistral login --username $USER --password $PASSWORD

Or, login with SSO:

$ sinistral login

Run your first command:

$ sinistral projects list

Python client:

from stacklet.client.sinistral.client import sinistral_client

sinistral = sinistral_client()
policy_client = sinistral.client('policies')
print(policy_client.list())

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stacklet_client_sinistral-0.2.8.tar.gz (19.5 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file stacklet_client_sinistral-0.2.8.tar.gz.

File metadata

  • Download URL: stacklet_client_sinistral-0.2.8.tar.gz
  • Upload date:
  • Size: 19.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.1 Darwin/22.6.0

File hashes

Hashes for stacklet_client_sinistral-0.2.8.tar.gz
Algorithm Hash digest
SHA256 95c378ab3faf0477b818d66e8085aab933308643aa36d21f26e470fdf582a20e
MD5 e1bcea06b08cc362e7d2108c28ccaaa0
BLAKE2b-256 668b686393e3160b69a92f597afbd5090494329906bc476047b5704e626ff9a6

See more details on using hashes here.

File details

Details for the file stacklet_client_sinistral-0.2.8-py3-none-any.whl.

File metadata

File hashes

Hashes for stacklet_client_sinistral-0.2.8-py3-none-any.whl
Algorithm Hash digest
SHA256 7eb46c41035fefc4fe45254e227ab72e1bfc7b6a05e7cd782c73dcd0457dc434
MD5 e600e442527b18216e1f7d4e3aec41e1
BLAKE2b-256 f3d0b454bbd7e938c0a6583de6a662564e3a913ffd545b7aa18d878ea2ea6d01

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page