Skip to content

Commit c789806

Browse files
committed
Example code update for newer versions of terraform
1 parent efbada8 commit c789806

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
example.tf
55
terraform.tfplan
66
terraform.tfstate
7+
.terraform.lock.hcl
78
bin/
89
dist/
910
modules-dev/

website/docs/index.html.markdown

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@ Use the navigation to the left to read about the available resources.
1616

1717
```hcl
1818
# Configure the PagerDuty provider
19+
terraform {
20+
required_providers {
21+
pagerduty = {
22+
source = "pagerduty/pagerduty"
23+
}
24+
}
25+
}
26+
1927
provider "pagerduty" {
2028
token = var.pagerduty_token
2129
}

0 commit comments

Comments
 (0)