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

Add WorkspaceProfile and parse from config #2510

Closed
kaidaguerre opened this issue Oct 12, 2022 · 0 comments · Fixed by #2518
Closed

Add WorkspaceProfile and parse from config #2510

kaidaguerre opened this issue Oct 12, 2022 · 0 comments · Fixed by #2518

Comments

@kaidaguerre
Copy link
Contributor

kaidaguerre commented Oct 12, 2022

workspace "aws_insights" {
  base               = workspace.local
  mod_location       = "~/src/steampipe/mods/steampipe-mod-aws-insights"
  workspace_database = "local" # this is the default
  snapshot_location  = "~/src/steampipe/snaps/steampipe-mod-aws-insights
}

You can even specify any client option blocks in a workspace:

  • connection options
  • terminal options
  • general options
workspace "local_dev" {
  cloud_token         = "spt_012faketoken34567890_012faketoken3456789099999
  workspace_database = "local" 
  snapshot_location = "george/personal"

  options "connection" {
    cache     = false
    # cache_ttl = 300  # expiration (TTL) in seconds
  }

  options "terminal" {
    header             = true                # true, false
    multi              = false               # true, false
    output             = "table"             # json, csv, table, line
    separator          = ","                 # any single character
    timing             = true               # true, false
    search_path_prefix = "aws2,gcp2"         # comma-separated string; a search_path_prefix to prepend to the search_path
    watch              =  true               # true, false
  }
}

You can use base= to inherit settings form another profile:

workspace "personal" {
  base               = workspace.default
  workspace_database = "george/myworkspace"
  snapshot_location  = "george/myworkspace"
}
@kaidaguerre kaidaguerre linked a pull request Oct 12, 2022 that will close this issue
kaidaguerre added a commit that referenced this issue Oct 19, 2022
…ng --workspace arg. Closes #2510

Add support for implicit workspace. Closes #2514
If snapshot-location is a local file path, copy snapshot instead of uploading. Closes #2550
Do not show snapshot upload status if --progress=false. Closes #2517
Replace --workspace with --snapshot-location. Closes #2512
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant