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

Handle spaces in AWS Acccount names, themselves. Set a default region. #25

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

vitropy
Copy link

@vitropy vitropy commented Jul 3, 2024

Also document the script in the README.

vitropy added 2 commits July 3, 2024 10:59
PostgreSQL prefers lowercased schema names, but Steampipe doesn't really
care. This means, assuming a Steampipe schema like `aws_My_Account`
exists, performing a query like:

    select instance_id from aws_My_Account.aws_ec2_instance

will actually search a schema named `aws_my_account`, which doesn't
exist if the Steampipe connection name written into the `aws.spc` file
includes uppercase characters.

A workaround is to double-quote the schema name:

    select instance_id from "aws_My_Account".aws_ec2_instance

but this is hard to remember and an easy mistake to make. Instead, it
might just be worthwhile to generate Steampipe connection names that are
lowercased from the start.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant