Skip to content

Vault AWS Login not working #31573

Description

@ben-nelson-nbcuni

Apache Airflow version

2.6.1

What happened

Trying to connect to Vault using auth_type = aws_iam. I am receiving the following error: AttributeError: 'Client' has no attribute 'auth_aws_iam'. Looking through the code, you are using client.auth_aws_iam, but the HVAC docs use client.auth.aws.iam_login. You should also add support for boto3.Session() to use role based access.

What you think should happen instead

Airflow should authenticate to Vault using AWS auth.

How to reproduce

Setup a secrets backend of airflow.providers.hashicorp.secrets.vault.VaultBackend and set auth_type = aws_iam. It will error out saying that the client doesn't have an attribute named auth_aws_iam.

Operating System

Docker

Versions of Apache Airflow Providers

No response

Deployment

Official Apache Airflow Helm Chart

Deployment details

No response

Anything else

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions