Update API key
You can update an existing API key to replace the key value when your external service provider rotates credentials. Updating the API key ensures your agents continue to have access to the external service with the current authentication information.
To update an API key
-
Open the AgentCore Identity
console. -
In the Outbound Auth section, select the API key you want to update.
-
Choose Edit.
-
In the Update API key dialog, for API key selection method, choose one of the following options:
-
Provide API key – Enter the API key value directly.
-
For API key, enter the updated key value provided by your external service. AgentCore Identity securely stores this new value and makes it available to your agent at runtime.
-
-
Provide API key via Secrets Manager – Reference a secret stored in AWS Secrets Manager instead of entering the value directly.
-
For Secrets Manager, enter or select the ARN of the Secrets Manager secret that contains your API key.
-
For JSON key, enter the JSON key in your Secrets Manager secret that contains the API key value.
-
-
-
Choose Update.
The updated API key configuration takes effect immediately. Your agents will use the new API key for all subsequent requests to the external service.