Skip to content

IngestionManagerPandas doesn't propagate Boto3 Session profile_name to Workers #2298

@apriceaws

Description

@apriceaws

Describe the bug
When ingesting a DataFrame to a FeatureGroup, there is no way to set the profile_name in the Boto3 Session used by IngestionManagerPandas workers/threads. This prevents utilizing anything but default credentials when ingesting to a FeatureGroup using this class.

To reproduce

  1. Ensure "default" creds profile does not have access to write to FeatureGroup
  2. Ensure "<profile_name>" creds profile does have access to write to FeatureGroup
  3. Set a profile_name on boto3 using boto3.setup_default_session(profile_name=<profile_name>)
  4. Attempt to ingest a dataframe to a FeatureGroup using .ingest()
  5. Ingest will fail because "default" creds do not have access, and "<profile_name>" creds will not be used in the workers

Expected behavior
Worker Boto3 sessions should be initialized with a profile name which matches boto3.DEFAULT_SESSION.profile_name.

System information
A description of your system. Please provide:

  • SageMaker 2.38.0

Additional context
Use of default credentials is not an option in this context.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions