我正在尝试使用Maven beanstalk插件部署到弹性beantalk。要求是使用新版本更新环境。
插件设置
<plugin>
<groupId>br.com.ingenieux</groupId>
<artifactId>beanstalk-maven-plugin</artifactId>
<version>1.5.0</version>
<configuration>
<applicationName>Muletutorials</applicationName>
<!-- Path of the deployed application: cnamePrefix.us-east-1.elasticbeanstalk.com -->
<cnamePrefix>${project.artifactId}</cnamePrefix>
<environmentName>updated-env</environmentName>
<environmentRef>updated-env</environmentRef>
<!--<solutionStack>64bit Amazon Linux 2015.03 v1.4.5 running Tomcat
8 Java 8</solutionStack> -->
<!-- Bucket name here equal to artifactId - but this is not guaranteed
to be available, so therefore the bucket name is given statically -->
<s3Bucket>elasticbeanstalk-us-west-2-147460117548</s3Bucket>
<s3Key>${project.build.finalName}-${maven.build.timestamp}.war</s3Key>
<versionLabel>${project.version}</versionLabel>
</configuration>
</plugin>
我能够使用以下命令将artifcat上传到s3并创建应用程序版本:mvn beanstalk:upload-source-bundle beanstalk:create-application-version
运行时失败:beanstalk:update-environment
错误:
Environment named updated-env is in an invalid state for this operation. It must be ready. <Service:AWSElasticBeanstalk; StatusCode:400; ErrorCode:InvalidParameterValue