Skip to content

Commit

Permalink
Undo examples/ dir generation.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffchao committed Jul 28, 2023
1 parent 1591eb0 commit 2bdaf0f
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 17 deletions.
3 changes: 2 additions & 1 deletion examples/provider/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ terraform {
required_providers {
abbey = {
source = "abbeylabs/abbey"
version = "2.2.1"
version = "0.2.4"
}
}
}

provider "abbey" {
# Configuration options
bearer_auth = "<token>"
}
6 changes: 3 additions & 3 deletions examples/resources/abbey_demo/resource.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resource "abbey_demo" "my_demo" {
email = "Larue_Rau85@yahoo.com"
permission = "read_write"
}
permission = "read_write"
email = "alice@example.com"
}
45 changes: 36 additions & 9 deletions examples/resources/abbey_grant_kit/resource.tf
Original file line number Diff line number Diff line change
@@ -1,9 +1,36 @@
resource "abbey_grant_kit" "my_grantkit" {
description = "...my_description..."
name = "Dallas Kassulke"
output = {
append = "...my_append..."
location = "...my_location..."
overwrite = "...my_overwrite..."
}
}
resource "abbey_grant_kit" "my_grant_kit" {
name = "my_grant_kit"
description = "My description."

workflow = {
steps = [
{
reviewers = {
one_of = ["alice@example.com"]
}
},
{
reviewers = {
all_of = ["bob@example.com", "carol@example.com"]
}
skip_if = [
{ bundle = "github://my-org/my-repo/policies/on-call-overrides" }
]
}
]
}

policies = [
{ bundle = "github://my-org/my-repo/policies/common" }
]

output = {
location = "github://my-org/my-repo/access.tf"
append = <<-EOT
resource "abbey_demo" "my_demo" {
permission = "read_write"
email = "alice@example.com"
}
EOT
}
}
12 changes: 8 additions & 4 deletions examples/resources/abbey_identity/resource.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
resource "abbey_identity" "my_identity" {
abbey_account = "...my_abbey_account..."
metadata = "...my_metadata..."
source = "...my_source..."
}
abbey_account = "alice@example.com"
source = "mysource"
metadata = jsonencode(
{
"mykey" = "myvalue"
}
)
}

0 comments on commit 2bdaf0f

Please sign in to comment.