Skip to content

Conversation

@bbernays
Copy link
Collaborator

@bbernays bbernays commented Jan 30, 2023

BEGIN_COMMIT_OVERRIDE
fix(aws)!: PK for aws_apigateway_domain_name_base_path_mappings
END_COMMIT_OVERRIDE

@bbernays bbernays linked an issue Jan 30, 2023 that may be closed by this pull request
@cq-bot cq-bot added the aws label Jan 30, 2023
@github-actions
Copy link

github-actions bot commented Jan 30, 2023

This PR has the following changes to source plugin(s) tables:

  • Table aws_apigateway_domain_name_base_path_mappings: primary key constraint added to column account_id
  • Table aws_apigateway_domain_name_base_path_mappings: primary key constraint added to column arn
  • Table aws_apigateway_domain_name_base_path_mappings: primary key constraint removed from column _cq_id

@hermanschaaf
Copy link
Member

Looking at resolveApigatewayDomainNameBasePathMappingArn, it seems like AccountID is empty, even though we multiplex on account ID. Should we maybe keep account ID and region in the PK as well to be safe? Or do you think, because it's a domain name, it should be unique across accounts? 🤔

@bbernays
Copy link
Collaborator Author

Looking at resolveApigatewayDomainNameBasePathMappingArn, it seems like AccountID is empty, even though we multiplex on account ID. Should we maybe keep account ID and region in the PK as well to be safe? Or do you think, because it's a domain name, it should be unique across accounts? 🤔

Literally just fixed this haha

@bbernays bbernays added the automerge Automatically merge once required checks pass label Jan 30, 2023
@kodiakhq kodiakhq bot merged commit 8a945be into cloudquery:main Jan 30, 2023
@bbernays bbernays changed the title fix(aws): PK for aws_apigateway_domain_name_base_path_mappings fix(aws)!: PK for aws_apigateway_domain_name_base_path_mappings Jan 31, 2023
@bbernays bbernays deleted the basepathmappings-pk branch February 1, 2023 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge Automatically merge once required checks pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PK for aws_apigateway_domain_name_base_path_mappings

3 participants