Skip to content

Setting cdp_private_key incorrect format #7

@k8s-1

Description

@k8s-1

Hi,

I set the cdp_private_key as follows:
cdp configure set cdp_private_key "$CDP_PRIVATE_KEY"

The value of environment variable CDP_PRIVATE_KEY is:
`-----BEGIN OPENSSH PRIVATE KEY-----



-----END OPENSSH PRIVATE KEY-----
`

After executing command cdp datalake backup-datalake --datalake-name ****** --backup-location ******
, I get error

Failed to import private key from: 'shared-credentials-file'. The private key is corrupted or not in the right format. The private key was extracted either from 'env' (environment variables), 'shared-credentials-file' (a profile in the shared credentials file.....

What should be the correct format for the CDP_PRIVATE_KEY so this configuration is usable in e.g. cdp datalake backup-datalake?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions