-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaws_transformed.xmi
More file actions
35 lines (35 loc) · 2.7 KB
/
Copy pathaws_transformed.xmi
File metadata and controls
35 lines (35 loc) · 2.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?xml version="1.0" encoding="ASCII"?>
<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:aws="http://www.example.org/aws_terraform" xmlns:cloudDSL="http://www.example.org/clouddsl">
<cloudDSL:Provider name="AzureTestProvider" region="westeurope">
<networks name="myVnet" cidr="10.0.0.0/16"/>
<vms name="webServer" availabilityZone="1" subnet="/0/@subnets.0" securityGroup="/0/@securityGroups.0" os="Ubuntu 20.04"/>
<vms name="dbServer" type="medium" availabilityZone="1" subnet="/0/@subnets.1" securityGroup="/0/@securityGroups.0" os="Ubuntu 20.04"/>
<subnets name="frontendSubnet" cidr="10.0.1.0/24" isPublic="true" network="/0/@networks.0"/>
<subnets name="backendSubnet" cidr="10.0.2.0/24" network="/0/@networks.0"/>
<securityGroups name="webSG">
<rules name="AllowHTTP" port="80"/>
<rules name="AllowSSH" port="22"/>
</securityGroups>
</cloudDSL:Provider>
<aws:AWSInfrastructure provider="/2" vpcs="/3" subnets="/4 /5" security_groups="/9" internet_gateways="/6" route_tables="/12 /15" route_table_associations="/14 /17" elastic_ips="/8" nat_gateways="/7" instances="/10 /11"/>
<aws:AWSProvider region="eu-west-1"/>
<aws:AWS_VPC name="myVnet" cidr_block="10.0.0.0/16"/>
<aws:AWS_Subnet name="backendSubnet" vpc_name="myVnet" cidr_block="10.0.2.0/24" availability_zone="eu-west-1a"/>
<aws:AWS_Subnet name="frontendSubnet" vpc_name="myVnet" cidr_block="10.0.1.0/24" map_public_ip_on_launch="true" availability_zone="eu-west-1a"/>
<aws:AWS_InternetGateway name="myVnet_igw" vpc_name="myVnet"/>
<aws:AWS_NATGateway name="myVnet_nat" subnet_name="frontendSubnet" elastic_ip_name="myVnet_eip"/>
<aws:AWS_ElasticIP name="myVnet_eip" domain="vpc"/>
<aws:AWS_SecurityGroup name="webSG" vpc_name="myVnet"/>
<aws:AWS_Instance name="dbServer" instance_type="t2.medium" subnet_name="backendSubnet" availability_zone="eu-west-1a" ami="ami-0c55b159cbfafe1f0">
<security_group_names>webSG</security_group_names>
</aws:AWS_Instance>
<aws:AWS_Instance name="webServer" instance_type="t2.small" subnet_name="frontendSubnet" availability_zone="eu-west-1a" ami="ami-0c55b159cbfafe1f0">
<security_group_names>webSG</security_group_names>
</aws:AWS_Instance>
<aws:AWS_RouteTable name="frontendSubnet_rt" vpc_name="myVnet" routes="/13"/>
<aws:AWS_Route destination_cidr_block="0.0.0.0/0" gateway_id="myVnet_igw"/>
<aws:AWS_RouteTableAssociation subnet_name="frontendSubnet" route_table_name="frontendSubnet_rt"/>
<aws:AWS_RouteTable name="backendSubnet_rt" vpc_name="myVnet" routes="/16"/>
<aws:AWS_Route destination_cidr_block="0.0.0.0/0" nat_gateway_id="myVnet_nat"/>
<aws:AWS_RouteTableAssociation subnet_name="backendSubnet" route_table_name="backendSubnet_rt"/>
</xmi:XMI>