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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for stacklet_client_sinistral-0.4.0.tar.gz
Algorithm Hash digest
SHA256 1316241f9c0c35c5c6df51d0debb22f3a27e592a865e8aca7dd3a5a0f2683737
MD5 d7e6b8ca926645dfcc013b909b845417
BLAKE2b-256 9f5b141945678cf7f8d95fa1e1d538f9121521738c5848d230ec4d78add3e3b9

See more details on using hashes here.

Provenance

The following attestation bundles were made for stacklet_client_sinistral-0.4.0.tar.gz:

Publisher: release.yaml on stacklet/sinistral-cli

Attestations:

File details

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

File metadata

File hashes

Hashes for stacklet_client_sinistral-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0f9bce0288be75daf067a2f9c19250ab08cb253af6e7af8b1991e552ea609255
MD5 96525d0a24aa5d95629eca014bfb3040
BLAKE2b-256 3a2cecdc7f42ef82b31ad62d47a0d884c42d4e043cf521279b5dac280723a521

See more details on using hashes here.

Provenance

The following attestation bundles were made for stacklet_client_sinistral-0.4.0-py3-none-any.whl:

Publisher: release.yaml on stacklet/sinistral-cli

Attestations:

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