Closed sebastiaf closed 1 year ago
I've noticed I'm able to correct this issue by manually going to "Edit file share encryption" on the share, manually changing the KMS key to the full id (not an alias), and then re-applying.
I've also noticed I'm able to reproduce this issue by applying a cache configuration (refresh seconds) where I didn't have it before.
Using provider version 3.69.0 and on Terraform 1.1.0
I am facing the same issue when updating the SMB file share's admin user list and valid user list.
I am using provider version 3.74.1.
Error: error updating Storage Gateway SMB File Share (arn:aws:storagegateway:ap-southeast-2:875250343506:share/share-6F6E5117): InvalidGatewayRequestException: KMSEncrypted is set to true, but KMSKey is missing.
β {
β RespMetadata: {
β StatusCode: 400,
β RequestID: "68a1728d-4a89-4f6e-a8fa-626399e726b9"
β },
β Error_: {
β ErrorCode: "InvalidParameters"
β },
β Message_: "KMSEncrypted is set to true, but KMSKey is missing."
β }
Hi Guys,
We have also just bumped into this issue.
AWS provider version 4.59.0
This functionality has been released in v5.5.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.
For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!
I'm going to lock this issue because it has been closed for 30 days β³. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Community Note
Terraform CLI and Terraform AWS Provider Version
3.47.0, 3.56.0
Affected Resource(s)
Debug Output
Expected Behavior
The SMB share changes "File access settings > Export as" -> Read-write/Read-only.
Actual Behavior
The SMB share is not changed. Terraform shows
Steps to Reproduce
terraform apply
terraform apply
Important Factoids
The SMB Share can be changed using the AWS webconsole ("File access settings > Export as" ) without entering KMS Key ID.
References
aws/resource_aws_storagegateway_smb_file_share.go (around lines 410-413)
As the debug output shows there is no reference to the KMS key in request body. Could the unchanged kms_key_arn explain the missing property?
0000