Skip to content
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

Adding a variabe to use an aws role without creating one #74

Merged
merged 5 commits into from
Apr 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cloud_AWS/terraform/module/cloudexport.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ resource "kentik-cloudexport_item" "aws_export" {
for bucketobject in aws_s3_bucket.vpc_logs :
(var.s3_flowlogs_path == "" ? bucketobject.bucket : "${bucketobject.bucket}/${var.s3_flowlogs_path}")
])
iam_role_arn = var.create_role ? aws_iam_role.kentik_role[0].arn : ""
iam_role_arn = var.create_role ? aws_iam_role.kentik_role[0].arn : var.aws_iam_role_no_create
region = var.region
delete_after_read = var.delete_after_read
multiple_buckets = var.multiple_buckets
Expand Down
6 changes: 6 additions & 0 deletions cloud_AWS/terraform/module/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,9 @@ variable "external_id" {
type = string
default = ""
}

variable "aws_iam_role_no_create" {
description = "AWS Role to use if create role is false"
type = string
default = ""
}
Loading