aws_mapping.rst 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. AWS Dashboard
  2. -------------
  3. AWS has a particular dashboard as resources are found within different
  4. services. The following table lists the dashboard location of each resource,
  5. and the below screenshot shows how the switch between the various services.
  6. +------------------------+-----+
  7. | Instance | EC2 |
  8. +------------------------+-----+
  9. | MachineImage (Private) | EC2 |
  10. +------------------------+-----+
  11. | Volume | EC2 |
  12. +------------------------+-----+
  13. | Snapshot | EC2 |
  14. +------------------------+-----+
  15. | VMFirewall | EC2 |
  16. +------------------------+-----+
  17. | FloatingIP | EC2 |
  18. +------------------------+-----+
  19. | KeyPair | EC2 |
  20. +------------------------+-----+
  21. | VMFirewallRule | EC2 |
  22. +------------------------+-----+
  23. | Network | VPC |
  24. +------------------------+-----+
  25. | Subnet | VPC |
  26. +------------------------+-----+
  27. | Router | VPC |
  28. +------------------------+-----+
  29. | InternetGateway | VPC |
  30. +------------------------+-----+
  31. | Bucket | S2 |
  32. +------------------------+-----+
  33. | BucketObject | S2 |
  34. +------------------------+-----+
  35. .. figure:: captures/aws-services-dash.png
  36. :alt: EC2, VPC, and S3
  37. Resources in AWS are separated into three dashboards depending on the
  38. type of service handling the resources
  39. AWS - Labeled Resources
  40. -----------------------
  41. +------------------------+-------------------+----------------+----------------+----------+
  42. | Labeled Resource | AWS Resource Type | CB ID | CB Name | CB Label |
  43. +========================+===================+================+================+==========+
  44. | AWSInstance | Instance | Instance ID | Instance ID | tag:Name |
  45. +------------------------+-------------------+----------------+----------------+----------+
  46. | AWSMachineImage | AMI | AMI ID | AMI Name | tag:Name |
  47. +------------------------+-------------------+----------------+----------------+----------+
  48. | AWSNetwork | VPC | VPC ID | VPC ID | tag:Name |
  49. +------------------------+-------------------+----------------+----------------+----------+
  50. | AWSSubnet | Subnet | Subnet ID | Subnet ID | tag:Name |
  51. +------------------------+-------------------+----------------+----------------+----------+
  52. | AWSRouter | Route Table | Route Table ID | Route Table ID | tag:Name |
  53. +------------------------+-------------------+----------------+----------------+----------+
  54. | AWSVolume | Volume | Volume ID | Volume ID | tag:Name |
  55. +------------------------+-------------------+----------------+----------------+----------+
  56. | AWSSnapshot | Snapshot | Snapshot ID | Snapshot ID | tag:Name |
  57. +------------------------+-------------------+----------------+----------------+----------+
  58. | AWSVMFirewall | Security Group | Group ID | Group Name | tag:Name |
  59. +------------------------+-------------------+----------------+----------------+----------+
  60. The resources listed above are labeled, they thus have both the `name` and
  61. `label` properties in CloudBridge. These resources require a mandatory `label`
  62. parameter at creation. For all labeled resources, the `label` property in AWS
  63. maps to the tag with `key:Name`. However, unlike in Azure where all resources
  64. have names, only some AWS resources have an unchangeable name by which to
  65. identify them. Thus, for most AWS resources, the `name` property maps to the
  66. ID, in order to preserve the concept of names being a unique identifier,
  67. even if they are not easily readable in this context. For resources that do
  68. support naming in AWS, the `name` will be generated from the `label` given at
  69. creation, consisting of up to 55 characters from the label, followed by a UUID.
  70. The label property can subsequently be changed, but the name property will
  71. be set at creation and remain unchanged. Finally, labeled resources support
  72. a `label` parameter for the `find` method in their corresponding services.
  73. The below screenshots will help map these properties to AWS objects in the
  74. web portal.
  75. .. figure:: captures/aws-instance-dash.png
  76. :alt: name, ID, and label properties for AWS EC2 Instances
  77. The CloudBridge `name` and `ID` properties map to the unchangeable
  78. resource ID in AWS when the resource does not allow for an unchangeable
  79. name. The `label` property maps to the tag with key 'Name' for all
  80. resources in AWS. By default, this label will appear in the first
  81. column.
  82. .. figure:: captures/az-ami-dash.png
  83. :alt: name, ID, and label properties for AWS EC2 AMIs
  84. When an AWS resource allows for an unchangeable name, the CloudBridge
  85. `ID` property maps to the Resource ID, while the `Name` property maps to
  86. the Resource Name. The `label` property maps to the tag with key 'Name'
  87. for all resources in AWS. By default, this label will appear in the first
  88. column.
  89. AWS - Unlabeled Resources
  90. ---------------------------
  91. +-----------------------+--------------------+-------+---------+----------+
  92. | Unlabeled Resource | AWS Resource Type | CB ID | CB Name | CB Label |
  93. +=======================+====================+=======+=========+==========+
  94. | AWSKeyPair | Key Pair | Name | Name | - |
  95. +-----------------------+--------------------+-------+---------+----------+
  96. | AWSBucket | Bucket | Name | Name | - |
  97. +-----------------------+--------------------+-------+---------+----------+
  98. | AWSBucketObject | Bucket Object | Key | Key | - |
  99. +-----------------------+--------------------+-------+---------+----------+
  100. The resources listed above are unlabeled. They thus only have the `name`
  101. property in CloudBridge. These resources require a mandatory `name`
  102. parameter at creation, which will directly map to the unchangeable `name`
  103. property. Additionally, for these resources, the `ID` property also maps to
  104. the `name` in AWS, as these resources don't have an `ID` in the
  105. traditional sense and can be located by name. Finally, unlabeled resources
  106. support a `name` parameter for the `find` method in their corresponding
  107. services.
  108. .. figure:: captures/aws-bucket.png
  109. :alt: list of buckets on AWS dashboard
  110. Buckets can be found in the Amazon S3 portal. BucketObjects are contained
  111. within each Bucket.
  112. AWS - Special Unlabeled Resources
  113. -----------------------------------
  114. +--------------------+------------------------+-------+------------------------------------------------------------------------+----------+
  115. | Unlabeled Resource | AWS Resource Type | CB ID | CB Name | CB Label |
  116. +====================+========================+=======+========================================================================+==========+
  117. | AWSFloatingIP | Elastic IP | ID | [public_ip] | - |
  118. +--------------------+------------------------+-------+------------------------------------------------------------------------+----------+
  119. | AWSInternetGateway | Internet Gateway | ID | tag:Name | - |
  120. +--------------------+------------------------+-------+------------------------------------------------------------------------+----------+
  121. | AWSVMFirewallRule | Network Security Rules | ID | Generated: [direction]-[protocol]-[from_port]-[to_port]-[cidr]-[fw_id] | - |
  122. +--------------------+------------------------+-------+------------------------------------------------------------------------+----------+
  123. While these resources are similarly unlabeled, they do not follow the same
  124. general rules as the ones listed above. Firstly, they differ by the fact
  125. that they take neither a `name` nor a `label` parameter at creation.
  126. Moreover, each of them has other special properties.
  127. The FloatingIP resource has a traditional resource ID, but instead of a
  128. traditional name, its `name` property maps to its Public IP.
  129. Moreover, the corresponding `find` method for Floating IPs can thus help
  130. find a resource by `Public IP Address`.
  131. In terms of the gateway, given that gateways are not their own objects in
  132. other providers, we do not treat them like labeled resources in AWS although
  133. they could support labels. Thus, the internet gateway create method does not
  134. take a name parameter, and the `name` property is set automatically to a
  135. default value. Note that since this value is stored in the tag with key Name,
  136. the AWS dashboard does allow for its modification, although that is not
  137. encouraged as the default name is expected for the
  138. `get_or_create_inet_gateway` method.
  139. Finally, Firewall Rules in AWS differ from traditional unlabeled resources
  140. by the fact that they do not take a `name` parameter at creation, and the
  141. `name` property is automatically generated from the rule's properties, as
  142. shown above. These rules can be found within each Firewall (i.e. Security
  143. Group) in the AWS EC2 portal, and will not have any name in the AWS dashboard