Problem with my security group json, is this a bug?
So I have this code. The two security groups App1 and Shared-Zones1 initialized fine but then when it comes to app2 trying to spawn, it will throw an error saying that Shared-Zones1 doesn't exist. I can see that it does and its initialized? I've trolled through Google and I can't find anything I need, the documentation doesn't really help me out either. Help please it is driving me mad!
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "HEAT that creates a subnetwork, 2 instances and a router",
"Resources": {
"Shared-Zones1": {
"Type": "OS::Neutron::SecurityGroup",
"Properties": {
"description": "Security template",
"name": "Shared-Zones-Default-Security",
"rules": [
{"remote_ip_prefix":"0.0.0.0/0",
"direction": "ingress",
"ethertype": "IPv4",
"protocol": "icmp"},
{"direction": "ingress",
"remote_mode": "remote_group_id",
"ethertype": "IPv4"},
{"remote_ip_prefix":"0.0.0.0/0",
"direction": "ingress",
"port_range_min":"22",
"port_range_max":"22",
"ethertype": "IPv4",
"protocol": "tcp"}
]
}},
"App1": {
"Type": "OS::Neutron::SecurityGroup",
"Properties": {
"description": "Security template",
"name": "shared-zones-App1-security",
"rules": [
{"direction": "ingress",
"remote_mode": "remote_group_id",
"ethertype": "IPv4",
"protocol": "icmp"}
]
}},
"App2": {
"Type": "OS::Neutron::SecurityGroup",
"Properties": {
"description": "Security template",
"name": "shared-zones-App2-security",
"rules": [
{"direction": "ingress",
"remote_mode": "remote_group_id",
"ethertype": "IPv4",
"protocol": "icmp"},
{"remote_group_id": "Shared-Zones1",
"direction": "ingress",
"remote_mode": "remote_group_id",
"ethertype": "IPv4",
"protocol": "icmp"},
{"remote_group_id": "Shared-Zones1",
"direction": "ingress",
"remote_mode": "remote_group_id",
"port_range_min":"22",
"port_range_max":"22",
"ethertype": "IPv4",
"protocol": "tcp"}
]
}}
}
}