Skip to content

Enable feast to use current session based client instead of default one for AWS dynamodb #4605

Closed

Description

@asingh9530

Is your feature request related to a problem? Please describe.
Hi Team, I want to use feast in a cross aws account setup and I am failing to understand how that would work. Here is the problem statement I am running a feast job in aws account A and the online store (dynamodb ) is in aws account B now even after running assume role operation the feast still picking default dynamodb of aws account A and the job is failing.

Describe the solution you'd like
Instead of creating client from boto itself, we could enable feast to use current session as a option.

Describe alternatives you've considered
I have rewritten default client

boto3.client(
            "dynamodb",
            region_name=region,
            endpoint_url=endpoint_url,
            config=Config(user_agent=get_user_agent()),
        )

to this

boto3.Session().client(
            "dynamodb",
            region_name=region,
            endpoint_url=endpoint_url,
            config=Config(user_agent=get_user_agent()),
        )

Additional context
@tokoko @franciscojavierarceo we have a detailed conversation here https://feastopensource.slack.com/archives/C01M2GYP0UC/p1723995709072149

Activity

  1. stale commented on Apr 26, 2025

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureNew feature or requestwontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions