AWS::VpcLattice::ListenerCreates a listener for a service. Before you start using your Amazon VPC Lattice service, you must add one or more listeners. A listener is a process that checks for connection requests to your services.
6 configurable properties. 2 required. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
DefaultAction | DefaultAction | Required |
Protocol | string | RequiredCreate-only |
Name | string | Create-only |
Port | integer | Create-only |
ServiceIdentifier | string | Create-onlyWrite-only |
Tags | Array<Tag> |
Values returned after the resource is created. Access these with Fn::GetAtt.
| Attribute | Type | Description |
|---|---|---|
Arn | string | - |
Id | string | - |
ServiceArn | string | - |
ServiceId | string | - |
A minimal template with required properties and common optional ones.
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::VpcLattice::Listener
Resources:
MyResource:
Type: AWS::VpcLattice::Listener
Properties:
DefaultAction: "value"
Protocol: "HTTP"
Tags:
- Key: Environment
Value: Production
Name: !Ref "AWS::StackName"Permissions CloudFormation needs in your IAM role to manage this resource.
vpc-lattice:CreateListenervpc-lattice:TagResourcevpc-lattice:GetListenervpc-lattice:ListTagsForResourcevpc-lattice:GetListenervpc-lattice:ListTagsForResourcevpc-lattice:UpdateListenervpc-lattice:TagResourcevpc-lattice:UntagResourcevpc-lattice:GetListenervpc-lattice:ListTagsForResourcevpc-lattice:DeleteListenervpc-lattice:ListListenersOur bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to NewsletterArnThese properties cannot be changed after the resource is created. Updating them triggers a replacement.
ServiceIdentifierNamePortProtocol