diff --git a/examples/provider/provider.tf b/examples/provider/provider.tf index 5ac1032..5fe44af 100755 --- a/examples/provider/provider.tf +++ b/examples/provider/provider.tf @@ -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 = "" } \ No newline at end of file diff --git a/examples/resources/abbey_demo/resource.tf b/examples/resources/abbey_demo/resource.tf index 9b02fe5..73f913a 100755 --- a/examples/resources/abbey_demo/resource.tf +++ b/examples/resources/abbey_demo/resource.tf @@ -1,4 +1,4 @@ resource "abbey_demo" "my_demo" { - email = "Larue_Rau85@yahoo.com" - permission = "read_write" - } \ No newline at end of file + permission = "read_write" + email = "alice@example.com" +} \ No newline at end of file diff --git a/examples/resources/abbey_grant_kit/resource.tf b/examples/resources/abbey_grant_kit/resource.tf index b267b05..7cf40c5 100755 --- a/examples/resources/abbey_grant_kit/resource.tf +++ b/examples/resources/abbey_grant_kit/resource.tf @@ -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..." - } - } \ No newline at end of file +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 + } +} \ No newline at end of file diff --git a/examples/resources/abbey_identity/resource.tf b/examples/resources/abbey_identity/resource.tf index ac0e26f..151f393 100755 --- a/examples/resources/abbey_identity/resource.tf +++ b/examples/resources/abbey_identity/resource.tf @@ -1,5 +1,9 @@ resource "abbey_identity" "my_identity" { - abbey_account = "...my_abbey_account..." - metadata = "...my_metadata..." - source = "...my_source..." - } \ No newline at end of file + abbey_account = "alice@example.com" + source = "mysource" + metadata = jsonencode( + { + "mykey" = "myvalue" + } + ) +} \ No newline at end of file