@Mansi Gusain Please refer to the version_upgrade_option
attribute. More details here:
version_upgrade_option = (Optional) Deployment model version upgrade option. Possible values are
OnceNewDefaultVersionAvailable
,OnceCurrentVersionExpired
, andNoAutoUpgrade
. Defaults toOnceNewDefaultVersionAvailable
. Changing this forces a new resource to be created.
name = string
model_format = string
model_name = string
model_version = string
scale_type = string
rai_policy_name = optional(string)
capacity = optional(number)
version_upgrade_option = optional(string)
.
You could try setting it to the value OnceNewDefaultVersionAvailable
.
.
More info is available in this terraform article. Hope this helps.
**
Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.