| « PreviousNext » | |
![]() ![]() ![]() | Did this page help you? Yes | No | Tell us about it... |
Creates a new Internet gateway in your AWS account. After creating the Internet gateway, you then attach it to a VPC.
{
"Type" : "AWS::EC2::InternetGateway",
"Properties" : {
"Tags" : [ { "Key" : "keyname1", "Value" : "value1" }, ... ]
}
} The tags you want to attach to this resource.
Type: A list of EC2 Tags.
Required: No.
Update requires: no interruption
When the logical ID of this resource is provided to the Ref intrinsic
function, it returns the resource name.
For more information about using the Ref function, see Ref.
{
"AWSTemplateFormatVersion" : "2010-09-09",
"Resources" : {
"myInternetGateway" : {
"Type" : "AWS::EC2::InternetGateway",
"Properties" : {
"Tags" : [ {"Key" : "foo", "Value" : "bar"}]
}
}
}
} CreateInternetGateway in the Amazon Elastic Compute Cloud API Reference.
Using Tags in the Amazon Elastic Compute Cloud User Guide.