Skip to content

Commit

Permalink
docs and headers
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Cragun <[email protected]>
  • Loading branch information
ryancragun committed Jul 3, 2024
1 parent ec1736e commit 9c78bc2
Show file tree
Hide file tree
Showing 13 changed files with 34 additions and 12 deletions.
12 changes: 2 additions & 10 deletions docs/resources/vault_start.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ As such, you will need to provide _all_ values except for `seals` until we make
- `config.storage` (Object) The Vault [storage](https://developer.hashicorp.com/vault/docs/configuration/storage) stanza
- `config.storage.type` (String) The Vault [storage](https://developer.hashicorp.com/vault/docs/configuration/storage) type
- `config.storage.attributes` (Object) The Vault [storage](https://developer.hashicorp.com/vault/docs/configuration/storage) parameters for the given storage type
- `config.storage.retry_join` (Object) The Vault integrated storage [retry_join](https://developer.hashicorp.com/vault/docs/configuration/storage/raft#retry_join-stanza) stanza
- `config.seal` (Object) The Vault [seal](https://developer.hashicorp.com/vault/docs/configuration/seal) stanza
- `config.seal.type` (String) The Vault [seal](https://developer.hashicorp.com/vault/docs/configuration/seal) type
- `config.seal.attributes` (String) The Vault [seal](https://developer.hashicorp.com/vault/docs/configuration/seal) parameters for the given seal type
Expand Down Expand Up @@ -91,7 +92,7 @@ Required:
- `log_level` (String)
- `seal` (Object) (see [below for nested schema](#nestedobjatt--config--seal))
- `seals` (Dynamic)
- `storage` (Object) (see [below for nested schema](#nestedobjatt--config--storage))
- `storage` (Dynamic)
- `ui` (Boolean)

<a id="nestedobjatt--config--listener"></a>
Expand All @@ -110,12 +111,3 @@ Required:

- `attributes` (Dynamic)
- `type` (String)


<a id="nestedobjatt--config--storage"></a>
### Nested Schema for `config.storage`

Required:

- `attributes` (Dynamic)
- `type` (String)
3 changes: 3 additions & 0 deletions enos/modules/infra/data.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

data "aws_region" "current" {}

data "aws_caller_identity" "current" {}
Expand Down
3 changes: 3 additions & 0 deletions enos/modules/infra/kms.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

resource "aws_kms_key" "enos_key" {
description = "Enos Key"
deletion_window_in_days = 7
Expand Down
3 changes: 3 additions & 0 deletions enos/modules/infra/main.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

terraform {
required_version = ">= 1.1.2"
}
Expand Down
3 changes: 3 additions & 0 deletions enos/modules/infra/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

output "aws_region" {
description = "AWS Region for resources"
value = data.aws_region.current.name
Expand Down
3 changes: 3 additions & 0 deletions enos/modules/infra/testing.tfvars
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

project_name = "terraform-provider-enos"
environment = "ci"
common_tags = {
Expand Down
3 changes: 3 additions & 0 deletions enos/modules/infra/variables.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

variable "vpc_name" {
type = string
default = "enos-vpc"
Expand Down
3 changes: 3 additions & 0 deletions enos/modules/infra/vpc.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

resource "aws_vpc" "enos_vpc" {
cidr_block = var.vpc_cidr
# Enabled for RDS
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/hashicorp-forge/terraform-provider-enos

go 1.22.4
go 1.22

require (
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2
Expand Down
2 changes: 1 addition & 1 deletion internal/plugin/resource_vault_start.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ As such, you will need to provide _all_ values except for ^seals^ until we make
- ^config.storage^ (Object) The Vault [storage](https://developer.hashicorp.com/vault/docs/configuration/storage) stanza
- ^config.storage.type^ (String) The Vault [storage](https://developer.hashicorp.com/vault/docs/configuration/storage) type
- ^config.storage.attributes^ (Object) The Vault [storage](https://developer.hashicorp.com/vault/docs/configuration/storage) parameters for the given storage type
- ^config.storage.retry_join^ (List(Object)) The Vault integrated storage [retry_join](https://developer.hashicorp.com/vault/docs/configuration/storage/raft#retry_join-stanza) stanza
- ^config.storage.retry_join^ (Object) The Vault integrated storage [retry_join](https://developer.hashicorp.com/vault/docs/configuration/storage/raft#retry_join-stanza) stanza
- ^config.seal^ (Object) The Vault [seal](https://developer.hashicorp.com/vault/docs/configuration/seal) stanza
- ^config.seal.type^ (String) The Vault [seal](https://developer.hashicorp.com/vault/docs/configuration/seal) type
- ^config.seal.attributes^ (String) The Vault [seal](https://developer.hashicorp.com/vault/docs/configuration/seal) parameters for the given seal type
Expand Down
3 changes: 3 additions & 0 deletions internal/plugin/vault_config_block.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

package plugin

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/plugin/vault_config_seals.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

package plugin

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/plugin/vault_config_storage.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

package plugin

import (
Expand Down

0 comments on commit 9c78bc2

Please sign in to comment.