template used
I am trying to build an aws cloud-formation stack following the example http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/working-with-templates-cfn-designer-walkthrough-createbasicwebserver.html
However the stack is failing on creation of an ec2 isntance with an error Network interfaces and an instance-level subnet ID may not be specified on the same request
Could let me know what is missing. I have checked the parameters they all looks to be fine. template used is shared
it was an PublicSubnet properties defined mutlipe times caused this issue .i.e. it is once defined in "Network Interface" and one separability in SubnetId": { "Ref": "PublicSubnet".
The particular snippet was pasted below which was causing this problem
"NetworkInterfaces": [
{
"GroupSet": [
{
"Ref": "webserverSG"
}
],
"AssociatePublicIpAddress": "true",
"DeviceIndex": "0",
"DeleteOnTermination": "true",
"SubnetId": {
"Ref": "PublicSubnet"
}
}
],
"UserData": {
"Fn::Base64": {
xxxx
xxxxx
xxxx
"SubnetId": {
"Ref": "PublicSubnet"
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With