-
Notifications
You must be signed in to change notification settings - Fork 29
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
Feature: Redshift Spectrum / External Schema Data Catalog resource #32
Comments
Here is a an example config which requires a redshift cluster to already exist, with an associated IAM role called
As part of this investigation, I have found that See for more info: https://docs.aws.amazon.com/redshift/latest/dg/r_DROP_SCHEMA.html |
That looks good to me @bitzstein , thanks for doing that |
Hi, is there any progress in integrating this? I'm keen to see this feature! |
Hi there, I haven't looked at it and to be honest I haven't been actively working on this repository recently. But if you want to do a PR, I will happily review and merge it @macleodmac |
I need support for the Redshift Spectrum external schema, specifically backed by data in S3 and a database in the AWS Glue Data Catalog.
I have written the resource code in the existing stub
redshift/resource_redshift_external_schema_data_catalog.go
, for the simplest use case:database_name
references database in AWS Glue Data Catalogiam_role
ARN with appropriate S3 and AWS Glue Data Catalog accessI based the code off the existing Redshift Schema resource, and took inspiration from the Postgres provider for the use of errwrap.
You can check it out here: https://github.com/bitzstein/terraform-provider-redshift/tree/feature/external-schema-data-catalog
It is working for me for configs built from scratch, as well as via
terraform import
usingesoid
inSVV_EXTERNAL_SCHEMAS
table.I wanted to see if there's interest in using my implementation of this resource, and any changes that would be needed to get it merged.
NOTE: I had trouble building the provider with the relative path
./redshift
inmain.go
so alsoneeded to change that, for
go build
to work. See bitzstein@d88770cThe text was updated successfully, but these errors were encountered: