AWS::ServiceDiscovery::ServiceResource Type definition for AWS::ServiceDiscovery::Service
9 configurable properties. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
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 |
Values returned after the resource is created. Access these with Fn::GetAtt.
| Attribute | Type | Description |
|---|---|---|
Arn | string | The Amazon Resource Name (ARN) of the service. |
Id | string | The unique identifier for the service. |
A minimal template with required properties and common optional ones.
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"Permissions CloudFormation needs in your IAM role to manage this resource.
servicediscovery:CreateServiceservicediscovery:TagResourceservicediscovery:UntagResourceservicediscovery:ListTagsForResourceservicediscovery:GetServiceservicediscovery:ListServicesservicediscovery:UpdateServiceAttributesservicediscovery:GetServiceAttributesservicediscovery:DeleteServiceservicediscovery:GetServiceservicediscovery:ListServicesservicediscovery:GetServiceAttributesservicediscovery:GetServiceservicediscovery:ListTagsForResourceservicediscovery:GetServiceAttributesservicediscovery:UpdateServiceservicediscovery:TagResourceservicediscovery:UntagResourceservicediscovery:GetServiceservicediscovery:GetOperationservicediscovery:ListTagsForResourceservicediscovery:GetNamespaceservicediscovery:DeleteServiceAttributesservicediscovery:UpdateServiceAttributesservicediscovery:GetServiceAttributesOur bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to NewsletterIdThese properties cannot be changed after the resource is created. Updating them triggers a replacement.
HealthCheckCustomConfigNameTypeNamespaceId