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
preguntada hace 6 meses90 visualizaciones
No hay respuestas

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas