Unable to update configuration settings on Elastic Beanstalk Environment through PowerShell cmdlet in PowerShell script file.

0

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
VinRao
已提問 6 個月前檢視次數 90 次
沒有答案

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南