Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aws secretsmanager returns GET dev/test/mytest: unhandled error #304

Open
lelcuk opened this issue Aug 19, 2024 · 1 comment
Open

aws secretsmanager returns GET dev/test/mytest: unhandled error #304

lelcuk opened this issue Aug 19, 2024 · 1 comment

Comments

@lelcuk
Copy link

lelcuk commented Aug 19, 2024

Hi
I am trying to retrieve a simple aws secret using teller 2.0.7 and im getting a constant error

.teller.yml

project: my_project
opts:
  stage: development

providers:
  aws_secrete:
    kind: aws_secretsmanager
    maps:
      - id: mykey
        path: dev/test/mytest
        keys:
          myKey: ==

when accessing the secret as aws secretsmanager get-secret-value --secret-id dev/test/mytest, I get a proper json

{
    "ARN": "******************************************:secret:dev/test/mytest-####",
    "Name": "dev/test/mytest",
    "VersionId": "************************",
    "SecretString": "{\"myKey\":\"mySecret\"}",
    "VersionStages": [
        "AWSCURRENT"
    ],
    "CreatedDate": "2024-08-19T10:33:12.709000+03:00"
}

but running teller show gets

Error: GET dev/test/mytest: unhandled error

Location:
    /build/source/teller-cli/src/cli.rs:296:23

what am I doing wrong?
aws config is:

[profile ##############]
sso_session = aaaaaaaaaaa
sso_account_id = ############
sso_role_name = PowerUserAccess
region = eu-central-1
[sso-session 'aaaaaaaaaaa']
sso_start_url = https://????????.awsapps.com/start
sso_region = eu-central-1
sso_registration_scopes = sso:account:access

TIA

@lelcuk
Copy link
Author

lelcuk commented Aug 20, 2024

I've managed to resolve this
after following hashicorp/terraform-provider-aws#28263 and https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html#sso-configure-profile-manual
and creating a "legacy" profile, teller started to work

FYI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant