Skip to content

Commit

Permalink
chore: initialize a terraform config
Browse files Browse the repository at this point in the history
  • Loading branch information
morgante committed Jun 30, 2024
1 parent 426bfdd commit 205eb3d
Show file tree
Hide file tree
Showing 8 changed files with 29,509 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .grit/workflows/stainless-gritql-generator/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.tfrc
*.lock.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# This is our baseline config
# We just use this as a sanity check and base for generating schemas.

# Configure the Cloudflare provider using the required_providers stanza
terraform {
required_providers {
cloudflare = {
source = "cloudflare/cloudflare"
version = "~> 4.0"
}
}
}

# Sample resource with block attributes
resource "cloudflare_access_application" "staging_app" {
zone_id = "0da42c8d2132a9ddaf714f9e7c920711"
name = "staging application"
domain = "staging.example.com"
type = "self_hosted"
session_duration = "24h"

# cors is a currently a block list
cors_headers = {
allowed_methods = "GET"
allowed_origins = "https://example.com"
allow_credentials = true
max_age = 10
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# This is our baseline config
# We just use this as a sanity check and base for generating schemas.

# Configure the Cloudflare provider using the required_providers stanza
terraform {
required_providers {
cloudflare = {
source = "cloudflare/cloudflare"
version = "~> 4.0"
}
}
}

# Sample resource with block attributes
resource "cloudflare_access_application" "staging_app" {
zone_id = "0da42c8d2132a9ddaf714f9e7c920711"
name = "staging application"
domain = "staging.example.com"
type = "self_hosted"
session_duration = "24h"

# cors is a currently a block list
cors_headers {
allowed_methods = ["GET", "POST", "OPTIONS"]
allowed_origins = ["https://example.com"]
allow_credentials = true
max_age = 10
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 29 additions & 0 deletions .grit/workflows/stainless-gritql-generator/config/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# This is our baseline config
# We just use this as a sanity check and base for generating schemas.

# Configure the Cloudflare provider using the required_providers stanza
terraform {
required_providers {
cloudflare = {
source = "cloudflare/cloudflare"
version = "~> 4.0"
}
}
}

# Sample resource with block attributes
resource "cloudflare_access_application" "staging_app" {
zone_id = "0da42c8d2132a9ddaf714f9e7c920711"
name = "staging application"
domain = "staging.example.com"
type = "self_hosted"
session_duration = "24h"

# cors is a currently a block list
cors_headers {
allowed_methods = ["GET", "POST", "OPTIONS"]
allowed_origins = ["https://example.com"]
allow_credentials = true
max_age = 10
}
}
Loading

0 comments on commit 205eb3d

Please sign in to comment.