Skip to main content

Python plugin supporting AWS CLI v1 for the Okera Data Access Service

Project description

Okera access control for AWS S3 CLI v1

Dependencies

Required:

  • Python 2,7, 3.6+

  • AWS CLI v1 for Python 2,7, 3.6+

  • jwt, requests, pytz, urllib3, pathlib

pip3 install jwt requests pytz urllib3 pathlib

Installation

pip3 install okera_fs_aws

To verify:

>>> import okera_fs_aws
>>> okera_fs_aws.version()
'2.7.0-b7'

Configuration

If ~/.aws/config does not exist the user should create it by running aws configure. The values assigned to access and secret key configurations will not effect the use of the okera_fs_aws plugin. The ‘plugins’ definition below indicates the AWS CLI should load the ‘okera_fs_aws’ python module found on it’s sys.path. The [profile okera] section parameterizes the Okera CLI plugin. There are two additional, optional parameters of the okera profile. The token_source value can be set to ‘authserver’. The mode value can be set to ‘proxy’ when the Access Proxy service operates in proxy mode.

Example of the okera_fs updates to ~/.aws/config

[profile okera]
okera =
    proxy = https://<CDAS Access Proxy service host>:5010
    rest = https://<CDAS REST server host>:8083
    token = <User's JWT token>

[plugins]
okera = okera_fs_aws

Usage

aws s3 <command> --profile okera

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

okera_fs_aws-2.7.0b7.tar.gz (21.1 kB view details)

Uploaded Source

Built Distribution

okera_fs_aws-2.7.0b7-py3.6.egg (11.1 kB view details)

Uploaded Source

File details

Details for the file okera_fs_aws-2.7.0b7.tar.gz.

File metadata

  • Download URL: okera_fs_aws-2.7.0b7.tar.gz
  • Upload date:
  • Size: 21.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.9

File hashes

Hashes for okera_fs_aws-2.7.0b7.tar.gz
Algorithm Hash digest
SHA256 0787b2a1e5c017be1fe24a1317f0a6a7417fa1a3bcc335bd94ca67091ba71c27
MD5 3f5a37e3c5b02b9fc047044c32bc46c5
BLAKE2b-256 04593977226176782becd690a3c94101a6f65861e2c832f91b6429ad30c7d294

See more details on using hashes here.

File details

Details for the file okera_fs_aws-2.7.0b7-py3.6.egg.

File metadata

  • Download URL: okera_fs_aws-2.7.0b7-py3.6.egg
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.9

File hashes

Hashes for okera_fs_aws-2.7.0b7-py3.6.egg
Algorithm Hash digest
SHA256 bcdb97d310b5b77e60258f27201ddbdeecd53b9d5ae5a911e7c0087a7e8f4379
MD5 bc79ff2f0491bf00ca3105d148860d50
BLAKE2b-256 e1a349e8937e7733914468590b4976df7295a0cd128e975ae2cf6b588e5f0680

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