Code Monkey home page Code Monkey logo

Comments (10)

sjourdan avatar sjourdan commented on July 23, 2024

Hi @jaydeland, thanks for trying driftctl. I'm sorry for this bug.

Can you try to execute the same command that caused this issue, with the --error-reporting flag, so we can debug more easily?

docker run -t --rm -v ~/.aws:/home/.aws:ro -v $(pwd):/tf:ro -v ~/.driftctl:/home/.driftctl -e AWS_PROFILE=$AWS_PROFILE -e AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY -e AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID -e AWS_SESSION_TOKEN=$AWS_SESSION_TOKEN cloudskiff/driftctl --error-reporting scan --from tfstate:///tf/users/.terraform/terraform.tfstate

Also, you can help by launching driftctl docker image with the environment variable -e LOG_LEVEL=debug and post the result.

Thanks for your help!

from driftctl.

jaydeland avatar jaydeland commented on July 23, 2024

Here you go:
unable to run driftctl
Sending error report ...WARN[0002] Error reading iam user ***************[aws_iam_user]: rpc error: code = Canceled desc = context canceled
WARN[0002] Error reading iam user ******************[aws_iam_user]: rpc error: code = Canceled desc = context canceled
WARN[0002] Error reading iam user circleci-prbuilds[aws_iam_user]: rpc error: code = Canceled desc = context canceled
WARN[0002] Error reading iam user ******************************[aws_iam_user]: rpc error: code = Canceled desc = context canceled
WARN[0002] Error reading iam user cert-manager[aws_iam_user]: rpc error: code = Canceled desc = context canceled
WARN[0002] Error reading iam user gitlab-GitHubManagement[aws_iam_user]: rpc error: code = Canceled desc = context canceled
WARN[0002] Error reading iam role AWS-SystemsManager-AutomationAdministrationRole[aws_iam_role]: rpc error: code = Canceled desc = context canceled
WARN[0002] Error reading iam role AWS-Health-Mattermost-role-wrmnocwt[aws_iam_role]: rpc error: code = Canceled desc = context canceled
WARN[0002] Error reading iam role AWSServiceRoleForAmazonElasticsearchService[aws_iam_role]: rpc error: code = Canceled desc = context canceled
WARN[0002] Error reading iam role AWSServiceRoleForBackup[aws_iam_role]: rpc error: code = Canceled desc = context canceled
WARN[0002] Error reading iam role AWS-SystemsManager-AutomationExecutionRole[aws_iam_role]: rpc error: code = Canceled desc = context canceled
done, thank you ❤️

from driftctl.

sjourdan avatar sjourdan commented on July 23, 2024

@jaydeland, we could replicate the issue, thanks to your help!
something is wrong on our side, related to S3 buckets regions.
We'll keep you posted here.
This is very possibly linked to #73 too.

from driftctl.

jaydeland avatar jaydeland commented on July 23, 2024

Awesome - glad to help!

from driftctl.

sjourdan avatar sjourdan commented on July 23, 2024

Hey @jaydeland, could you try again with the new 0.2.3 release? it may very well fix your issue if you had S3 buckets in us-east-1.

from driftctl.

jaydeland avatar jaydeland commented on July 23, 2024

Yup - the new build worked:
Found 924 resource(s)

  • 0% coverage
  • 0 covered by IaC
  • 924 not covered by IaC
  • 0 deleted on cloud provider
  • 0/0 drifted from IaC
    Sending error report ... done, thank you ❤️

from driftctl.

jaydeland avatar jaydeland commented on July 23, 2024

The not covered is due to me running this on a terraform project that is using the github provider and not AWS

from driftctl.

sjourdan avatar sjourdan commented on July 23, 2024

that's great! Thanks for your help and allowing reporting. It helped a lot.

Is supporting GitHub resources a major requirement for you? It's on our roadmap but we're still prioritizing.

from driftctl.

jaydeland avatar jaydeland commented on July 23, 2024

that's great! Thanks for your help and allowing reporting. It helped a lot.

Is supporting GitHub resources a major requirement for you? It's on our roadmap but we're still prioritizing.

We are using it to Manage our Organization within GitHub and I am working on adding support for GitLab as well.

from driftctl.

eliecharra avatar eliecharra commented on July 23, 2024

Thanks for you feedback @jaydeland, glad to see you finally achieved a successful run of driftctl. I'm closing this one as the issue you initially reported seems resolved.

from driftctl.

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.