Skip to content

Commit 0f6ed6c

Browse files
authored
fix: update kms_key_id validation to accept all AWS-supported formats
fix: update kms_key_id validation to accept all AWS-supported formats - Changed ValidateFunc from verify.ValidARN to verify.ValidKMSKeyID - Now accepts key ID, key alias, key ARN, and alias ARN - Matches AWS API documentation requirements - Fixes documentation ambiguity reported in #44505
1 parent 021beb2 commit 0f6ed6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/service/ec2/ec2_launch_template.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ func resourceLaunchTemplate() *schema.Resource {
8484
names.AttrKMSKeyID: {
8585
Type: schema.TypeString,
8686
Optional: true,
87-
ValidateFunc: verify.ValidARN,
87+
ValidateFunc: verify.ValidKMSKeyID,
8888
},
8989
names.AttrSnapshotID: {
9090
Type: schema.TypeString,

0 commit comments

Comments
 (0)