我正在尝试使用 Octopus Deployment 将应用程序部署到 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:UsersnithyaneethaWork20200703102951-13-10Script.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:UsersnithyaneethaWork20200703102951-13-10Script.ps1: line 17
July 3rd 2020 16:01:46Error
at <ScriptBlock>, C:UsersnithyaneethaWork20200703102951-13-10Script.ps1: line 113
July 3rd 2020 16:01:46Error
at <ScriptBlock>, C:UsersnithyaneethaWork20200703102951-13-10Bootstrap.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
看起来您的配置可能有错误。
无法连接到终结点 URL:"https://elasticbeanstalk./#{US East}.amazonaws.com">
终结点 URL 中有一个未替换的变量 (#{US EAST}(。是否定义了名为"美国东部"的变量?如果是这样,它可能是一个转义的 iss,因为在变量语法之前有一个/。