Skip to content

Commit

Permalink
Xray Take 2 (#1473)
Browse files Browse the repository at this point in the history
* Addin XRay IAM work for K8s

* Addin XRay IAM work for K8s

* moving these names back to local

---------

Co-authored-by: Ben Larabie <[email protected]>
  • Loading branch information
P0NDER0SA and ben851 authored Jul 26, 2024
1 parent 405014f commit e8887d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions aws/eks/iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ POLICY

#XRAY IAM
resource "aws_iam_role" "nodes_k8s_role" {
name = "nodes.k8s.cluster.${var.env}"
name = "nodes.k8s.cluster.local"
assume_role_policy = jsonencode({
Version = "2012-10-17"
Statement = [
Expand All @@ -475,7 +475,7 @@ resource "aws_iam_role" "nodes_k8s_role" {
}

resource "aws_iam_instance_profile" "nodes_k8s_instance_profile" {
name = "nodes.k8s.cluster.${var.env}"
name = "nodes.k8s.cluster.local"
role = aws_iam_role.nodes_k8s_role.name
}

Expand All @@ -492,7 +492,7 @@ resource "aws_iam_policy" "xray_policy" {
"xray:PutTelemetryRecords"
]
Resource = [
"arn:aws:iam::${var.account_id}:instance-profile/nodes.k8s.cluster.${var.env}"
"arn:aws:iam::${var.account_id}:instance-profile/nodes.k8s.cluster.local"
]
}
]
Expand Down

0 comments on commit e8887d0

Please sign in to comment.