首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >我想使用cloudfomation运行aws-cli命令

我想使用cloudfomation运行aws-cli命令
EN

Stack Overflow用户
提问于 2015-09-16 17:31:31
回答 1查看 53关注 0票数 0

我可以使用aws-cli创建/删除cloudformation堆栈,但我想反转,例如使用cloudformation堆栈运行aws cli命令

EN

回答 1

Stack Overflow用户

发布于 2015-09-16 17:42:17

尝试通过以下方式使用任何命令:

代码语言:javascript
复制
"AWS::CloudFormation::Init" : {
    "configSets" : {
        "ascending" : [ "config1" , "config2" ],
        "descending" : [ "config2" , "config1" ]
    },
    "config1" : {
        "commands" : {
            "test" : {
                "command" : "echo \"$CFNTEST\" > test.txt",
                "env" : { "CFNTEST" : "I come from config1." },
                "cwd" : "~"
            }
        }
    },
    "config2" : {
        "commands" : {
            "test" : {
                "command" : "echo \"$CFNTEST\" > test.txt",
                "env" : { "CFNTEST" : "I come from config2" },
                "cwd" : "~"
            }
        }
    }
}     
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/32604742

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档