AWS Fundamentals Logo
AWS Fundamentals
AWS::ServiceDiscovery::Service

ServiceDiscovery Service

Resource Type definition for AWS::ServiceDiscovery::Service

Properties

9 configurable properties. Click a row to see details.

Filter:
PropertyTypeFlags
Description
string
DnsConfig
DnsConfig
HealthCheckConfig
HealthCheckConfig
HealthCheckCustomConfig
HealthCheckCustomConfig
Create-only
Name
string
Create-only
NamespaceId
string
Create-only
ServiceAttributes
object
Tags
Array<Tag>
Type
string
Create-only

Return Values

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

AttributeTypeDescription
ArnstringThe Amazon Resource Name (ARN) of the service.
IdstringThe unique identifier for the service.

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::ServiceDiscovery::Service

Resources:
  MyResource:
    Type: AWS::ServiceDiscovery::Service
    Properties:
      Tags:
        - Key: Environment
          Value: Production
      Description: !Ref "AWS::StackName"
      Name: !Ref "AWS::StackName"

Required IAM Permissions

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

create

servicediscovery:CreateServiceservicediscovery:TagResourceservicediscovery:UntagResourceservicediscovery:ListTagsForResourceservicediscovery:GetServiceservicediscovery:ListServicesservicediscovery:UpdateServiceAttributesservicediscovery:GetServiceAttributes

delete

servicediscovery:DeleteServiceservicediscovery:GetService

list

servicediscovery:ListServicesservicediscovery:GetServiceAttributes

read

servicediscovery:GetServiceservicediscovery:ListTagsForResourceservicediscovery:GetServiceAttributes

update

servicediscovery:UpdateServiceservicediscovery:TagResourceservicediscovery:UntagResourceservicediscovery:GetServiceservicediscovery:GetOperationservicediscovery:ListTagsForResourceservicediscovery:GetNamespaceservicediscovery:DeleteServiceAttributesservicediscovery:UpdateServiceAttributesservicediscovery:GetServiceAttributes

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

ServiceServiceDiscovery
Properties11
Required0
TaggingSupported
Primary IDId

Supported Operations

CreateDeleteListReadUpdate

Immutable After Creation

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

HealthCheckCustomConfigNameTypeNamespaceId

External Links