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.9.tar.gz (19.2 kB view details)

Uploaded Source

Built Distribution

stacklet_client_sinistral-0.2.9-py3-none-any.whl (29.5 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for stacklet_client_sinistral-0.2.9.tar.gz
Algorithm Hash digest
SHA256 3e64838e67b8d3722ce2135fa7f1a916faf4458f7b8a23a16b9ff94c2e43e8e5
MD5 9ec0d9b175162b6dc41d2d495948495d
BLAKE2b-256 b1dffe8d5942e06c0002b454c5853d0dc6ef5b4d24f0b497625436858ad55279

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stacklet_client_sinistral-0.2.9-py3-none-any.whl
Algorithm Hash digest
SHA256 bda97e89a183461c9cb3203f18620faa0e3269e82263269f55290cb688b3af7c
MD5 80b018587928ec3ff76660710349f341
BLAKE2b-256 587e290a311d2a2239beaec3d0054374015f7db07c89c59e40772cb35d072d75

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