aws CAPABILITY_AUTO_EXPAND控制台Web代码管道与cloudformation [英] aws CAPABILITY_AUTO_EXPAND console web codepipeline with cloudformation

查看:88
本文介绍了aws CAPABILITY_AUTO_EXPAND控制台Web代码管道与cloudformation的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用cloudformation服务完成代码管道,并且会生成此错误。必须说,单独的cloudformation服务运行良好。完整的错误是:

I am trying to complete a codepipeline with the cloudformation service and this error is generated. It must be said that the separate cloudformation service works well. The complete error is:


JobFailed
需要功能:[CAPABILITY_AUTO_EXPAND](服务:AmazonCloudFormation;状态代码:400;错误代码:InsufficientCapabilitiesException;请求ID:1a977102-f829-11e8-b5c6-f7cc8454c4d0)

JobFailed Requires capabilities: [CAPABILITY_AUTO_EXPAND] (Service: AmazonCloudFormation; Status Code: 400; Error Code: InsufficientCapabilitiesException; Request ID: 1a977102-f829-11e8-b5c6-f7cc8454c4d0)

我要解决的方法是添加 CAPABILITY_AUTO_EXPAND --capabilities 参数,但仅适用于CLI,我的情况是通过Web控制台。

The solutions I have is to add the CAPABILITY_AUTO_EXPAND --capabilities parameter but that only applies to CLI and my case is by web console.

推荐答案

遇到同样的问题,我找不到通过控制台执行此操作的方法。
但是,它与CLI配合良好,您可以在此处找到有关管道更新的详细文档: https://docs.aws.amazon.com/cli/latest/reference/codepipeline/update-pipeline.html

Ran into the same problem, I could not find a way to do it through the console. However it works well with the CLI and you can find detailed documentation on pipeline update here : https://docs.aws.amazon.com/cli/latest/reference/codepipeline/update-pipeline.html

我这样做的方式是:


  1. 创建一条get-pipeline以获取当前的管道结构

  2. 将结果另存为json文件

  3. :从json文件中删除元数据部分,在配置部分添加具有您的值的功能属性

  4. 使用带有--cli-input-json选项的update-pipeline命令指定以前的json文件

  1. make a get-pipeline to get the current pipeline structure
  2. save the result as a json file
  3. from the json file : remove the metadata section, add a capabilities attribute with your value in configuration section
  4. use the update-pipeline command with --cli-input-json option specifying the previous json file

这篇关于aws CAPABILITY_AUTO_EXPAND控制台Web代码管道与cloudformation的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆