-
Notifications
You must be signed in to change notification settings - Fork 178
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
doc: Add example & documentation for mongodbatlas_encryption_at_rest_private_endpoint
to specify AWS usage
#2999
base: CLOUDP-262752-ear-aws-kms-dev
Are you sure you want to change the base?
Conversation
@@ -5,27 +5,34 @@ | |||
~> **IMPORTANT** The Encryption at Rest using Azure Key Vault over Private Endpoints feature is available by request. To request this functionality for your Atlas deployments, contact your Account Manager. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: Awaiting response for correct messaging here from upstream
@@ -5,13 +5,13 @@ | |||
~> **IMPORTANT** The Encryption at Rest using Azure Key Vault over Private Endpoints feature is available by request. To request this functionality for your Atlas deployments, contact your Account Manager. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: Awaiting response for correct messaging here from upstream
|
||
**1\. Ensure that Encryption At Rest AWS KMS Private Endpoint feature is available for your project.** | ||
|
||
The Encryption at Rest using AWS KMS over Private Endpoints feature is available by request. To request this functionality for your Atlas deployments, contact your Account Manager. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: Awaiting response for correct messaging here from upstream
APIx bot: a message has been sent to Docs Slack channel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -0,0 +1,8 @@ | |||
data "mongodbatlas_encryption_at_rest_private_endpoints" "plural" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are the data-sources in separate files?
This project will execute the following changes to acheive successful encryption at rest over AWS PrivateLink for customer managed keys: | ||
|
||
- Configure encryption at rest in an existing project using a custom AWS KMS Key. For successful private networking configuration, the `requires_private_networking` attribute in `mongodbatlas_encryption_at_rest.aws_kms_config` is set to `true`. | ||
- Create a private endpoint for the existing project under a certain AWS region using `mongodbatlas_encryption_at_rest_private_endpoint`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool that there is no requirement of creating any AWS resources other than IAM Role
@@ -22,7 +22,7 @@ | |||
### Configuring encryption at rest using customer key management in Azure | |||
{{ tffile (printf "examples/%s/azure/main.tf" .Name )}} | |||
|
|||
-> **NOTE:** It is possible to configure Atlas Encryption at Rest to communicate with Azure Key Vault using Azure Private Link, ensuring that all traffic between Atlas and Key Vault takes place over Azure’s private network interfaces. Please review `mongodbatlas_encryption_at_rest_private_endpoint` resource for details. | |||
-> **NOTE:** It is possible to configure Atlas Encryption at Rest to communicate with Customer Managed Keys (Azure Key Vault or AWS KMS) over private network interfaces (Azure Private Link or AWS PrivateLinK). This requires enabling `azure_key_vault_config.require_private_networking` or `aws_kms_config.require_private_networking` attribute, together with the configuration of `mongodbatlas_encryption_at_rest_private_endpoint` resource. Please review `mongodbatlas_encryption_at_rest_private_endpoint` resource for details. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: PrivateLinK
|
||
{{ tffile (printf "examples/%s/azure/singular-data-source.tf" .Name )}} | ||
|
||
### Encryption At Rest AWS KMS Private Endpoint | ||
{{ tffile (printf "examples/%s/aws/singular-data-source.tf" .Name )}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aha. I see the usage of separate files for data sources now 😅.
Would be cool if we had a custom directive tffile_resource
so we don't need separate files in the examples
@@ -47,9 +47,9 @@ resource "mongodbatlas_encryption_at_rest" "default" { | |||
{{ tffile (printf "examples/%s/azure/main.tf" .Name )}} | |||
|
|||
#### Manage Customer Keys with Azure Key Vault Over Private Endpoints | |||
It is possible to configure Atlas Encryption at Rest to communicate with Azure Key Vault using Azure Private Link, ensuring that all traffic between Atlas and Key Vault takes place over Azure’s private network interfaces. This requires enabling `azure_key_vault_config.require_private_networking` attribute, together with the configuration of `mongodbatlas_encryption_at_rest_private_endpoint` resource. | |||
It is possible to configure Atlas Encryption at Rest to communicate with Customer Managed Keys (Azure Key Vault or AWS KMS) over private network interfaces (Azure Private Link or AWS PrivateLinK). This requires enabling `azure_key_vault_config.require_private_networking` or `aws_kms_config.require_private_networking` attribute, together with the configuration of `mongodbatlas_encryption_at_rest_private_endpoint` resource. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same typo: uppercase K
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
Add example & documentation for
mongodbatlas_encryption_at_rest_private_endpoint
to specify AWS usageLink to any related issue(s): CLOUDP-296238
Type of change:
Required Checklist:
Further comments