AWS Security ChangesHomeSearch

AWS cli medium security documentation change

Service: cli · 2026-03-13 · Security-related medium

File: cli/latest/reference/datasync/create-location-fsx-windows.md

Summary

Added new parameters (--cmk-secret-config and --custom-secret-config) for secret management with KMS and Secrets Manager integration. Changed password parameter from required to optional.

Security assessment

The changes introduce support for secure credential management using customer-managed KMS keys and Secrets Manager secrets instead of plaintext passwords. This improves security by enabling encryption of credentials and reducing exposure of sensitive data in CLI commands.

Diff

diff --git a/cli/latest/reference/datasync/create-location-fsx-windows.md b/cli/latest/reference/datasync/create-location-fsx-windows.md
index b2c47a780..6c85d320d 100644
--- a//cli/latest/reference/datasync/create-location-fsx-windows.md
+++ b//cli/latest/reference/datasync/create-location-fsx-windows.md
@@ -15 +15 @@
-  * [AWS CLI 2.34.5 Command Reference](../../index.html) »
+  * [AWS CLI 2.34.8 Command Reference](../../index.html) »
@@ -75 +75,3 @@ See also: [AWS API Documentation](https://docs.aws.amazon.com/goto/WebAPI/datasy
-    --password <value>
+    [--password <value>]
+    [--cmk-secret-config <value>]
+    [--custom-secret-config <value>]
@@ -243 +245 @@ JSON Syntax:
-`--password` (string) [required]
+`--password` (string)
@@ -253,0 +256,94 @@ JSON Syntax:
+`--cmk-secret-config` (structure)
+
+> Specifies configuration information for a DataSync-managed secret, which includes the password that DataSync uses to access a specific FSx Windows storage location, with a customer-managed KMS key.
+> 
+> When you include this parameter as part of a `CreateLocationFsxWindows` request, you provide only the KMS key ARN. DataSync uses this KMS key together with the `Password` you specify for to create a DataSync-managed secret to store the location access credentials.
+> 
+> Make sure that DataSync has permission to access the KMS key that you specify. For more information, see [Using a service-managed secret encrypted with a custom KMS key](https://docs.aws.amazon.com/datasync/latest/userguide/location-credentials.html#service-secret-custom-key) .
+> 
+> ### Note
+> 
+> You can use either `CmkSecretConfig` (with `Password` ) or `CustomSecretConfig` (without `Password` ) to provide credentials for a `CreateLocationFsxWindows` request. Do not provide both parameters for the same request.
+> 
+> SecretArn -> (string)
+>
+>> Specifies the ARN for the DataSync-managed Secrets Manager secret that that is used to access a specific storage location. This property is generated by DataSync and is read-only. DataSync encrypts this secret with the KMS key that you specify for `KmsKeyArn` .
+>> 
+>> Constraints:
+>> 
+>>   * max: `2048`
+>>   * pattern: `^(arn:(aws|aws-cn|aws-us-gov|aws-eusc|aws-iso|aws-iso-b):secretsmanager:[a-z\-0-9]+:[0-9]{12}:secret:.*|)$`
+>> 
+
+> 
+> KmsKeyArn -> (string)
+>
+>> Specifies the ARN for the customer-managed KMS key that DataSync uses to encrypt the DataSync-managed secret stored for `SecretArn` . DataSync provides this key to Secrets Manager.
+>> 
+>> Constraints:
+>> 
+>>   * max: `2048`
+>>   * pattern: `^(arn:(aws|aws-cn|aws-us-gov|aws-eusc|aws-iso|aws-iso-b):kms:[a-z\-0-9]+:[0-9]{12}:key/.*|)$`
+>> 
+
+
+Shorthand Syntax:
+    
+    
+    SecretArn=string,KmsKeyArn=string
+    
+
+JSON Syntax:
+    
+    
+    {
+      "SecretArn": "string",
+      "KmsKeyArn": "string"
+    }
+    
+
+`--custom-secret-config` (structure)
+
+> Specifies configuration information for a customer-managed Secrets Manager secret where the password for an FSx for Windows File Server storage location is stored in plain text, in Secrets Manager. This configuration includes the secret ARN, and the ARN for an IAM role that provides access to the secret. For more information, see [Using a secret that you manage](https://docs.aws.amazon.com/datasync/latest/userguide/location-credentials.html#custom-secret-custom-key) .
+> 
+> ### Note
+> 
+> You can use either `CmkSecretConfig` (with `Password` ) or `CustomSecretConfig` (without `Password` ) to provide credentials for a `CreateLocationFsxWindows` request. Do not provide both parameters for the same request.
+> 
+> SecretArn -> (string)
+>
+>> Specifies the ARN for an Secrets Manager secret.
+>> 
+>> Constraints:
+>> 
+>>   * max: `2048`
+>>   * pattern: `^(arn:(aws|aws-cn|aws-us-gov|aws-eusc|aws-iso|aws-iso-b):secretsmanager:[a-z\-0-9]+:[0-9]{12}:secret:.*|)$`
+>> 
+
+> 
+> SecretAccessRoleArn -> (string)
+>
+>> Specifies the ARN for the Identity and Access Management role that DataSync uses to access the secret specified for `SecretArn` .
+>> 
+>> Constraints:
+>> 
+>>   * max: `2048`
+>>   * pattern: `^(arn:(aws|aws-cn|aws-us-gov|aws-eusc|aws-iso|aws-iso-b):iam::[0-9]{12}:role/[a-zA-Z0-9+=,.@_-]+|)$`
+>> 
+
+
+Shorthand Syntax:
+    
+    
+    SecretArn=string,SecretAccessRoleArn=string
+    
+
+JSON Syntax:
+    
+    
+    {
+      "SecretArn": "string",
+      "SecretAccessRoleArn": "string"
+    }
+    
+
@@ -388 +484 @@ LocationArn -> (string)
-  * [AWS CLI 2.34.5 Command Reference](../../index.html) »
+  * [AWS CLI 2.34.8 Command Reference](../../index.html) »