Skip to content

Commit 1e7ec88

Browse files
committed
docs: add schema v3 example for service definition YAML
- Add comprehensive v3 schema example in resource.tf - Include v3-specific fields like tier, lifecycle, application, description - Demonstrate proper v3 syntax and structure for users - Maintain consistency with existing v2.x examples
1 parent 2de60f9 commit 1e7ec88

File tree

1 file changed

+52
-0
lines changed
  • examples/resources/datadog_service_definition_yaml

1 file changed

+52
-0
lines changed

examples/resources/datadog_service_definition_yaml/resource.tf

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,55 @@
1+
// Service Definition with v3 Schema Definition
2+
resource "datadog_service_definition_yaml" "service_definition_v3" {
3+
service_definition = <<EOF
4+
schema-version: v3
5+
dd-service: shopping-cart
6+
team: e-commerce-team
7+
contacts:
8+
- name: Support Email
9+
type: email
10+
11+
- name: Support Slack
12+
type: slack
13+
contact: https://www.slack.com/archives/shopping-cart
14+
description: shopping cart service responsible for managing shopping carts
15+
tier: high
16+
lifecycle: production
17+
application: e-commerce
18+
languages:
19+
- go
20+
- python
21+
type: web
22+
ci-pipeline-fingerprints:
23+
- fp1
24+
- fp2
25+
links:
26+
- name: shopping-cart runbook
27+
type: runbook
28+
url: https://runbook/shopping-cart
29+
- name: shopping-cart architecture
30+
type: doc
31+
provider: gdoc
32+
url: https://google.drive/shopping-cart-architecture
33+
- name: shopping-cart service Wiki
34+
type: doc
35+
provider: wiki
36+
url: https://wiki/shopping-cart
37+
- name: shopping-cart source code
38+
type: repo
39+
provider: github
40+
url: http://github/shopping-cart
41+
tags:
42+
- business-unit:retail
43+
- cost-center:engineering
44+
integrations:
45+
pagerduty:
46+
service-url: https://www.pagerduty.com/service-directory/Pshopping-cart
47+
extensions:
48+
mycompany.com/shopping-cart:
49+
customField: customValue
50+
EOF
51+
}
52+
153
// Service Definition with v2.2 Schema Definition
254
resource "datadog_service_definition_yaml" "service_definition_v2_2" {
355
service_definition = <<EOF

0 commit comments

Comments
 (0)