Terraform aws_athena_database资源中的Encryption_configuration是什么

发布于 2025-02-03 08:44:52 字数 394 浏览 3 评论 0原文

我不明白encryption_configuration agrument在做什么,为什么必须启用它?因为当我应用下面的代码时,我找不到achena数据库的加密状态。

resource "aws_athena_database" "example" {
  name   = "database_name"
  bucket = aws_s3_bucket.mybucket.bucket
  encryption_configuration {
     encryption_option = "SSE_KMS"
     kms_key       = aws_kms_key.mykey.arn
  }
}

我有一个无启用加密的Athena数据库,因此,如果我启用它,我是否会在此数据库中丢失任何数据?

I don't understand what encryption_configuration agrument doing, why I have to enable it? Because when I applied the code below, I cannot find the encryption status of athena database.

resource "aws_athena_database" "example" {
  name   = "database_name"
  bucket = aws_s3_bucket.mybucket.bucket
  encryption_configuration {
     encryption_option = "SSE_KMS"
     kms_key       = aws_kms_key.mykey.arn
  }
}

I have a athena database without enable encryption, so if I enable it, do I lost any data in this database?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

初见 2025-02-10 08:44:52

我是否丢失了此数据库中的任何数据

NO中的任何数据,因为Athena不会存储您的实际数据。它仅存储有关您的数据的信息。来自 docs a>:

数据库是表的逻辑分组,仅保留数据集的元数据和架构信息。

雅典娜数据库的加密仅用于读取加密的S3和存储查询结果:

do I lost any data in this database

No, because Athena does not store your actual data. It only stores information about your data. From docs:

Databases are a logical grouping of tables, and also hold only metadata and schema information for a dataset.

The encryption of databases in Athena is only for reading encrypted S3 and storing query results as explained in:

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文