Remove terraform.tfvars from example (#150)

* Remove terraform.tfvars, use variables.tf for defaults

* Run pre-commit

---------

Co-authored-by: gjohnson <garrjh@amazon.com>
Co-authored-by: Rodrigue Koffi <bonclay7@users.noreply.github.com>
This commit is contained in:
Garrett Johnson
2023-04-13 06:21:19 -04:00
committed by GitHub
parent f708659758
commit eb5f294606
3 changed files with 4 additions and 10 deletions
@@ -43,7 +43,8 @@ To run this example, you need to provide your EKS cluster name.
If you don't have a cluster ready, visit [this example](../eks-cluster-with-vpc)
first to create a new one.
Add your cluster name for `eks_cluster_id="..."` to the `terraform.tfvars` or use an environment variable `export TF_VAR_eks_cluster_id=xxx`.
Add your cluster name for `eks_cluster_id="..."` to a new `terraform.tfvars` file
or use an environment variable `export TF_VAR_eks_cluster_id=xxx`.
4. Amazon Managed Grafana workspace
@@ -170,7 +171,7 @@ terraform destroy -var-file=terraform.tfvars
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| <a name="input_aws_region"></a> [aws\_region](#input\_aws\_region) | AWS Region | `string` | n/a | yes |
| <a name="input_eks_cluster_id"></a> [eks\_cluster\_id](#input\_eks\_cluster\_id) | Name of the EKS cluster | `string` | n/a | yes |
| <a name="input_eks_cluster_id"></a> [eks\_cluster\_id](#input\_eks\_cluster\_id) | Name of the EKS cluster | `string` | `"eks-cluster-with-vpc"` | no |
| <a name="input_enable_dashboards"></a> [enable\_dashboards](#input\_enable\_dashboards) | Enables or disables curated dashboards | `bool` | `true` | no |
| <a name="input_grafana_api_key"></a> [grafana\_api\_key](#input\_grafana\_api\_key) | API key for authorizing the Grafana provider to make changes to Amazon Managed Grafana | `string` | n/a | yes |
| <a name="input_managed_grafana_workspace_id"></a> [managed\_grafana\_workspace\_id](#input\_managed\_grafana\_workspace\_id) | Amazon Managed Grafana Workspace ID | `string` | n/a | yes |
@@ -1,8 +0,0 @@
# (mandatory) AWS Region where your resources will be located
aws_region = ""
# (mandatory) EKS Cluster name
eks_cluster_id = "eks-cluster-with-vpc"
# (optional) Leave it empty for a new workspace to be created
managed_prometheus_workspace_id = ""
@@ -1,6 +1,7 @@
variable "eks_cluster_id" {
description = "Name of the EKS cluster"
type = string
default = "eks-cluster-with-vpc"
}
variable "aws_region" {