Skip to content

Commit

Permalink
add edge deployment examples to main.tf (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnps authored Mar 16, 2023
1 parent 5a8a8d4 commit 321b0c2
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
terraform {
required_providers {
sigsci = {
source = "signalsciences/sigsci"
version = "1.2.1"
source = "signalsciences/sigsci"
}
}
}
Expand All @@ -15,6 +14,7 @@ provider "sigsci" {
// email = "" // Required. may also provide via env variable SIGSCI_EMAIL
// auth_token = "" //may also provide via env variable SIGSCI_TOKEN
// password = "" //may also provide via env variable SIGSCI_PASSWORD
// fastly_key = "" //may also provide via env variable FASTLY_KEY. Required for Edge Deployments functionality.
}

############# Corp Level Resources #############
Expand Down Expand Up @@ -388,3 +388,12 @@ cX4iWLb38v7KEornZfofXEw=
-----END PRIVATE KEY-----
PRIVATEKEY
}

resource "sigsci_edge_deployment" "edge" {
site_short_name = sigsci_site.my-site.short_name
}

resource "sigsci_edge_deployment_service" "edge" {
site_short_name = sigsci_site.my-site.short_name
fastly_sid = "[Fastly service id]"
}

0 comments on commit 321b0c2

Please sign in to comment.