Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the output/stdout when running terracognita also adding VERBOSE mode #17

Closed
xescugc opened this issue Jun 19, 2019 · 0 comments · Fixed by #38
Closed

Change the output/stdout when running terracognita also adding VERBOSE mode #17

xescugc opened this issue Jun 19, 2019 · 0 comments · Fixed by #38
Assignees
Labels
Type: Enhancement Provide a new feature or improve an existing one

Comments

@xescugc
Copy link
Member

xescugc commented Jun 19, 2019

Right now the output it's basically the logs from terrafrom, we should show those when we add the --verbose flag, which does not exists ATM.

The desired output would be, the one without the --verbose, this one:

Jun 19 12:17:01 INFO: Importing security_group [35/35] Done!
Jun 19 12:17:01 INFO: Importing aws_instance [10/35] ...

We still have some things TBD:

  • Do we want the TF logs on --verbose? Or we want something custom?
  • The TF logs are important? If so where/when do we want them?

EDIT:

We'll have 2 flags -v and -d:

  • Without any flag we'll have something like this output
Jun 19 12:17:01 INFO: Importing security_group [35/35] Done!
Jun 19 12:17:01 INFO: Importing aws_instance [10/35] ...
  • With -v we'll have the logs we had before with more custom logs (Debug) like this
Jun 19 12:17:01 DEBUG: Starting terracognita for region R - resources: X, Y, Z
Jun 19 12:17:01 INFO: Importing security_group [35/35] Done!
...
Jun 19 12:17:01 INFO: Importing aws_instance [9/35] ...
Jun 19 12:17:01 DEBUG: Importing aws_instance i-123lasdjk2
Jun 19 12:17:01 DEBUG: Writing HCL aws_instance i-123lasdjk2
Jun 19 12:17:01 DEBUG: Writing State aws_instance i-123lasdjk2
Jun 19 12:17:01 DEBUG: Finished importing aws_instance i-123lasdjk2
Jun 19 12:17:01 INFO: Importing aws_instance [10/35] ...
  • With -d we'll have the logs we had before with the TF ones:
2019/06/20 12:13:06 [INFO] Building AWS auth structure
2019/06/20 12:13:06 [INFO] Setting AWS metadata API timeout to 100ms
2019/06/20 12:13:07 [INFO] Ignoring AWS metadata API endpoint at default location as it doesn't return any instance-id
2019/06/20 12:13:07 [INFO] AWS Auth provider used: "StaticProvider"
2019/06/20 12:13:07 [DEBUG] Trying to get account information via sts:GetCallerIdentity
2019/06/20 12:13:07 [DEBUG] Trying to get account information via sts:GetCallerIdentity
Jun 19 12:17:01 DEBUG: Starting terracognita for region R - resources: X, Y, Z
Jun 19 12:17:01 INFO: Importing security_group [35/35] Done!
...
Jun 19 12:17:01 INFO: Importing aws_instance [9/35] ...
Jun 19 12:17:01 DEBUG: Importing aws_instance i-123lasdjk2
Jun 19 12:17:01 DEBUG: Writing HCL aws_instance i-123lasdjk2
Jun 19 12:17:01 DEBUG: Writing State aws_instance i-123lasdjk2
Jun 19 12:17:01 DEBUG: Finished importing aws_instance i-123lasdjk2
Jun 19 12:17:01 INFO: Importing aws_instance [10/35] ...
@xlr-8 xlr-8 changed the title Change the otput/stdout when running terracognita Change the output/stdout when running terracognita Jun 26, 2019
@xescugc xescugc changed the title Change the output/stdout when running terracognita Change the output/stdout when running terracognita also adding VERBOSE mode Jul 12, 2019
@xescugc xescugc added the Type: Enhancement Provide a new feature or improve an existing one label Jul 12, 2019
@xescugc xescugc self-assigned this Jul 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Provide a new feature or improve an existing one
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant