We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95067e3 commit 1c3e6b0Copy full SHA for 1c3e6b0
internal/service/ec2/ec2_launch_template.go
@@ -84,8 +84,11 @@ func resourceLaunchTemplate() *schema.Resource {
84
names.AttrKMSKeyID: {
85
Type: schema.TypeString,
86
Optional: true,
87
- // Allow empty string for backwards compatibility.
88
- ValidateFunc: validation.Any(validation.StringIsEmpty, verify.ValidKMSKeyID),
+ // Allow empty string for backwards compatibility with verify.ValidARN.
+ ValidateFunc: validation.Any( // nosemgrep:ci.avoid-string-is-empty-validation
89
+ validation.StringIsEmpty,
90
+ verify.ValidKMSKeyID,
91
+ ),
92
},
93
names.AttrSnapshotID: {
94
0 commit comments