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
Keine Antworten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen