Skip to content

Commit

Permalink
updating sensor IAM to output the role name and updated the example t…
Browse files Browse the repository at this point in the history
…o correctly use the name instead of ARN
  • Loading branch information
thathaneydude committed May 29, 2024
1 parent 93f8da0 commit cac800b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/deployment/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ module "sensor_iam" {

resource "aws_iam_instance_profile" "corelight_sensor" {
name = "corelight-sensor-profile"
role = module.sensor_iam.sensor_role_arn
role = module.sensor_iam.sensor_role_name

tags = local.tags
}
Expand Down
4 changes: 4 additions & 0 deletions modules/sensor_iam/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
output "sensor_role_name" {
value = aws_iam_role.corelight_sensor_role.name
}

output "sensor_role_arn" {
value = aws_iam_role.corelight_sensor_role.arn
}
Expand Down

0 comments on commit cac800b

Please sign in to comment.