edit-icon download-icon

ALIYUN::ECS::ForwardEntry

Last Updated: Mar 26, 2018

The ALIYUN::ECS::ForwardEntry type is used to configure the port forwarding table of the NAT gateway.

Syntax

  1. {
  2. "Type" : "ALIYUN::ECS::ForwardEntry",
  3. "Properties" : {
  4. "ExternalIp" : String,
  5. "ExternalPort" : String,
  6. "ForwardTableId" : String,
  7. "InternalIp" : String,
  8. "IpProtocol" : String,
  9. "InternalPort" : String,
  10. }
  11. }

Attributes

Attribute name Type Required? Description Constraint
ExternalIp string Yes Source IP address in the port forwarding rule. It must be an IP address included in the shared bandwidth package of the NAT gateway to which the port forwarding table belongs.
ExternalPort string Yes Source port Value range: 1–65,535, and Any.
ForwardTableId string Yes ID of the port forwarding table N/A
InternalIp string Yes Target IP address in the port forwarding rule The IP address is a private IP address.
IpProtocol string Yes Protocol type Value options: TCP, UDP, and Any.
InternalPort string Yes Target port Value range: 1–65,535, and Any.

Return values

Fn::GetAtt

ForwardEntryId: entry IDs in the port forwarding table.

Example

  1. {
  2. "ROSTemplateFormatVersion" : "2015-09-01",
  3. "Resources" : {
  4. "ForwardEntry": {
  5. "Type": "ALIYUN::ECS::ForwardEntry",
  6. "Properties": {
  7. "ForwardTableId": "my_forwardtable",
  8. "ExternalIp": "101.201.34.148",
  9. "ExternalPort": "8080",
  10. "IpProtocol": "TCP",
  11. "InternalIp": "10.2.21.8",
  12. "InternalPort": "80"
  13. }
  14. }
  15. },
  16. "Outputs": {
  17. "ForwardEntryId": {
  18. "Value" : {"Fn::GetAttr": ["ForwardEntry","ForwardEntryId"]}
  19. }
  20. }
  21. }
Thank you! We've received your feedback.