feat: support Data API for provisioned Redshift clusters#75
Open
alexjurkiewicz wants to merge 2 commits intodbsystel:masterfrom
Open
feat: support Data API for provisioned Redshift clusters#75alexjurkiewicz wants to merge 2 commits intodbsystel:masterfrom
alexjurkiewicz wants to merge 2 commits intodbsystel:masterfrom
Conversation
Author
|
On a personal note -- thank you for keeping the "Redshift user management with Terraform" dream alive 😊 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The
data_apiprovider block previously only supported Redshift Serverless workgroups. This PR extends it to also support provisioned clusters via acluster_identifier+usernamepair.The underlying
redshift-data-sql-driveralready supports both DSN formats — this change wires up the provider schema and config-building logic to expose that capability.Changes
cluster_identifierfield indata_apiblock (mutually exclusive withworkgroup_nameviaExactlyOneOf)usernamefield indata_apiblock (the DB user passed asDbUserinExecuteStatementInput; required at apply time whencluster_identifieris set)workgroup_namechanged fromRequiredtoOptional(schema enforces exactly one ofworkgroup_name/cluster_identifiermust be set)temporary_credentialsadded todata_api'sConflictsWithto make the conflict symmetricexamples/provider/provider_using_redshift_data_api_provisioned.tfExample usage
Testing
ResourceData-level schema→config wiringcreateanddestroyof aredshift_user)🤖 Generated with Claude Code