Giter Site home page Giter Site logo

Comments (12)

e-gineer avatar e-gineer commented on July 30, 2024

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.

aditivarade avatar aditivarade commented on July 30, 2024

Hi @e-gineer,

I tried the following steps for setting up the credentials

  1. Exported AWS environment variables on my VM
  2. Created the aws credentials file
  3. In the aws.spc file I mentioned the profile specified in the aws credentials file
    connection "aws_account_a" {
    plugin = "aws"
    profile = "account_extensure"
    }
  4. 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}
  5. 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.

e-gineer avatar e-gineer commented on July 30, 2024

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.

aditivarade avatar aditivarade commented on July 30, 2024

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.

aditivarade avatar aditivarade commented on July 30, 2024

Hi @e-gineer,

Any update?

from powerpipe.

pskrbasu avatar pskrbasu commented on July 30, 2024

Hi @aditivarade,

I'm currently unable to execute queries

What is the error you're seeing when executing queries?

from powerpipe.

aditivarade avatar aditivarade commented on July 30, 2024

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.

kaidaguerre avatar kaidaguerre commented on July 30, 2024

@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.

aditivarade avatar aditivarade commented on July 30, 2024

@kaidaguerre tried listing the processes and killing them, but no luck.

from powerpipe.

kaidaguerre avatar kaidaguerre commented on July 30, 2024

So to be clear - even a simple steampipe query is failing:
steampipe query "select * from aws_acount" ?

from powerpipe.

aditivarade avatar aditivarade commented on July 30, 2024

@kaidaguerre - The issue is resolved. Appreciate the responses.

from powerpipe.

IgnatG avatar IgnatG commented on July 30, 2024

@aditivarade can I check how this was resolved? I'm having similar issues

from powerpipe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.