feat(aws)!: Define composite primary key for lambda_function_versions#12402
Merged
kodiakhq[bot] merged 3 commits intocloudquery:mainfrom Jul 19, 2023
Merged
Conversation
This PR has the following changes to source plugin(s) tables:
|
erezrokah
approved these changes
Jul 19, 2023
Member
erezrokah
left a comment
There was a problem hiding this comment.
Looks great @smokentar 🚀 I added another commit to fix the styling and make the CI happy
disq
approved these changes
Jul 19, 2023
Member
|
Thanks for the PR @smokentar, see the expected release version in #12406. |
kodiakhq bot
pushed a commit
that referenced
this pull request
Jul 20, 2023
🤖 I have created a release *beep* *boop* --- ## [22.0.0](plugins-source-aws-v21.1.0...plugins-source-aws-v22.0.0) (2023-07-20) ### ⚠ BREAKING CHANGES * **aws:** Define composite primary key for regions ([#12415](#12415)) * **aws:** Define primary key for s3_bucket_encryption_rules ([#12408](#12408)) * **aws:** Define primary key for dynamodb_table_continuous_backups ([#12409](#12409)) * **aws:** Define composite primary key for lambda_function_versions ([#12402](#12402)) ### This Release has the Following Changes to Tables - Table `aws_appconfig_deployment_strategies` was added - Table `aws_dynamodb_table_continuous_backups`: primary key constraint added to column `table_arn` (:warning: breaking) - Table `aws_dynamodb_table_continuous_backups`: primary key constraint removed from column `_cq_id` (:warning: breaking) - Table `aws_lambda_function_versions`: primary key constraint added to column `function_arn` (:warning: breaking) - Table `aws_lambda_function_versions`: primary key constraint added to column `version` (:warning: breaking) - Table `aws_lambda_function_versions`: primary key constraint removed from column `_cq_id` (:warning: breaking) - Table `aws_regions`: primary key constraint added to column `account_id` (:warning: breaking) - Table `aws_regions`: primary key constraint added to column `region` (:warning: breaking) - Table `aws_regions`: primary key constraint removed from column `_cq_id` (:warning: breaking) - Table `aws_s3_bucket_encryption_rules`: primary key constraint added to column `bucket_arn` (:warning: breaking) - Table `aws_s3_bucket_encryption_rules`: primary key constraint removed from column `_cq_id` (:warning: breaking) ### Features * **aws:** Define composite primary key for lambda_function_versions ([#12402](#12402)) ([d1add18](d1add18)) * **aws:** Define composite primary key for regions ([#12415](#12415)) ([681ea97](681ea97)) * **aws:** Define primary key for dynamodb_table_continuous_backups ([#12409](#12409)) ([7d4a657](7d4a657)) * **aws:** Define primary key for s3_bucket_encryption_rules ([#12408](#12408)) ([a026b98](a026b98)) ### Bug Fixes * **sync:** Pass `DeterministicCQID` option to scheduler ([#12424](#12424)) ([eaac2e6](eaac2e6)) * Use correct name for `DeploymentStrategies` table ([#12428](#12428)) ([dda4205](dda4205)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
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
This PR is aimed to address #12391 by creating a composite primary key on
aws_lambda_function_versionstable comprisingfunction_arnandversion.Since
function_arnwill always be unique,account_idorregionare not required to be part of the primary key.Summary
This is my first PR against the codebase, extra pair of eyes are highly recommended!