Skip to content

Commit eb5f294

Browse files
gjohnsonbonclay7
andauthored
Remove terraform.tfvars from example (#150)
* Remove terraform.tfvars, use variables.tf for defaults * Run pre-commit --------- Co-authored-by: gjohnson <[email protected]> Co-authored-by: Rodrigue Koffi <[email protected]>
1 parent f708659 commit eb5f294

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

examples/existing-cluster-with-base-and-infra/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ To run this example, you need to provide your EKS cluster name.
4343
If you don't have a cluster ready, visit [this example](../eks-cluster-with-vpc)
4444
first to create a new one.
4545

46-
Add your cluster name for `eks_cluster_id="..."` to the `terraform.tfvars` or use an environment variable `export TF_VAR_eks_cluster_id=xxx`.
46+
Add your cluster name for `eks_cluster_id="..."` to a new `terraform.tfvars` file
47+
or use an environment variable `export TF_VAR_eks_cluster_id=xxx`.
4748

4849
4. Amazon Managed Grafana workspace
4950

@@ -170,7 +171,7 @@ terraform destroy -var-file=terraform.tfvars
170171
| Name | Description | Type | Default | Required |
171172
|------|-------------|------|---------|:--------:|
172173
| <a name="input_aws_region"></a> [aws\_region](#input\_aws\_region) | AWS Region | `string` | n/a | yes |
173-
| <a name="input_eks_cluster_id"></a> [eks\_cluster\_id](#input\_eks\_cluster\_id) | Name of the EKS cluster | `string` | n/a | yes |
174+
| <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 |
174175
| <a name="input_enable_dashboards"></a> [enable\_dashboards](#input\_enable\_dashboards) | Enables or disables curated dashboards | `bool` | `true` | no |
175176
| <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 |
176177
| <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 |

examples/existing-cluster-with-base-and-infra/terraform.tfvars

Lines changed: 0 additions & 8 deletions
This file was deleted.

examples/existing-cluster-with-base-and-infra/variables.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
variable "eks_cluster_id" {
22
description = "Name of the EKS cluster"
33
type = string
4+
default = "eks-cluster-with-vpc"
45
}
56

67
variable "aws_region" {

0 commit comments

Comments
 (0)