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

feat: add multi_region and multi_region_configuration columns to aws_kms_key table #2338

Merged
merged 1 commit into from
Nov 14, 2024

Conversation

pdecat
Copy link
Contributor

@pdecat pdecat commented Nov 8, 2024

Integration test logs

Logs
Add passing integration test logs here

Example query results

Results
> SELECT
  substring(aliases[0] ->> 'AliasName' FROM 7) AS "alias",
  arn,
  creation_date,
  multi_region,
  multi_region_configuration ->> 'MultiRegionKeyType' AS key_type,
  multi_region_configuration -> 'PrimaryKey' -> 'Arn' AS primary_key_arn
FROM
  aws_kms_key
WHERE
  aliases[0] ->> 'AliasName' NOT LIKE 'alias/aws/%'
ORDER BY
  alias, arn
+-----------------------------------------------------------+-----------------------------------------------------------------------------+---------------------------+--------------+----------+-------------------------------------------------------------------------------+
| alias                                                     | arn                                                                         | creation_date             | multi_region | key_type | primary_key_arn                                                               |
+-----------------------------------------------------------+-----------------------------------------------------------------------------+---------------------------+--------------+----------+-------------------------------------------------------------------------------+
| QuickSetupConfigRecordingKey                              | arn:aws:kms:eu-west-1:************:key/a62008d8-d265-****-****-4c1ce0952739 | 2022-07-25T17:28:53+02:00 | false        | <null>   | <null>                                                                        |
| ********-**-preprod-********-**-preprod-euw3-kms-alias    | arn:aws:kms:eu-west-3:************:key/bd73d0fa-1cb6-****-****-1a782f722306 | 2024-08-08T13:57:30+02:00 | false        | <null>   | <null>                                                                        |
| ********-**-preprod-********-**-preprod-euw3-kms-cw-alias | arn:aws:kms:eu-west-3:************:key/302454b5-2621-****-****-9c2cf02673af | 2024-08-08T13:57:30+02:00 | false        | <null>   | <null>                                                                        |
| test-pdecat                                               | arn:aws:kms:eu-west-1:************:key/mrk-5d0e3b73350540d884ed9fbcb26c1ce0 | 2024-11-08T17:39:12+01:00 | true         | REPLICA  | "arn:aws:kms:eu-west-3:************:key/mrk-5d0e3b73350540d884ed9fbcb26c1ce0" |
| test-pdecat                                               | arn:aws:kms:eu-west-3:************:key/mrk-5d0e3b73350540d884ed9fbcb26c1ce0 | 2024-11-08T17:18:55+01:00 | true         | PRIMARY  | "arn:aws:kms:eu-west-3:************:key/mrk-5d0e3b73350540d884ed9fbcb26c1ce0" |
+-----------------------------------------------------------+-----------------------------------------------------------------------------+---------------------------+--------------+----------+-------------------------------------------------------------------------------+

@pdecat pdecat changed the title feat: add multi_region and multi_region_configuration columns to aws_kms_key table feat: add multi_region and multi_region_configuration columns to aws_kms_key table Nov 8, 2024
@misraved misraved merged commit 31aec6b into turbot:main Nov 14, 2024
1 check passed
@pdecat pdecat deleted the feat/kms_key_multi_region branch November 14, 2024 07:57
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.

2 participants