我試圖創建一個使用CLI和Java API的在AWS彈性魔豆的應用環境。運行CLI命令後,我看到下面的錯誤日誌在AWS控制檯,issue.Failed推出environment.Environment AWS青苗環境的建設必須有一個相關的背景輪廓
2017-07-18 10:26:22 UTC+0530 INFO Deleting SNS topic for environment MySampleApplicationThree-env.
2017-07-18 10:26:20 UTC+0530 ERROR Failed to launch environment.
2017-07-18 10:26:20 UTC+0530 ERROR Environment must have instance profile associated with it.
2017-07-18 10:26:19 UTC+0530 INFO Using elasticbeanstalk-ap-south-1-839135229895 as Amazon S3 storage bucket for environment data.
2017-07-18 10:26:18 UTC+0530 INFO createEnvironment is starting.
我看到了同樣的上述錯誤日誌中的API太..
下面是我的CLI命令,
aws elasticbeanstalk create-environment --cname-prefix mysampleapplicationthree --application-name MySampleApplicationThree --version-label "Sample Application" --environment-name mysampleapplicationfour --solution-stack-name "64bit Amazon Linux 2017.03 v2.6.1 running Tomcat 8 Java 8"
下面是我的API代碼
AWSElasticBeanstalk client = AWSElasticBeanstalkClientBuilder.defaultClient();
CreateEnvironmentRequest createEnvironmentRequest = new CreateEnvironmentRequest()
.withApplicationName("MySampleApplicationThree")
.withEnvironmentName("MySampleApplicationThree-env")
.withCNAMEPrefix("MySampleApplicationThree")
.withSolutionStackName("64bit Amazon Linux 2017.03 v2.5.1 running Java 8")
.withVersionLabel("Sample Application");
CreateEnvironmentResult envresult = client.createEnvironment(createEnvironmentRequest);
我沒有得到這方面的任何妥善的解決辦法。如果有人幫助解決這個問題,這將是有益的。謝謝..
即使安裝'AWSElasticBeanstalkFullAccess'政策我面臨同樣的問題後。 – Nithyananth