Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/64.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Amazon web services 我想使用cloudfomation运行aws cli命令_Amazon Web Services - Fatal编程技术网

Amazon web services 我想使用cloudfomation运行aws cli命令

Amazon web services 我想使用cloudfomation运行aws cli命令,amazon-web-services,Amazon Web Services,我可以使用aws cli创建/删除cloudformation堆栈,但我想反向操作,如使用cloudformation堆栈运行aws cli命令,请尝试以以下方式使用任何命令: "AWS::CloudFormation::Init" : { "configSets" : { "ascending" : [ "config1" , "config2" ], "descending" : [ "config2" , "config1" ] },

我可以使用aws cli创建/删除cloudformation堆栈,但我想反向操作,如使用cloudformation堆栈运行aws cli命令,请尝试以以下方式使用任何命令:

"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" : "~"
            }
        }
    }
}