我正在尝试设置CodePipeline。 我将源代码存储在AWSCodeCommit中,成功创建了CodeBuild项目,并希望将其部署到Elastic Beanstalk环境中。
在第一步中使用控制台,我选择了“新服务角色”(我找不到自己创建一个的方法-下拉框始终为空),当我最终完成所有步骤时,我得到了错误:
@event.listens_for(Query, "before_compile", retval=True)
def before_itemmodel_compile(query):
"""Limit all ItemModel queries to the current month"""
if query._execution_options.get("include_all", False):
return query
for ent in query.column_descriptions:
entity = ent['entity']
if entity is None:
continue
insp = inspect(ent['entity'])
mapper = getattr(insp, 'mapper', None)
if mapper and mapper.class_ is ItemModel:
today = datetime.date.today()
month_start = today.replace(day=1) # set day of the month to 1
query = query.enable_assertions(False).filter(
ent['entity'].date >= month_start)
return query
如果我将建议的角色名称更改为自定义名称,则会收到以下消息:
The role with name AWSCodePipelineServiceRole-eu-central-1-PROJECTNAME cannot be found.
有人从未面对过这个吗?