如何刷新Elastic Beanstalk中的缓存?

时间:2018-07-31 20:18:47

标签: elastic-beanstalk

我正在使用命令行通过以下命令创建环境:

eb create staging -i t2.small

然后我收到以下错误消息:

2018-07-31 20:13:16    ERROR   Each option setting in configuration file .ebextensions/options.config in application version app-c8f2-180731_201302 must be a map. Update each option setting in the configuration file.

当我删除options.config并再次运行命令时,我得到完全相同的错误。更全面:

2018-07-31 20:17:04    INFO    createEnvironment is starting.
2018-07-31 20:17:05    INFO    Using elasticbeanstalk-us-east-1-413395812799 as Amazon S3 storage bucket for environment data.
2018-07-31 20:17:06    ERROR   Each option setting in configuration file .ebextensions/options.config in application version app-c8f2-180731_201651 must be a map. Update each option setting in the configuration file.
2018-07-31 20:17:07    ERROR   Failed to launch environment.

ERROR: ServiceError - Failed to launch environment.

因此,似乎Elastic Beanstalk正在缓存该程序的旧版本。

如果是,该如何刷新缓存?

如果没有,为什么即使删除文件后仍然出现错误?

1 个答案:

答案 0 :(得分:1)

您要删除文件,然后在已经初始化的环境中再次运行create。

尝试运行eb deploy来将新更改推送到已经初始化的Elastic Beanstalk环境中。