Neither of the two options below is working for me:
$SetMinSizeResponse = Update-EBEnvironment -Region $deploy_aws_region_name -ApplicationName "xd-datastore" -EnvironmentName $inactive_environment -option-settings-file://~/./MinAndMaxSettings.json
$SetMaxSizeResponse = Update-EBEnvironment -Region $deploy_aws_region_name -ApplicationName "xd-datastore" -EnvironmentName $inactive_environment -OptionSetting.Namespace 'aws:autoscaling:asg' -Optionsetting.OptionName 'MaxSize' -OptionSetting.ResourceName 'AWSEBAutoScalingGroup' -OptionSetting.Value '4'
Error message I see is:
Update-EBEnvironment : A parameter cannot be found that matches parameter name 'option-settings-file'.
At C:\Vin CVAD on new machine\New Reduce Instances TC Pipeline\RunningReduceInstances.ps1:91 char:149
- ... -EnvironmentName $inactive_environment -option-settings-file://~/./Mi ...
-
~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidArgument: (:) [Update-EBEnvironment], ParameterBindingException
- FullyQualifiedErrorId : NamedParameterNotFound,Amazon.PowerShell.Cmdlets.EB.UpdateEBEnvironmentCmdlet