akeyless-cloud-id


Nameakeyless-cloud-id JSON
Version 0.2.3 PyPI version JSON
download
home_pagehttps://www.akeyless.io/
SummaryAKEYLESS Cloud ID Retriever
upload_time2024-01-31 12:30:45
maintainer
docs_urlNone
authorAkeyless Security
requires_python
licenseApache 2.0
keywords akeyless cloud id
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ########################
Akeyless Python Cloud Id
########################

Retrieves cloud identity

Currently, AWS, GCP and Azure clouds are supported.
In order to get cloud identity you should import this package and call the relevant method per your chosen CSP:
- AWS: "generate" (If no aws access id/key and token are provided they will be retrieved automatically from the default session.)
- GCP: "generateGcp"
- Azure: "generateAzure"

Minimum requirements
====================

* Python 3.5+
* urllib3 >= 1.15
* requests

Optional Dependencies
====================

* boto3
* google-auth

Installation
============

.. code::
    pip install akeyless-python-cloud-id

**AWS:**

To install with AWS:

.. code::

    pip install akeyless-python-cloud-id[aws]

The following additional packages will be installed:

* boto3

**GCP:**

To install with GCP:

.. code::

    pip install akeyless-python-cloud-id[gcp]

The following additional packages will be installed:

* google-auth

*****
Usage
*****

Such code can be used, for example, in order to retrieve secrets from Akeyless as part of AWS Code Pipeline:

.. code::
    pip install git+https://github.com/akeylesslabs/akeyless-python-sdk

    import akeyless_api_gateway
    from akeyless_cloud_id import CloudId

    configuration = akeyless_api_gateway.Configuration()
    configuration.host="http://<api-gateway-host>:<port>"

    api_instance = akeyless_api_gateway.DefaultApi(akeyless_api_gateway.ApiClient(configuration))

    cloud_id = CloudId()
    # for AWS use:
    id = cloud_id.generate()
    # For Azure use:
    id = cloud_id.generateAzure()
    # For GCP use:
    id = cloud_id.generateGcp()

    access_id = event['CodePipeline.job']['data']['actionConfiguration']['configuration']['UserParameters']

    auth_response = api_instance.auth(access_id, access_type="aws_iam", cloud_id=id)
    token = auth_response.token

    postgresPassword = api_instance.get_secret_value("PostgresPassword", token)


*******
License
*******
This SDK is distributed under the `Apache License, Version 2.0`_ see LICENSE.txt for more information.


.. _Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0

            

Raw data

            {
    "_id": null,
    "home_page": "https://www.akeyless.io/",
    "name": "akeyless-cloud-id",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "AKEYLESS Cloud ID",
    "author": "Akeyless Security",
    "author_email": "support@akeyless.io",
    "download_url": "https://files.pythonhosted.org/packages/d0/3c/06fdf7d87d5bf87702b20a35e54f8a137c2f1a4dc82b544b67602fb7b1eb/akeyless_cloud_id-0.2.3.tar.gz",
    "platform": null,
    "description": "########################\nAkeyless Python Cloud Id\n########################\n\nRetrieves cloud identity\n\nCurrently, AWS, GCP and Azure clouds are supported.\nIn order to get cloud identity you should import this package and call the relevant method per your chosen CSP:\n- AWS: \"generate\" (If no aws access id/key and token are provided they will be retrieved automatically from the default session.)\n- GCP: \"generateGcp\"\n- Azure: \"generateAzure\"\n\nMinimum requirements\n====================\n\n* Python 3.5+\n* urllib3 >= 1.15\n* requests\n\nOptional Dependencies\n====================\n\n* boto3\n* google-auth\n\nInstallation\n============\n\n.. code::\n    pip install akeyless-python-cloud-id\n\n**AWS:**\n\nTo install with AWS:\n\n.. code::\n\n    pip install akeyless-python-cloud-id[aws]\n\nThe following additional packages will be installed:\n\n* boto3\n\n**GCP:**\n\nTo install with GCP:\n\n.. code::\n\n    pip install akeyless-python-cloud-id[gcp]\n\nThe following additional packages will be installed:\n\n* google-auth\n\n*****\nUsage\n*****\n\nSuch code can be used, for example, in order to retrieve secrets from Akeyless as part of AWS Code Pipeline:\n\n.. code::\n    pip install git+https://github.com/akeylesslabs/akeyless-python-sdk\n\n    import akeyless_api_gateway\n    from akeyless_cloud_id import CloudId\n\n    configuration = akeyless_api_gateway.Configuration()\n    configuration.host=\"http://<api-gateway-host>:<port>\"\n\n    api_instance = akeyless_api_gateway.DefaultApi(akeyless_api_gateway.ApiClient(configuration))\n\n    cloud_id = CloudId()\n    # for AWS use:\n    id = cloud_id.generate()\n    # For Azure use:\n    id = cloud_id.generateAzure()\n    # For GCP use:\n    id = cloud_id.generateGcp()\n\n    access_id = event['CodePipeline.job']['data']['actionConfiguration']['configuration']['UserParameters']\n\n    auth_response = api_instance.auth(access_id, access_type=\"aws_iam\", cloud_id=id)\n    token = auth_response.token\n\n    postgresPassword = api_instance.get_secret_value(\"PostgresPassword\", token)\n\n\n*******\nLicense\n*******\nThis SDK is distributed under the `Apache License, Version 2.0`_ see LICENSE.txt for more information.\n\n\n.. _Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0\n",
    "bugtrack_url": null,
    "license": "Apache 2.0",
    "summary": "AKEYLESS Cloud ID Retriever",
    "version": "0.2.3",
    "project_urls": {
        "Homepage": "https://www.akeyless.io/"
    },
    "split_keywords": [
        "akeyless",
        "cloud",
        "id"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c18cc158c962ee9bdf62a6e4cc60afa53a231968d69411fd3dc9c5127343b16d",
                "md5": "a40bbbce1af41ddd17aebc4e1edb4783",
                "sha256": "e122ff0c1060686db2f229093b920b2ba70c495779058f1b9a540a85e2643dbe"
            },
            "downloads": -1,
            "filename": "akeyless_cloud_id-0.2.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a40bbbce1af41ddd17aebc4e1edb4783",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 8558,
            "upload_time": "2024-01-31T12:30:43",
            "upload_time_iso_8601": "2024-01-31T12:30:43.220675Z",
            "url": "https://files.pythonhosted.org/packages/c1/8c/c158c962ee9bdf62a6e4cc60afa53a231968d69411fd3dc9c5127343b16d/akeyless_cloud_id-0.2.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d03c06fdf7d87d5bf87702b20a35e54f8a137c2f1a4dc82b544b67602fb7b1eb",
                "md5": "5ffc183622bd3cd0b071ad3153c6410e",
                "sha256": "76ff6fca42c618183c0f0c1418973b27154e1d2428cb391dba32a329e8fed4f2"
            },
            "downloads": -1,
            "filename": "akeyless_cloud_id-0.2.3.tar.gz",
            "has_sig": false,
            "md5_digest": "5ffc183622bd3cd0b071ad3153c6410e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 8250,
            "upload_time": "2024-01-31T12:30:45",
            "upload_time_iso_8601": "2024-01-31T12:30:45.096994Z",
            "url": "https://files.pythonhosted.org/packages/d0/3c/06fdf7d87d5bf87702b20a35e54f8a137c2f1a4dc82b544b67602fb7b1eb/akeyless_cloud_id-0.2.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-31 12:30:45",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "akeyless-cloud-id"
}
        
Elapsed time: 0.36622s