diff --git a/aquasec/resource_container_runtime_policy.go b/aquasec/resource_container_runtime_policy.go index 6606dd7..18bd696 100644 --- a/aquasec/resource_container_runtime_policy.go +++ b/aquasec/resource_container_runtime_policy.go @@ -1231,6 +1231,10 @@ func resourceContainerRuntimePolicy() *schema.Resource { Description: "Variable value.", Required: true, }, + "name": { + Type: schema.TypeString, + Optional: true, + }, }, }, }, diff --git a/aquasec/resource_host_runtime_policy.go b/aquasec/resource_host_runtime_policy.go index 9b8fb1f..e29e9f5 100644 --- a/aquasec/resource_host_runtime_policy.go +++ b/aquasec/resource_host_runtime_policy.go @@ -3007,6 +3007,7 @@ func flattenVariables(variables []interface{}) []client.Variable { val := v.(map[string]interface{}) result = append(result, client.Variable{ Attribute: val["attribute"].(string), + Name: val["name"].(string), Value: val["value"].(string), }) }