Description
Based on the docs here Cyberstrike IAM Role (EC2/ECS/Lambda), it would be expected that using the example config file would allow Cyberstrike to directly leverage the attached EC2 instance iam role (assuming it has the correct AWS permissions).
However when adding the config file per the docs (and after an edit to match expected provider correctly), an error asking for API credentials appears.
Error: AWS SigV4 authentication requires AWS credentials. Please provide either:
- Set AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables
- Provide accessKeyId and secretAccessKey in options
- Use a credentialProvider function
- Use API key authentication with AWS_BEARER_TOKEN_BEDROCK or apiKey option
Original error: AWS access key ID setting is missing. Pass it using the 'accessKeyId' parameter or the AWS_ACCESS_KEY_ID environment variable.
Steps to reproduce
- Spin up AWS EC2 Instance (IAM Role attached with appropriate Bedrock permissions).
- Remotely access EC2 via ssh.
- Install Cyberstrike using the curl command from here
curl -fsSL https://docs.cyberstrike.io/install.sh | sh
- Create config file in ~/.config/cyberstrike/config.json (location was chosen based on based on the instructions here.
{
"provider": { "bedrock": {
"options": {
"region": "us-east-1"
}
}
}
}
- Replace "bedrock" with "amazon-bedrock" in the config file under the provider block. Skipping this step makes the selected provider unrecognizable. Also update region as needed.
{
"provider": {
"amazon-bedrock": {
"options": {
"region": "us-east-1"
}
}
}
}
- Run
cyberstrike (check path or installation directory for bin).
- Attempt to send a prompt, and error message appears.
Agent
No response
Interface
CLI / TUI
LLM Provider
Amazon Bedrock
CyberStrike version
1.1.15
Operating System
Amazon Linux 2023
Terminal
bash
Logs / Screenshots
Description
Based on the docs here Cyberstrike IAM Role (EC2/ECS/Lambda), it would be expected that using the example config file would allow Cyberstrike to directly leverage the attached EC2 instance iam role (assuming it has the correct AWS permissions).
However when adding the config file per the docs (and after an edit to match expected provider correctly), an error asking for API credentials appears.
Steps to reproduce
curl -fsSL https://docs.cyberstrike.io/install.sh | shcyberstrike(check path or installation directory for bin).Agent
No response
Interface
CLI / TUI
LLM Provider
Amazon Bedrock
CyberStrike version
1.1.15
Operating System
Amazon Linux 2023
Terminal
bash
Logs / Screenshots