Skip to content

Commit

Permalink
Merge pull request #32 from common-fate/add-terraform-output
Browse files Browse the repository at this point in the history
Add Terraform Output resource
  • Loading branch information
chrnorm authored Aug 5, 2024
2 parents e04ba1e + 2d2cc29 commit 29678e5
Show file tree
Hide file tree
Showing 13 changed files with 371 additions and 213 deletions.
26 changes: 26 additions & 0 deletions docs/data-sources/deployment.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "deploymeta_deployment Data Source - deploymeta"
subcategory: ""
description: |-
Metadata about the current Common Fate deployment.
---

# deploymeta_deployment (Data Source)

Metadata about the current Common Fate deployment.

## Example Usage

```terraform
data "deploymeta_deployment" "this" {}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Read-Only

- `default_subdomain` (String) The default DNS subdomain associated with the deployment
- `dns_zone_name` (String) The default DNS zone name associated with the deployment
- `id` (String) The deployment ID
30 changes: 0 additions & 30 deletions docs/data-sources/example.md

This file was deleted.

26 changes: 0 additions & 26 deletions docs/functions/example.md

This file was deleted.

32 changes: 28 additions & 4 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,50 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "scaffolding Provider"
page_title: "deploymeta Provider"
subcategory: ""
description: |-
---

# scaffolding Provider
# deploymeta Provider



## Example Usage

```terraform
provider "scaffolding" {
terraform {
required_providers {
commonfatedeployment = {
source = "common-fate/deploymeta"
version = "0.1.0"
}
}
}
provider "deploymeta" {
# example configuration here
deployment_name = "dev"
licence_key = "XXX"
}
data "deploymeta_deployment" "this" {}
output "deployment_id" {
value = data.deploymeta_deployment.this.id
}
# resource "commonfatedeployment_monitoring_write_token" "main" {}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `licence_key` (String) The Common Fate licence key.

### Optional

- `endpoint` (String) Example provider attribute
- `base_url` (String) The Common Fate Factory base URL. Defaults to https://factory.commonfate.io.
27 changes: 27 additions & 0 deletions docs/resources/dns_record.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "deploymeta_dns_record Resource - deploymeta"
subcategory: ""
description: |-
Registers DNS records for a Common Fate deployment.
---

# deploymeta_dns_record (Resource)

Registers DNS records for a Common Fate deployment.



<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `name` (String) The DNS record name
- `type` (String) The DNS record type. Must be one of ['TXT', 'CNAME']
- `values` (Set of String) The DNS record values
- `zone_name` (String) The DNS zone name

### Read-Only

- `id` (String) The DNS record ID
31 changes: 0 additions & 31 deletions docs/resources/example.md

This file was deleted.

30 changes: 30 additions & 0 deletions docs/resources/terraform_output.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "deploymeta_terraform_output Resource - deploymeta"
subcategory: ""
description: |-
Registers Terraform outputs for a Common Fate deployment.
---

# deploymeta_terraform_output (Resource)

Registers Terraform outputs for a Common Fate deployment.



<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `cli_client_id` (String) The CLI client ID
- `cognito_user_pool_id` (String) The Cognito user pool ID
- `dns_cname_record_for_app_domain` (String) The DNS CNAME record for the app domain
- `dns_cname_record_for_auth_domain` (String) The DNS CNAME record for the auth domain
- `provisioner_client_id` (String) The Provisioner client ID
- `read_only_client_id` (String) The Read-Only client ID
- `saml_sso_acs_url` (String) The SAML SSO ACS URL
- `saml_sso_entity_id` (String) The SAML SSO Entity ID
- `terraform_client_id` (String) The Terraform client ID
- `vpc_id` (String) The VPC ID
- `web_client_id` (String) The web console client ID
28 changes: 6 additions & 22 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ toolchain go1.22.1

require (
connectrpc.com/connect v1.14.0
github.com/common-fate/sdk v1.32.2-0.20240520143610-f8aecacba173
github.com/common-fate/sdk v1.51.2-0.20240805112400-843ff371965e
github.com/hashicorp/terraform-plugin-docs v0.19.1
github.com/hashicorp/terraform-plugin-framework v1.8.0
github.com/hashicorp/terraform-plugin-go v0.22.2
Expand All @@ -22,23 +22,9 @@ require (
github.com/ProtonMail/go-crypto v1.1.0-alpha.2 // indirect
github.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect
github.com/armon/go-radix v1.0.0 // indirect
github.com/aws/aws-sdk-go-v2 v1.26.1 // indirect
github.com/aws/aws-sdk-go-v2/config v1.27.11 // indirect
github.com/aws/aws-sdk-go-v2/credentials v1.17.11 // indirect
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.1 // indirect
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.5 // indirect
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.5 // indirect
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.0 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.2 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.7 // indirect
github.com/aws/aws-sdk-go-v2/service/sso v1.20.5 // indirect
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.23.4 // indirect
github.com/aws/aws-sdk-go-v2/service/sts v1.28.6 // indirect
github.com/aws/smithy-go v1.20.2 // indirect
github.com/bgentry/speakeasy v0.1.0 // indirect
github.com/bmatcuk/doublestar/v4 v4.6.1 // indirect
github.com/cloudflare/circl v1.3.7 // indirect
github.com/common-fate/cloudproof v0.1.1 // indirect
github.com/fatih/color v1.16.0 // indirect
github.com/golang/protobuf v1.5.4 // indirect
github.com/google/uuid v1.6.0 // indirect
Expand Down Expand Up @@ -75,14 +61,12 @@ require (
github.com/yuin/goldmark-meta v1.1.0 // indirect
github.com/zclconf/go-cty v1.14.4 // indirect
go.abhg.dev/goldmark/frontmatter v0.2.0 // indirect
golang.org/x/crypto v0.21.0 // indirect
golang.org/x/crypto v0.24.0 // indirect
golang.org/x/exp v0.0.0-20230809150735-7b3493d9a819 // indirect
golang.org/x/mod v0.16.0 // indirect
golang.org/x/net v0.23.0 // indirect
golang.org/x/oauth2 v0.17.0 // indirect
golang.org/x/sys v0.18.0 // indirect
golang.org/x/text v0.14.0 // indirect
google.golang.org/appengine v1.6.8 // indirect
golang.org/x/mod v0.17.0 // indirect
golang.org/x/net v0.26.0 // indirect
golang.org/x/sys v0.21.0 // indirect
golang.org/x/text v0.16.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240227224415-6ceb2ff114de // indirect
google.golang.org/grpc v1.63.2 // indirect
google.golang.org/protobuf v1.33.0 // indirect
Expand Down
Loading

0 comments on commit 29678e5

Please sign in to comment.