Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "Resources": {
- "BaphometVolumeAttachment": {
- "Properties": {
- "Device": "/dev/sdc",
- "InstanceId": {
- "Ref": "OracleBaphometDruskaGameServerInstance"
- },
- "VolumeId": {
- "Fn::ImportValue": "BaphometEBSVolumeId"
- }
- },
- "Type": "AWS::EC2::VolumeAttachment"
- },
- "DruskaVolumeAttachment": {
- "Properties": {
- "Device": "/dev/sdd",
- "InstanceId": {
- "Ref": "OracleBaphometDruskaGameServerInstance"
- },
- "VolumeId": {
- "Fn::ImportValue": "DruskaEBSVolumeId"
- }
- },
- "Type": "AWS::EC2::VolumeAttachment"
- },
- "OracleBaphometDruskaGameServerInstance": {
- "Properties": {
- "AvailabilityZone": "us-east-1a",
- "ImageId": "ami-0f9e7e8867f55fd8e",
- "InstanceType": "t3.medium",
- "KeyName": "wantsmore-coffee-us-east-1",
- "NetworkInterfaces": [
- {
- "AssociatePublicIpAddress": "true",
- "DeleteOnTermination": "true",
- "DeviceIndex": "0",
- "GroupSet": [
- {
- "Ref": "TestClusterDefaultSecurityGroup"
- },
- {
- "Ref": "TestClusterOracleBaphometDruskaGameServerInstanceSecurityGroup"
- }
- ],
- "SubnetId": {
- "Ref": "TestClusterSubnet"
- }
- }
- ]
- },
- "Type": "AWS::EC2::Instance"
- },
- "OracleBaphometDruskaGameServerInstanceIPAddress": {
- "DependsOn": "TestClusterAttachGateway",
- "Properties": {
- "Domain": "vpc",
- "InstanceId": {
- "Ref": "OracleBaphometDruskaGameServerInstance"
- }
- },
- "Type": "AWS::EC2::EIP"
- },
- "OracleVolumeAttachment": {
- "Properties": {
- "Device": "/dev/sdb",
- "InstanceId": {
- "Ref": "OracleBaphometDruskaGameServerInstance"
- },
- "VolumeId": {
- "Fn::ImportValue": "OracleEBSVolumeId"
- }
- },
- "Type": "AWS::EC2::VolumeAttachment"
- },
- "TestClusterAttachGateway": {
- "Properties": {
- "InternetGatewayId": {
- "Ref": "TestClusterInternetGateway"
- },
- "VpcId": {
- "Ref": "TestClusterVPC"
- }
- },
- "Type": "AWS::EC2::VPCGatewayAttachment"
- },
- "TestClusterDefaultSecurityGroup": {
- "Properties": {
- "GroupDescription": "Default ports",
- "SecurityGroupIngress": [
- {
- "CidrIp": "0.0.0.0/0",
- "FromPort": "22",
- "IpProtocol": "tcp",
- "ToPort": "22"
- },
- {
- "CidrIp": "0.0.0.0/0",
- "FromPort": "80",
- "IpProtocol": "tcp",
- "ToPort": "80"
- },
- {
- "CidrIp": "0.0.0.0/0",
- "FromPort": "443",
- "IpProtocol": "tcp",
- "ToPort": "443"
- }
- ],
- "VpcId": {
- "Ref": "TestClusterVPC"
- }
- },
- "Type": "AWS::EC2::SecurityGroup"
- },
- "TestClusterInternetGateway": {
- "Properties": {
- "Tags": [
- {
- "Key": "Application",
- "Value": {
- "Ref": "AWS::StackId"
- }
- },
- {
- "Key": "Name",
- "Value": {
- "Fn::Join": [
- "-",
- [
- {
- "Ref": "AWS::StackName"
- },
- "InternetGateway"
- ]
- ]
- }
- }
- ]
- },
- "Type": "AWS::EC2::InternetGateway"
- },
- "TestClusterOracleBaphometDruskaGameServerInstanceSecurityGroup": {
- "Properties": {
- "GroupDescription": "Public ports",
- "SecurityGroupIngress": [
- {
- "CidrIp": "0.0.0.0/0",
- "Description": "Wurm port for Oracle",
- "FromPort": 3300,
- "IpProtocol": "tcp",
- "ToPort": 3300
- },
- {
- "CidrIp": "0.0.0.0/0",
- "Description": "Wurm port for Baphomet",
- "FromPort": 3301,
- "IpProtocol": "tcp",
- "ToPort": 3301
- },
- {
- "CidrIp": "0.0.0.0/0",
- "Description": "Wurm port for Druska",
- "FromPort": 3302,
- "IpProtocol": "tcp",
- "ToPort": 3302
- }
- ],
- "VpcId": {
- "Ref": "TestClusterVPC"
- }
- },
- "Type": "AWS::EC2::SecurityGroup"
- },
- "TestClusterRoute": {
- "DependsOn": "TestClusterAttachGateway",
- "Properties": {
- "DestinationCidrBlock": "0.0.0.0/0",
- "GatewayId": {
- "Ref": "TestClusterInternetGateway"
- },
- "RouteTableId": {
- "Ref": "TestClusterRouteTable"
- }
- },
- "Type": "AWS::EC2::Route"
- },
- "TestClusterRouteTable": {
- "Properties": {
- "Tags": [
- {
- "Key": "Application",
- "Value": {
- "Ref": "AWS::StackId"
- }
- },
- {
- "Key": "Name",
- "Value": {
- "Fn::Join": [
- "-",
- [
- {
- "Ref": "AWS::StackName"
- },
- "RouteTable"
- ]
- ]
- }
- }
- ],
- "VpcId": {
- "Ref": "TestClusterVPC"
- }
- },
- "Type": "AWS::EC2::RouteTable"
- },
- "TestClusterSubnet": {
- "Properties": {
- "AvailabilityZone": "us-east-1a",
- "CidrBlock": "192.168.56.0/24",
- "Tags": [
- {
- "Key": "Application",
- "Value": {
- "Ref": "AWS::StackId"
- }
- },
- {
- "Key": "Name",
- "Value": {
- "Fn::Join": [
- "-",
- [
- {
- "Ref": "AWS::StackName"
- },
- "Subnet"
- ]
- ]
- }
- }
- ],
- "VpcId": {
- "Ref": "TestClusterVPC"
- }
- },
- "Type": "AWS::EC2::Subnet"
- },
- "TestClusterSubnetRouteTableAssociation": {
- "Properties": {
- "RouteTableId": {
- "Ref": "TestClusterRouteTable"
- },
- "SubnetId": {
- "Ref": "TestClusterSubnet"
- }
- },
- "Type": "AWS::EC2::SubnetRouteTableAssociation"
- },
- "TestClusterVPC": {
- "Properties": {
- "CidrBlock": "192.168.0.0/16",
- "Tags": [
- {
- "Key": "Application",
- "Value": {
- "Ref": "AWS::StackId"
- }
- },
- {
- "Key": "Name",
- "Value": {
- "Fn::Join": [
- "-",
- [
- {
- "Ref": "AWS::StackName"
- },
- "VPC"
- ]
- ]
- }
- }
- ]
- },
- "Type": "AWS::EC2::VPC"
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement