Comments (12)
The error in the dashboard indicates that Steampipe cannot find / resolve your AWS credentials. Are you sure it's picking up the steampipe configuration properly?
from powerpipe.
Hi @e-gineer,
I tried the following steps for setting up the credentials
- Exported AWS environment variables on my VM
- Created the aws credentials file
- In the aws.spc file I mentioned the profile specified in the aws credentials file
connection "aws_account_a" {
plugin = "aws"
profile = "account_extensure"
} - And in the aws credentials file I have mentioned the following details
[account_extensure]
aws_access_key_id = ${aws_access_key_id}
aws_secret_access_key = ${aws_secret_access_key}
aws_session_token = ${aws_session_token} - Created a user called steampipe and ran the following commands using the created steampipe user
steampipe service start
powerpipe benchmark run aws_compliance.benchmark.all_controls
Please let me know if I am missing anything else.
from powerpipe.
How is docker involved in your setup? You mention that at the start, but not in the latest info.
Are you able to run basic queries against the steampipe instance you have created? (i.e. before using powerpipe with it)
from powerpipe.
Earlier, I utilized Docker to explore Steampipe, but currently I have install both Steampipe and Powerpipe directly on my local virtual machine (VM).
Answering to you question, I'm currently unable to execute queries. To troubleshoot, I verified the functionality of my AWS credentials by employing the command "aws sts get-caller-identity" and configured them for Steampipe as per the steps I previously outlined. However, I am not sure why Steampipe fails to recognize these credentials.
Do let me know if I have missed anything as per the steps I had listed earlier.
from powerpipe.
Hi @e-gineer,
Any update?
from powerpipe.
Hi @aditivarade,
I'm currently unable to execute queries
What is the error you're seeing when executing queries?
from powerpipe.
Hi @pskrbasu,
I tried to execute a simple query("select name from aws_iam_role"). Below is the error I get inspite of configuring the credentials correctly.
Error: aws_account_a: operation error IAM: ListRoles, exceeded maximum number of attempts, 9, failed to sign request: failed to retrieve credentials: failed to refresh cached credentials, no EC2 IMDS role found, operation error ec2imds: GetMetadata, exceeded maximum number of attempts, 3, request send failed, Get "http://169.254.169.254/latest/meta-data/iam/security-credentials/": net/http: timeout awaiting response headers (SQLSTATE HV000)
from powerpipe.
@aditivarade it is worth ensuring there are no stray processes left over from previous failed runs. You can list staempipe processes with ps aux | grep steampipe
, and kil any stray processes with pkill -f steampipe
Please could you give that a go then retry.
from powerpipe.
@kaidaguerre tried listing the processes and killing them, but no luck.
from powerpipe.
So to be clear - even a simple steampipe query is failing:
steampipe query "select * from aws_acount"
?
from powerpipe.
@kaidaguerre - The issue is resolved. Appreciate the responses.
from powerpipe.
@aditivarade can I check how this was resolved? I'm having similar issues
from powerpipe.
Related Issues (20)
- Incorrect Help output for `--output` in `powerpipe benchmark run`
- `duration` field in `metadata` should be `duration_ms` like steampipe
- Add support for `pretty/plain` output format for benchmark/control/query outputs
- Review all `--output` formats
- Update JSON output to be consistent across pipelings - also handle duplicate column names
- href for chart labels
- Update mod install to only install or update mods which are command targets (and their dependencies). Default pull mode for install is latest if there is a target, and minimal if no target is given.
- user pipes-sdk-go instead of steampipe-cloud-sdk-go
- Support new JSON format in dashboard UI
- v0.4.0
- Update snapshot and dashboard event schema versions to 20240607.
- v0.4.0 HOT 1
- Support new pipe-fittings `UniqueNameGenerator.GetUniqueName` signature
- Add ability to check if target name is mod name in benchmark and control runs
- Powerpipe crashes when running inside a mod when dependant mod was installed using steampipe
- Donut chart not rendering correctly on boolean value HOT 1
- Run a control only once if it is included in multiple benchmarks
- `--arg` CLI argument not working for query and control runs
- v0.4.1 HOT 1
- text widget nearly invisible in dark mode
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from powerpipe.