Skip to content

Cloudformation BgpAsn on AWS::EC2::CustomerGateway

0

Hi Folks, I'm trying to create a site-to-site VPN using cloud formation template. when I try to create a customer gateway using AWS::EC2::CustomerGateway, on of the properties BgpAsn. According to the documentation, BgpAsn is not required. But when I don't include BgpAsn, the customer gateway creation failed. Thanks for all the help

1 Answer
1

Hello.

The parameter description is as follows:
I haven't seen the CloudFormation template you're using, so I can't say for sure, but aren't you trying to create it without also specifying "BgpAsnExtended"?
https://docs.aws.amazon.com/ja_jp/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-customergateway.html#cfn-ec2-customergateway-bgpasn

For customer gateway devices that support BGP, specify the device's ASN. You must specify either BgpAsn or BgpAsnExtended when creating the customer gateway. If the ASN is larger than 2,147,483,647, you must use BgpAsnExtended.

EXPERT

answered 2 years ago

EXPERT

reviewed 2 years ago

AWS
EXPERT

reviewed 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.