diff --git a/knowledge base/cloud computing/aws/awscurl.md b/knowledge base/cloud computing/aws/awscurl.md index 7a9f36e..e3ece0d 100644 --- a/knowledge base/cloud computing/aws/awscurl.md +++ b/knowledge base/cloud computing/aws/awscurl.md @@ -9,10 +9,12 @@ ## TL;DR
- Installation + Setup ```sh brew install 'awscurl' +docker pull 'okigan/awscurl' +pip install 'awscurl' ```
@@ -35,7 +37,8 @@ awscurl … --service 'aps' 'https://aps.workspace.url/api/v1/query/api/v1/query -d 'start=1652382537' -d 'end=1652384705' -d 'step=1000' -d 'stats=all' # Run in containers. -docker run --rm -it 'okigan/awscurl' \ +docker run --rm -it -v "$HOME/.aws:/root/.aws:ro" 'okigan/awscurl' … +docker run --rm -it -e 'AWS_ACCESS_KEY_ID' -e 'AWS_SECRET_ACCESS_KEY' 'okigan/awscurl' \ --region 'eu-south-1' --service 'aps' \ --access_key "$AWS_ACCESS_KEY_ID" --secret_key "$AWS_SECRET_ACCESS_KEY" \ 'https://aps.workspace.url/api/v1/query/api/v1/query?query=up' diff --git a/snippets/aws/other commands.fish b/snippets/aws/other commands.fish index 5cc842a..3b82bc2 100644 --- a/snippets/aws/other commands.fish +++ b/snippets/aws/other commands.fish @@ -297,6 +297,18 @@ aws ec2 describe-network-interfaces --output 'text' \ --query 'NetworkInterfaces[*].Association.PublicIp' +### +# Grafana +# ------------------ +### + +aws grafana create-workspace-api-key --workspace-id 'g-abcdef0123' \ + --key-name 'test' --key-role 'VIEWER' --seconds-to-live '60' + +aws grafana delete-workspace-api-key --workspace-id 'g-abcdef0123' --key-name 'test' + + + ### # IAM # ------------------