aws_mapping.rst 9.1 KB

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