AWS Fundamentals Logo
AWS Fundamentals
AWS::VpcLattice::TargetGroup

VpcLattice TargetGroup

A target group is a collection of targets, or compute resources, that run your application or service. A target group can only be used by a single service.

Properties

5 configurable properties. 1 required. Click a row to see details.

Filter:
PropertyTypeFlags
Type
string
RequiredCreate-only
Config
TargetGroupConfig
Name
string
Create-only
Tags
Array<Tag>
Targets
Array<Target>

Return Values

Values returned after the resource is created. Access these with Fn::GetAtt.

AttributeTypeDescription
Arnstring-
CreatedAtstring-
Idstring-
LastUpdatedAtstring-
Statusstring-

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::VpcLattice::TargetGroup

Resources:
  MyResource:
    Type: AWS::VpcLattice::TargetGroup
    Properties:
      Type: "IP"
      Tags:
        - Key: Environment
          Value: Production
      Name: !Ref "AWS::StackName"

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

create

vpc-lattice:CreateTargetGroupvpc-lattice:GetTargetGroupvpc-lattice:RegisterTargetsvpc-lattice:ListTargetsvpc-lattice:ListTagsForResourcevpc-lattice:TagResourcevpc-lattice:UntagResourceec2:DescribeVpcs

read

vpc-lattice:GetTargetGroupvpc-lattice:ListTargetsvpc-lattice:ListTagsForResource

update

vpc-lattice:UpdateTargetGroupvpc-lattice:GetTargetGroupvpc-lattice:ListTargetsvpc-lattice:RegisterTargetsvpc-lattice:DeregisterTargetsec2:DescribeVpcsec2:DescribeInstancesec2:DescribeSubnets

delete

vpc-lattice:DeleteTargetGroupvpc-lattice:GetTargetGroupvpc-lattice:DeregisterTargetsvpc-lattice:ListTargetslambda:RemovePermission

list

vpc-lattice:ListTargetGroups

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

ServiceVpcLattice
Properties10
Required1
TaggingSupported
Primary IDArn

Supported Operations

CreateReadUpdateDeleteList

Immutable After Creation

These properties cannot be changed after the resource is created. Updating them triggers a replacement.

NameTypeConfig/PortConfig/IpAddressTypeConfig/ProtocolConfig/ProtocolVersionConfig/VpcIdentifierConfig/LambdaEventStructureVersion

External Links