Skip to main content
Glama
generate-creds-from-iam-role.sh483 B
#!/bin/bash role=$1 TOKEN=`curl -s -X PUT "http://169.254.169.254/latest/api/token" -H "X-aws-ec2-metadata-token-ttl-seconds: 21600"` \ VALUES=$(curl -s -H "X-aws-ec2-metadata-token: $TOKEN" -v http://169.254.169.254/latest/meta-data/iam/security-credentials/$role) echo "export AWS_ACCESS_KEY_ID=$(echo $VALUES | jq -r '.AccessKeyId')" echo "export AWS_SECRET_ACCESS_KEY=$(echo $VALUES | jq -r '.SecretAccessKey')" echo "export AWS_SESSION_TOKEN=$(echo $VALUES | jq -r '.Token')"

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/systeminit/si'

If you have feedback or need assistance with the MCP directory API, please join our Discord server