-
Notifications
You must be signed in to change notification settings - Fork 93
Update module to use the new container insights with CW for EKS #252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 51 commits
Commits
Show all changes
52 commits
Select commit
Hold shift + click to select a range
727674c
Adding Module and Example for ECS cluster monitoring with ecs_observer
ruchimo 1900fc8
Adding Module and Example for ECS cluster monitoring with ecs_observer
ruchimo 930721a
Merge branch 'main' into main
bonclay7 c1ac8b8
Incorporating PR comments
ruchimo 52c14f4
Merge branch 'main' of github.com:ruchimo/terraform-aws-observability…
ruchimo 5968b45
Merge branch 'main' into main
ruchimo e2e7af7
Restructuring Examples and modules folder for ECS, Added content in m…
ruchimo 3be9980
Merge branch 'main' of github.com:ruchimo/terraform-aws-observability…
ruchimo 0ef4294
Fixing path as per PR comments
ruchimo 6071dbd
Parameterzing the config files, incorporated PR review comments
ruchimo 63b1db9
Merge branch 'main' into main
bonclay7 3ca49bd
Adding condition for AMP WS and fixing AMP endpoint
ruchimo 54a2a28
Merge branch 'main' into main
bonclay7 ac1058d
Adding Document for ECS Monitoring and parameterized some variables
ruchimo 23c073a
Added sample dashboard
ruchimo c1d8303
Adding Document for ECS Monitoring and parameterized some variables
ruchimo 47be776
Merge branch 'main' of github.com:ruchimo/terraform-aws-observability…
ruchimo c272480
Merge branch 'main' into main
ruchimo b2ae876
Fixing failures detected by pre-commit
ruchimo 298c7d5
Merge branch 'main' of github.com:ruchimo/terraform-aws-observability…
ruchimo a94d212
Merge branch 'main' into main
ruchimo 6170820
Fixing failures detected by pre-commit
ruchimo f591aff
Merge branch 'main' of github.com:ruchimo/terraform-aws-observability…
ruchimo 2343c10
Merge branch 'main' into main
ruchimo 47364af
Merge branch 'main' into main
bonclay7 bf318db
Merge branch 'main' into main
bonclay7 86ebf4e
Fixing failures detected by pre-commit
ruchimo 70f7e44
Pre-commit fixes
bonclay7 bdcdc0d
Fixing failures detected by pre-commit
ruchimo 289a01d
Merge branch 'main' of github.com:ruchimo/terraform-aws-observability…
ruchimo 90ffa83
Fixing failures detected by pre-commit
ruchimo 4440d0c
Pre-commit
bonclay7 0f126e7
Fixing HIGH security alerts detected by pre-commit
ruchimo d4d7c8e
Merge branch 'main' of github.com:ruchimo/terraform-aws-observability…
ruchimo a1c1821
Fixing HIGH security alerts detected by pre-commit
ruchimo 59355d6
Fixing HIGH security alerts detected by pre-commit, 31stOct
ruchimo 8919e6c
Add links after merge
bonclay7 382987b
2ndNov - Added condiotnal creation for Grafana WS and module versions…
ruchimo 3be1fb8
Merge branch 'aws-observability:main' into main
ruchimo 23f0dd4
Module to use the new container insights with CW for EKS
ruchimo c35659c
Module to use the new container insights with CW for EKS
ruchimo 44dc712
Fixing precommit error
ruchimo 735ddc7
Updating EKS container insights to replace deamonset with tf resource
ruchimo 34242cb
Updating EKS container insights to replace deamonset with tf resource
ruchimo 2367fee
Updating EKS container insights to replace deamonset with tf resource
ruchimo 4293579
Updating EKS container insights to replace deamonset with tf resource
ruchimo 1bf4f97
Updating EKS container insights- Adding doc and fixing pre-commit errors
ruchimo c609376
Update Images in the doc
ruchimo ce8950e
Update data.tf pre-commit error
ruchimo 32ecaf3
Apply suggestions from code review
ruchimo 5ec274b
fixing broken hyperlink
ruchimo 83bad93
EKS Container Insights - updating docs and few varibaleable names, de…
ruchimo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
data "aws_partition" "current" {} | ||
data "aws_caller_identity" "current" {} | ||
data "aws_region" "current" {} | ||
|
||
data "aws_eks_cluster" "eks_cluster" { | ||
name = var.cluster_name | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,15 @@ | ||
data "aws_partition" "current" {} | ||
locals { | ||
name = "amazon-cloudwatch-observability" | ||
kubernetes_version = var.eks_cluster_version | ||
eks_oidc_issuer_url = replace(data.aws_eks_cluster.eks_cluster.identity[0].oidc[0].issuer, "https://", "") | ||
|
||
data "aws_caller_identity" "current" {} | ||
|
||
data "aws_region" "current" {} | ||
|
||
data "aws_eks_cluster" "eks_cluster" { | ||
name = var.eks_cluster_id | ||
addon_context = { | ||
aws_caller_identity_account_id = data.aws_caller_identity.current.account_id | ||
aws_caller_identity_arn = data.aws_caller_identity.current.arn | ||
aws_partition_id = data.aws_partition.current.partition | ||
aws_region_name = data.aws_region.current.name | ||
eks_oidc_provider_arn = "arn:${data.aws_partition.current.partition}:iam::${data.aws_caller_identity.current.account_id}:oidc-provider/${local.eks_oidc_issuer_url}" | ||
eks_cluster_id = data.aws_eks_cluster.eks_cluster.id | ||
tags = var.tags | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,7 @@ | ||
provider "aws" { | ||
region = var.aws_region | ||
} | ||
|
||
provider "kubernetes" { | ||
host = local.eks_cluster_endpoint | ||
cluster_ca_certificate = base64decode(data.aws_eks_cluster.eks_cluster.certificate_authority[0].data) | ||
exec { | ||
api_version = "client.authentication.k8s.io/v1beta1" | ||
args = ["eks", "get-token", "--cluster-name", var.eks_cluster_id] | ||
command = "aws" | ||
} | ||
} | ||
|
||
provider "helm" { | ||
kubernetes { | ||
host = local.eks_cluster_endpoint | ||
cluster_ca_certificate = base64decode(data.aws_eks_cluster.eks_cluster.certificate_authority[0].data) | ||
exec { | ||
api_version = "client.authentication.k8s.io/v1beta1" | ||
args = ["eks", "get-token", "--cluster-name", var.eks_cluster_id] | ||
command = "aws" | ||
} | ||
} | ||
} | ||
|
||
|
||
# Deploy the ADOT Container Insights | ||
|
||
module "eks_container_insights" { | ||
source = "../../modules/eks-container-insights" | ||
# source = "github.com/aws-observability/terraform-aws-observability-accelerator//modules/eks-container-insights?ref=v2.5.4" | ||
eks_cluster_id = var.eks_cluster_id | ||
source = "../../modules/eks-container-insights" | ||
cluster_name = var.cluster_name | ||
enable_amazon_eks_cw_observability = true | ||
create_cloudwatch_observability_irsa_role = true | ||
eks_oidc_provider_arn = local.addon_context.eks_oidc_provider_arn | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
data "aws_partition" "current" {} | ||
data "aws_caller_identity" "current" {} | ||
data "aws_region" "current" {} | ||
|
||
data "aws_eks_cluster" "eks_cluster" { | ||
name = var.cluster_name | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.