129 lines
3.8 KiB
Plaintext
129 lines
3.8 KiB
Plaintext
{
|
|
"AWSTemplateFormatVersion": "2010-09-09",
|
|
|
|
"Parameters": {
|
|
"KeyName": {
|
|
"Description": "Key Pair name for Load Balancer",
|
|
"Type": "String",
|
|
"Default": "murano-lb-key"
|
|
}
|
|
},
|
|
|
|
"Resources": {
|
|
"$instanceName": {
|
|
"Type": "AWS::EC2::Instance",
|
|
"Properties": {
|
|
"BootFromVolume": true,
|
|
"InstanceType": "$instanceType",
|
|
"ImageId": "$imageName",
|
|
"AvailabilityZone": "$availabilityZone",
|
|
"UserData": "$userData",
|
|
"NetworkInterfaces": [ { "Ref": "$port-{instanceName}" } ]
|
|
}
|
|
},
|
|
"$instancePort": {
|
|
"Type": "OS::Neutron::Port",
|
|
"Properties": {
|
|
"network_id": {
|
|
"Ref": "network"
|
|
},
|
|
"security_groups" : [ { "Ref" : "MuranoDefaultSecurityGroup"}],
|
|
"fixed_ips": [
|
|
{
|
|
"subnet_id": {
|
|
"Ref": "subnet"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"MuranoDefaultSecurityGroup": {
|
|
"Type": "AWS::EC2::SecurityGroup",
|
|
"Properties": {
|
|
"SecurityGroupIngress": [
|
|
{
|
|
"ToPort": "22",
|
|
"IpProtocol": "tcp",
|
|
"FromPort": "22",
|
|
"CidrIp": "0.0.0.0/0"
|
|
},
|
|
{
|
|
"ToPort": "23",
|
|
"IpProtocol": "tcp",
|
|
"FromPort": "23",
|
|
"CidrIp": "0.0.0.0/0"
|
|
},
|
|
{
|
|
"ToPort": "-1",
|
|
"IpProtocol": "icmp",
|
|
"FromPort": "-1",
|
|
"CidrIp": "0.0.0.0/0"
|
|
},
|
|
{
|
|
"IpProtocol": "tcp",
|
|
"FromPort" : "1",
|
|
"ToPort": "65535",
|
|
"CidrIp": "10.0.0.0/24"
|
|
},
|
|
{
|
|
"IpProtocol": "udp",
|
|
"FromPort" : "1",
|
|
"ToPort": "65535",
|
|
"CidrIp": "10.0.0.0/24"
|
|
}
|
|
],
|
|
"GroupDescription": "Default security group for Linux Murano Environments"
|
|
}
|
|
},
|
|
"network": {
|
|
"Type": "OS::Neutron::Net",
|
|
"Properties": {
|
|
"name": "$network-{environmentId}"
|
|
}
|
|
},
|
|
"subnet": {
|
|
"Type": "OS::Neutron::Subnet",
|
|
"Properties": {
|
|
"network_id": {
|
|
"Ref": "network"
|
|
},
|
|
"ip_version": 4,
|
|
"cidr": "10.0.0.0/24",
|
|
"dns_nameservers": ["8.8.8.8"],
|
|
"allocation_pools": [
|
|
{
|
|
"start": "10.0.0.20",
|
|
"end": "10.0.0.250"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"router": {
|
|
"Type": "OS::Neutron::Router"
|
|
},
|
|
"router_interface": {
|
|
"Type": "OS::Neutron::RouterInterface",
|
|
"Properties": {
|
|
"router_id": {
|
|
"Ref": "router"
|
|
},
|
|
"subnet_id": {
|
|
"Ref": "subnet"
|
|
}
|
|
}
|
|
},
|
|
"router_gateway": {
|
|
"Type": "OS::Neutron::RouterGateway",
|
|
"Properties": {
|
|
"router_id": {
|
|
"Ref": "router"
|
|
},
|
|
"network_id": "$externalNetworkId"
|
|
}
|
|
}
|
|
},
|
|
|
|
"Outputs": {
|
|
}
|
|
}
|