This is the new *CloudFormation Template Reference Guide*. Please update your bookmarks and links. For help getting started with CloudFormation, see the [AWS CloudFormation User Guide](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/Welcome.html). # AWS::EC2::RouteServerAssociation Specifies the association between a route server and a VPC. A route server association is the connection established between a route server and a VPC. ## Syntax To declare this entity in your CloudFormation template, use the following syntax: ### JSON ``` { "Type" : "AWS::EC2::RouteServerAssociation", "Properties" : { "[RouteServerId](#cfn-ec2-routeserverassociation-routeserverid)" : {{String}}, "[VpcId](#cfn-ec2-routeserverassociation-vpcid)" : {{String}} } } ``` ### YAML ``` Type: AWS::EC2::RouteServerAssociation Properties: [RouteServerId](#cfn-ec2-routeserverassociation-routeserverid): {{String}} [VpcId](#cfn-ec2-routeserverassociation-vpcid): {{String}} ``` ## Properties `RouteServerId` The ID of the associated route server. *Required*: Yes *Type*: String *Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement) `VpcId` The ID of the associated VPC. *Required*: Yes *Type*: String *Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement) ## Return values ### Ref When you pass the logical ID of this resource to the intrinsic `Ref` function, `Ref` returns the route server ID and VPC ID separated by the pipe symbol (\|).