edit-icon download-icon

ALIYUN::ECS::EIP

Last Updated: Jun 13, 2018

Description

Creates an Elastic IP (EIP).

Syntax

  1. {
  2. "Type" : "ALIYUN::ECS::EIP",
  3. "Properties" : {
  4. "Bandwidth" : String,
  5. "InternetChargeType" : String
  6. }
  7. }

Properties

Name Type Required Description Constraints
InternetChargeType String No Billing method. Valid values: PayByBandwidth, PayByTraffic. Default value: PayByBandwidth.
Bandwidth Number No Bandwidth of the EIP. Value range: [1, 200], unit: Mbps. Default value: 5 Mbps.

Return values

Fn::GetAtt

  • EipAddress: EIP.

  • AllocationId: The ID of the instance associated with the EIP.

Example

  1. {
  2. "ROSTemplateFormatVersion" : "2015-09-01",
  3. "Resources" : {
  4. "NewEip": {
  5. "Type": "ALIYUN::ECS::EIP",
  6. "Properties": {
  7. "Bandwidth" : 50
  8. }
  9. }
  10. },
  11. "Outputs": {
  12. "EipAddress": {
  13. "Value" : {"Fn::GetAtt": ["NewEip", "EipAddress"]}
  14. },
  15. "AllocationId": {
  16. "Value" : {"Fn::GetAtt": ["NewEip", "AllocationId"]}
  17. }
  18. }
  19. }
Thank you! We've received your feedback.