add cloudwatch log group access (#410)

* add cloudwatch log group access

* update readme for outputs

* update outputs

* fix formatting

* add splat for access to name
This commit is contained in:
gbooth27
2019-06-25 08:04:01 -07:00
committed by Max Williams
parent 069c2da770
commit f1041af57c
3 changed files with 7 additions and 0 deletions

View File

@@ -12,6 +12,7 @@ project adheres to [Semantic Versioning](http://semver.org/).
### Added ### Added
- Option to set a KMS key for the log group and encrypt it (by @till-krauss) - Option to set a KMS key for the log group and encrypt it (by @till-krauss)
- Output the name of the cloudwatch log group (by @gbooth27)
- Write your awesome addition here (by @you) - Write your awesome addition here (by @you)
### Changed ### Changed

View File

@@ -167,6 +167,7 @@ MIT Licensed. See [LICENSE](https://github.com/terraform-aws-modules/terraform-a
| cluster\_id | The name/id of the EKS cluster. | | cluster\_id | The name/id of the EKS cluster. |
| cluster\_security\_group\_id | Security group ID attached to the EKS cluster. | | cluster\_security\_group\_id | Security group ID attached to the EKS cluster. |
| cluster\_version | The Kubernetes server version for the EKS cluster. | | cluster\_version | The Kubernetes server version for the EKS cluster. |
| cloudwatch\_log\_group\_name | The name of the cloudwatch log group created for the EKS cluster. |
| config\_map\_aws\_auth | A kubernetes configuration to authenticate to this EKS cluster. | | config\_map\_aws\_auth | A kubernetes configuration to authenticate to this EKS cluster. |
| kubeconfig | kubectl config file contents for this EKS cluster. | | kubeconfig | kubectl config file contents for this EKS cluster. |
| kubeconfig\_filename | The filename of the generated kubectl config. | | kubeconfig\_filename | The filename of the generated kubectl config. |

View File

@@ -43,6 +43,11 @@ output "cluster_iam_role_arn" {
value = local.cluster_iam_role_arn value = local.cluster_iam_role_arn
} }
output "cloudwatch_log_group_name" {
description = "Name of cloudwatch log group created"
value = aws_cloudwatch_log_group.this.*.name
}
output "kubeconfig" { output "kubeconfig" {
description = "kubectl config file contents for this EKS cluster." description = "kubectl config file contents for this EKS cluster."
value = data.template_file.kubeconfig.rendered value = data.template_file.kubeconfig.rendered