This will be needed to make the initial tags. Once merged to main, I will tag with the same module revisions as what exists in the Fleet repo. We can then test the example module using the new settings. Once validated, we'll then update the main fleet repo to redirect here for /terraform and remove everything there. Anything referring to old tags will still work in-place. Additionally any website references will be updated as well to reflect these changes.
Kinesis Data Stream Logging Destination Setup
Usage
After ./target-account module is applied you might use this module in the following manner:
module "kinesis" {
source = "../../../../fleet/terraform/addons/byo-kinesis-logging-destination/kinesis"
kinesis_results_name = "testing-log-stream"
kinesis_status_name = "testing-log-stream"
kinesis_audit_name = "testing-log-stream"
iam_role_arn = "arn:aws:iam::123456789:role/terraform-20240524165353382600000001"
region = "us-east-2"
}
And then supply the outputs to the fleet_config definition:
fleet_config = {
image = local.fleet_image
extra_iam_policies = concat(module.kinesis.fleet_extra_iam_policies)
extra_environment_variables = merge(
local.extra_environment_variables,
module.kinesis.fleet_extra_environment_variables,
)
}
Requirements
| Name | Version |
|---|---|
| terraform | >= 1.3.7 |
| aws | >= 4.52.0 |
Providers
| Name | Version |
|---|---|
| aws | >= 4.52.0 |
Modules
No modules.
Resources
| Name | Type |
|---|---|
| aws_iam_policy.fleet-assume-role | resource |
| aws_iam_policy_document.fleet-assume-role | data source |
Inputs
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| iam_role_arn | IAM Role ARN to use for Kinesis destination logging | string |
n/a | yes |
| kinesis_audit_name | name of the kinesis data stream for fleet audit logs | string |
n/a | yes |
| kinesis_results_name | name of the kinesis data stream for osquery results logs | string |
n/a | yes |
| kinesis_status_name | name of the kinesis data stream for osquery status logs | string |
n/a | yes |
| region | region the target kinesis data stream(s) is in | string |
n/a | yes |
| sts_external_id | Optional unique identifier that can be used by the principal assuming the role to assert its identity. | string |
"" |
no |
Outputs
| Name | Description |
|---|---|
| fleet_extra_environment_variables | n/a |
| fleet_extra_iam_policies | n/a |