我已經創建了一個創建一個SNS :: Topic和其他資源的雲構建模板。現在的問題是,當我嘗試更新堆棧時,出現以下錯誤使用AWS SNS時無法更新雲信息堆棧:主題資源
"Update to resource type AWS::SNS::Topic is not supported"
堆棧策略是:
{
"Statement" : [
{
"Effect" : "Deny",
"Action" : "Update:*",
"Principal": "*",
"Resource" : "*",
"Condition" : {
"StringEquals" : {
"ResourceType" : ["AWS::SNS::Topic", "AWS::EC2::Subnet"]
}
}
},
{
"Effect" : "Allow",
"Action" : "Update:*",
"Principal": "*",
"Resource" : "*"
}
]
}
CF模板是
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "......",
"Resources": {
"MySNSTopic":{
"Type":"AWS::SNS::Topic",
"Properties":{
"DisplayName": "",
"Subscription": [ ],
"TopicName": { "Fn::Join": [ "-", [ "Simple", "sns", "topic" ] ] }
}
}
}
有什麼(甚至hackable),我可以改變,讓aws完成aws更新堆棧而不刪除/修改sns_topic?
我的問題是,我還沒有修改SNS主題部分。因此,它不應該抱怨。 –
您要更新的模板有哪些變化?你能否將模板與舊版本區分開來? – James