【问题标题】:Network interface. and an instance-level subnet ID may not be specified on same request Cloud-Formation网络接口。并且不能在同一请求中指定实例级子网 ID Cloud-Formation
【发布时间】:2017-08-17 03:56:32
【问题描述】:

template used

我正在尝试按照示例 http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/working-with-templates-cfn-designer-walkthrough-createbasicwebserver.html 构建一个 aws 云形成堆栈

但是堆栈在创建 ec2 实例时失败并出现错误 网络接口和实例级子网 ID 不能在同一个请求中指定

可以让我知道缺少什么。我检查了参数,它们看起来都很好。使用的模板是共享的

【问题讨论】:

  • 我有同样的问题,不知道该怎么办?

标签: amazon-web-services amazon-cloudformation


【解决方案1】:

这是一个 PublicSubnet 属性定义的多个时间导致此问题。即 它曾经在“网络接口”中定义,并且在 SubnetId 中有一个可分离性“:{ “参考”:“公共子网”。

特定的 sn-p 粘贴在导致此问题的下方

"NetworkInterfaces": [
{
"GroupSet": [
{
"Ref": "webserverSG"
}
],
"AssociatePublicIpAddress": "true",
 "DeviceIndex": "0",
"DeleteOnTermination": "true",
 "SubnetId": {
"Ref": "PublicSubnet"
}
}
],
"UserData": {
"Fn::Base64": {
 xxxx
 xxxxx
 xxxx

 "SubnetId": {
 "Ref": "PublicSubnet" 
  }

【讨论】:

    猜你喜欢
    • 2012-11-16
    • 2021-03-21
    • 1970-01-01
    • 1970-01-01
    • 2015-03-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多