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

[WIP] AWS Connection #417

Closed
wants to merge 2 commits into from
Closed

[WIP] AWS Connection #417

wants to merge 2 commits into from

Conversation

dehume
Copy link
Contributor

@dehume dehume commented Dec 18, 2023

Fixes #395

Add new resource materialize_connection_aws.

To Do:

  • Add builder
  • Add resource
  • Add documentation
  • Add integration tests
  • Add acceptance tests

@dehume dehume added the icebox Tracked issues that cannot be worked on currently label Dec 18, 2023
@@ -71,6 +71,19 @@ services:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-c2VjcmV0Cg==}
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_HOST: ${POSTGRES_HOST:-postgres}

localstack:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Including localstack with iam service for integration testing. Will be able to calibrate more when the DDL is enabled in the image.

#/bin/bash
set -x

awslocal iam create-user --user-name terraform
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any aws CLI commands needed for localstack setup


// Note: Cannot set nested attributes with this SDK
// https://github.com/hashicorp/terraform-plugin-sdk/issues/459
// if err := d.Set("access_key_id.0.text", s.AccessKeyId.String); err != nil {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The system catalog has different columns if the text or secret value is used for creation. Unfortunately we cannot save that information separately to different nested values within these attributes.

}

var connectionAwsQuery = NewBaseQuery(`
SELECT
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haven't been able to fully vet this query since the system table is not in the image yet. This is based on the privatelink query

@bobbyiliev bobbyiliev mentioned this pull request Mar 8, 2024
@bobbyiliev
Copy link
Contributor

bobbyiliev commented Mar 8, 2024

Closing this PR in favor of #492

@bobbyiliev bobbyiliev closed this Mar 8, 2024
@bobbyiliev bobbyiliev deleted the AWS-Connection branch July 9, 2024 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
icebox Tracked issues that cannot be worked on currently
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AWS Connection
2 participants