Skip to content

Commit

Permalink
improve readme
Browse files Browse the repository at this point in the history
Signed-off-by: Luiz Oliveira <ziuloliveira@gmail.com>
  • Loading branch information
Ziul committed Oct 3, 2023
1 parent 57d46ac commit db77546
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 5 deletions.
18 changes: 15 additions & 3 deletions deploy/kubernetes/terraform/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,26 @@ This Terraform module enables easy creation of an Amazon Elastic Kubernetes Serv
terraform destroy
```
### State storage
This module uses S3 to store the Terraform state. You can check the details of that bucket at `backend` on file `provider.tf`.
## Input Variables
- `env_name` (string, optional): Sets the environment name (default: "development").
- `region` (string, optional): Defines the AWS region where the EKS cluster will be deployed (default: "us-east-2").
- `env_name` (string, optional): Sets the environment name (default: "dko-6").
- `region` (string, optional): Defines the AWS region where the EKS cluster will be deployed (default: "us-east-1").
- `enable_kubeshark`(string, optional): Enables Kubeshark installation (default: false)
- `enable_sock_shop`(string, optional): Enables Sock Shop installation (default: false)
- `enable_kube_prometheus_stack`(string, optional): Enables Prometheus Stack installation (default: true)
- `enable_aws_cloudwatch_metrics`(string, optional): Enables CloudWhatch installation (default: true)
- `enable_ingress_nginx`(string, optional): Enables Nginx installation (default: false)
- `role_name`(string, optional): Default arn role name to be include into admin team
## Output
This Terraform module does not produce any specific output, but it creates an EKS cluster in your AWS account.
- `region`: The region where the cluster was created
- `cluster_name`: The name of the cluster created
- `configure_kubectl`: An aws-cli command to help you setup your kubeconfig file
## Contributions
Expand Down
4 changes: 2 additions & 2 deletions deploy/kubernetes/terraform/addons.tf
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ module "admin_team" {
# Enables elevated, admin privileges for this team
enable_admin = true
users = [
# "arn:aws:iam::${data.aws_caller_identity.current.account_id}:role/${var.role_name}",
"arn:aws:iam::${data.aws_caller_identity.current.account_id}:role/${var.role_name}",
"arn:aws:iam::${data.aws_caller_identity.current.account_id}:user/alongir",
"arn:aws:iam::${data.aws_caller_identity.current.account_id}:user/Mert",
]
Expand All @@ -91,4 +91,4 @@ resource "kubectl_manifest" "sock_shop" {
yaml_body = templatefile("${path.module}/../complete-demo.yaml", {})
wait_for_rollout = true
count = var.enable_sock_shop ? 1 : 0
}
}
3 changes: 3 additions & 0 deletions deploy/kubernetes/terraform/eks.tf
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ module "eks" {
aws_auth_roles = flatten([
module.admin_team.aws_auth_configmap_role,
])
aws_auth_users = flatten([
module.admin_team.aws_auth_configmap_role,
])

tags = local.tags
}
Expand Down

0 comments on commit db77546

Please sign in to comment.