Skip to content

Commit

Permalink
Adding tags for Log groups and workers IAM role (terraform-aws-module…
Browse files Browse the repository at this point in the history
…s#448)

* Adding tags for Cloudwatch log group

* Adding tags for workers IAM role

* Update CHANGELOG.md

* Removing change in CHANGELOG.md

* Fixing formatting issues
  • Loading branch information
lucas-giaco authored and max-rocket-internet committed Aug 6, 2019
1 parent ac62edc commit ebac6c9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ project adheres to [Semantic Versioning](http://semver.org/).

### Added

- Added support for log group tag in `./cluster.tf` (@lucas-giaco)
- Added support for workers iam role tag in `./workers.tf` (@lucas-giaco)
- Write your awesome addition here (by @you)
- Added `required_providers` to enforce provider minimum versions (by @dpiddockcmp)

Expand Down
1 change: 1 addition & 0 deletions cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ resource "aws_cloudwatch_log_group" "this" {
name = "/aws/eks/${var.cluster_name}/cluster"
retention_in_days = var.cluster_log_retention_in_days
kms_key_id = var.cluster_log_kms_key_id
tags = var.tags
}

resource "aws_eks_cluster" "this" {
Expand Down
1 change: 1 addition & 0 deletions workers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ resource "aws_iam_role" "workers" {
permissions_boundary = var.permissions_boundary
path = var.iam_path
force_detach_policies = true
tags = var.tags
}

resource "aws_iam_instance_profile" "workers" {
Expand Down

0 comments on commit ebac6c9

Please sign in to comment.