我使用Jhipster以便在Amazon(jhipster aws / https://www.jhipster.tech/aws/)上进行部署。
我在部署过程中收到以下错误:
Create S3 bucket
Bucket psp-sample created successful Upload WAR to S3
War uploaded successful
Create database D:\projects\sample\node_modules\aws-sdk\lib\request.js:31
throw err;
^
Error: ERROR! No default subnet detected in VPC. Please contact AWS Support to recreate default Subnets.
at Environment.error (D:\projects\sample\node_modules\yeoman-environment\lib\environment.js:157:40)
at module.exports.error (D:\projects\sample\node_modules\generator-jhipster\generators\generator-base.js:2064:18)
at rds.createDatabase (D:\projects\sample\node_modules\generator-jhipster\generators\aws\index.js:175:30)
at createDbInstance (D:\projects\sample\node_modules\generator-jhipster\generators\aws\lib\rds.js:36:33)
at Response.rds.createDBInstance (D:\projects\sample\node_modules\generator-jhipster\generators\aws\lib\rds.js:124:13)
at Request.<anonymous> (D:\projects\sample\node_modules\aws-sdk\lib\request.js:364:18)
at Request.callListeners (D:\projects\sample\node_modules\aws-sdk\lib\sequential_executor.js:109:20)
at Request.emit (D:\projects\sample\node_modules\aws-sdk\lib\sequential_executor.js:81:10)
at Request.emit (D:\projects\sample\node_modules\aws-sdk\lib\request.js:683:14)
at Request.transition (D:\projects\sample\node_modules\aws-sdk\lib\request.js:22:10)
我了解我需要一个默认子网,而没有AWS支持,我自己无法做到这一点 (https://forums.aws.amazon.com/thread.jspa?threadID=240833)。
还有另一种方法可以指定VPC而不使用默认值吗?
谢谢!
答案 0 :(得分:0)
我必须在每个区域中创建一个子网,这解决了我的问题。