# CrewAI | Memory | AWS bedrock embedding issue

**URL:** https://community.crewai.com/t/crewai-memory-aws-bedrock-embedding-issue/3107
**Category:** CrewAI Community Support
**Tags:** agent, task, crewai, memory
**Created:** [January 22, 2025, 9:37am UTC](https://community.crewai.com/t/crewai-memory-aws-bedrock-embedding-issue/3107 "2025-01-22T09:37:02Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![surendra\_kumar](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/surendra_kumar/32/2186_2.png) [@surendra\_kumar](https://community.crewai.com/u/surendra_kumar)
#### Post date: [January 22, 2025, 9:37am UTC](https://community.crewai.com/t/crewai-memory-aws-bedrock-embedding-issue/3107/1 "2025-01-22T09:37:02Z")

</div>

Session created for AWS Bedrock

session = boto3.Session(  
aws\_access\_key\_id=os.getenv(“AWS\_ACCESS\_KEY\_ID”),  
aws\_secret\_access\_key=os.getenv(“AWS\_SECRET\_ACCESS\_KEY”),  
region\_name=“us-east-1”  
)

Below is my defined crew  
@crew  
def crew(self) → Crew:  
“”“Creates the Research Crew”“”  
return Crew(  
agents=self.agents,  
tasks=self.tasks,  
process=Process.sequential,  
verbose=True,  
memory=True,  
user\_memory=None,  
knowledge\_sources=[  
content\_source  
],  
embedder=dict(  
provider=“bedrock”, # or openai, ollama, …  
config=dict(  
model=“amazon.titan-embed-text-v2:0”,  
session=session  
),  
)  
)

After running this crew I am getting below error for short\_term and entities search.

ERROR:root:Error during short\_term search: ClientError. **init** () missing 1 required positional argument: ‘operation\_name’  
ERROR:root:Error during entities search: ClientError. **init** () missing 1 required positional argument: ‘operation\_name’

C:\MyData\AI-ML-Latest\AI-ML\gnoc\_automation\_flow.venv\Lib\site-packages\botocore\auth.py:424: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).  
datetime\_now = datetime.datetime.utcnow()  
ERROR:root:Error during short\_term save: ClientError. **init** () missing 1 required positional argument: ‘operation\_name’  
C:\MyData\AI-ML-Latest\AI-ML\gnoc\_automation\_flow.venv\Lib\site-packages\botocore\auth.py:424: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).  
datetime\_now = datetime.datetime.utcnow()  
ERROR:root:Error during entities save: ClientError. **init** () missing 1 required positional argument: ‘operation\_name’

Could someone please help to resolve the above issue.

---

<div class="post-metadata">

### Author: ![obinna\_ogbuagu](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/obinna_ogbuagu/32/2948_2.png) [@obinna\_ogbuagu](https://community.crewai.com/u/obinna_ogbuagu)
#### Post date: [March 7, 2025, 7:51pm UTC](https://community.crewai.com/t/crewai-memory-aws-bedrock-embedding-issue/3107/2 "2025-03-07T19:51:57Z")

</div>

Hi, I am experiencing the same issue. I have tried everything I could think of. This argument is not listed anywhere in the documentation. Maybe, it’s just not tailored to work properly for AWS bedrock

---

<div class="post-metadata">

### Author: ![rskannan](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/rskannan/32/2276_2.png) [@rskannan](https://community.crewai.com/u/rskannan)
#### Post date: [March 8, 2025, 12:24am UTC](https://community.crewai.com/t/crewai-memory-aws-bedrock-embedding-issue/3107/3 "2025-03-08T00:24:06Z")

</div>

Try adding:

“operation\_name”: “Embed” # Add operation name for Bedrock client

to your config dictionary

Like this:

```python
config=dict(
    model=“amazon.titan-embed-text-v2:0”,
    session=session
    operation-name="Embed"
),

```
