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

if you create a CamelCase connection you cannot (easily) get rid of its schema #1074

Closed
judell opened this issue Nov 4, 2021 · 0 comments
Closed
Labels
bug Something isn't working
Milestone

Comments

@judell
Copy link
Contributor

judell commented Nov 4, 2021

Try this in aws.spc

connection "DunderMifflin" {
  plugin    = "aws"
  access_key  = "AKI ... RNM"
  secret_key  = "0a2 ... yEi"
}

Then remove it. Then restart steampipe and .inspect. It's still there.

Then do this:

sudo -u root psql -d steampipe -h localhost -p 9193

select * from information_schema.foreign_tables where foreign_table_schema ~ 'Dunder';

                      foreign_table_name
--------------------------------------------------------------
 aws_ssm_managed_instance_compliance
 aws_sns_topic_subscription
 aws_lambda_function_metric_invocations_daily
 aws_ssm_parameter
 aws_kinesisanalyticsv2_application
 aws_securityhub_product

Then try this:

drop schema DunderMifflin cascade
ERROR:  schema "dundermifflin" does not exist

drop schema dundermifflin cascade
ERROR:  schema "dundermifflin" does not exist

Then call @johnsmyth who cleverly suggests quoting the schema name, which works:

drop schema "DunderMifflin" cascade
@judell judell added the bug Something isn't working label Nov 4, 2021
@kaidaguerre kaidaguerre modified the milestones: 0.7.2, v0.10.0, v0.9.1 Nov 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants