我正在尝试使用Octopus Deploy将应用程序部署到AWS Elastic Beanstalk中。但是部署失败。它显示以下错误。该如何解决?
upload failed: .\RandomQuotes-1.0.0.Deployments-6.zip to s3://octopus-beanstalk-demoproject/RandomQuotes-1.0.0.Deployments-6.zip Could not connect to the endpoint URL: "https://octopus-beanstalk-demoproject.s3./RandomQuotes-1.0.0.Deployments-6.zip"
July 3rd 2020 16:01:24Info
Creating application version RandomQuotes-1.0.0.Deployments-6
July 3rd 2020 16:01:35Error
Could not connect to the endpoint URL: "https://elasticbeanstalk./#{US East}.amazonaws.com"
July 3rd 2020 16:01:44Error
Could not connect to the endpoint URL: "https://elasticbeanstalk./#{US East}.amazonaws.com"
July 3rd 2020 16:01:46Error
OperationStopped: Could not find the environment Development in the application Random Quotes
July 3rd 2020 16:01:46Error
At C:\Users\nithyaneetha\Work\20200703102951-13-10\Script.ps1:17 char:11
July 3rd 2020 16:01:46Error
+ throw "Could not find the environment $environment in the a ...
July 3rd 2020 16:01:46Error
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
July 3rd 2020 16:01:46Error
at Wait-ForEnvironmentToBeReady, C:\Users\nithyaneetha\Work\20200703102951-13-10\Script.ps1: line 17
July 3rd 2020 16:01:46Error
at <ScriptBlock>, C:\Users\nithyaneetha\Work\20200703102951-13-10\Script.ps1: line 113
July 3rd 2020 16:01:46Error
at <ScriptBlock>, C:\Users\nithyaneetha\Work\20200703102951-13-10\Bootstrap.Script.ps1: line 1574
July 3rd 2020 16:01:46Error
at <ScriptBlock>, <No file>: line 1
July 3rd 2020 16:01:46Error
at <ScriptBlock>, <No file>: line 1
July 3rd 2020 16:01:47Fatal
The remote script failed with exit code 1
July 3rd 2020 16:01:47Fatal
The action Depoy on the Octopus Server failed
答案 0 :(得分:0)
看起来您的配置可能有错误。
无法连接到端点URL:“ https://elasticbeanstalk./#{US East} .amazonaws.com”
端点URL中有一个未替换的变量(#{US EAST})。您是否定义了一个名为“ US East”的变量?如果是这样,则可能是一个转义的问题,因为变量语法之前有一个/。