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

Fix private-link endpoint registration #41

Merged
merged 1 commit into from
Oct 22, 2021

Conversation

emerkle826
Copy link
Contributor

@emerkle826 emerkle826 commented Oct 22, 2021

Fixes #32

  • Update terraform sdk
  • Remove datacenter ID validation
  • Fix call to setPrivateLinkEndpointData

- Update terraform sdk
- Remove datacenter ID validation
- Fix call to setPrivateLinkEndpointData
Copy link
Contributor

@jdonenine jdonenine left a comment

Choose a reason for hiding this comment

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

I haven't tested anything out but just a few initial questions about the IDs used in the tests.

@@ -23,7 +23,7 @@ func TestDataSourceAccessListEndpoints(t *testing.T){
func testAccPrivateAccessListDataSource() string {
return fmt.Sprintf(`
data "astra_access_list" "dev" {
database_id = "8d356587-73b3-430a-9c0e-d780332e2afb"
database_id = "aba3cf20-d579-4091-a36d-9c9f75096031"
Copy link
Contributor

Choose a reason for hiding this comment

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

What account/org are these new IDs from? Something that we can reliably share down the road, I guess perhaps until we make the changes we talked about where for tests we'd re-create the database each time so we don't have these hard coded IDs running around anyhow?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These UUIDs are just the ids for the Astra Database I created in my Astra account. Going forward, these need to change so that the database is created for the test run, and then cleaned up after.

Copy link
Contributor

Choose a reason for hiding this comment

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

👍

endpoint_id = "vpce-04cf066a99d812a8d"
database_id = "aba3cf20-d579-4091-a36d-9c9f75096031"
datacenter_id = "aba3cf20-d579-4091-a36d-9c9f75096031-1"
endpoint_id = "vpc-5fbb2e34"
Copy link
Contributor

Choose a reason for hiding this comment

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

Similar question here about the hard coded IDs, in this case is this the AWS ID or an ID related to Astra?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep. In fact, the endpoint_id is probably wrong here. I have a VPC id, not an endpoint ID. But again, it's a resource in AWS this time. I need to check and see if this endpoint needs to exist ahead of the test, or if it can be inferred during the test.

Copy link
Contributor

@phact phact left a comment

Choose a reason for hiding this comment

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

LGTM +1

@emerkle826 emerkle826 merged commit 95eabb7 into datastax:main Oct 22, 2021
@emerkle826 emerkle826 deleted the fix-private-link branch November 16, 2021 19:00
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.

Can't run terraform apply after creating astra_private_link_endpoint.astra_vpc_endpoint
3 participants