Managing AWS S3 Log Sources with Terraform
Manage S3 log sources as code in Terraform
Overview
How to define your Panther S3 log source in Terraform
Prerequisite
Step 1: Define variables
variable "aws_account_id" {
type = string
description = "The AWS account ID where the template is being deployed"
}
variable "panther_aws_account_id" {
type = string
description = "The AWS account ID of your Panther instance"
}
variable "panther_aws_region" {
type = string
default = "us-east-1"
description = "The region where the Panther instance is deployed"
}
variable "panther_aws_partition" {
type = string
default = "aws"
description = "AWS partition of the account running the Panther backend e.g aws, aws-cn, or aws-us-gov"
}
variable "s3_bucket_name" {
type = string
description = "The S3 Bucket name to onboard"
}
variable "log_source_name" {
type = string
description = "The name of the log source to be created in Panther"
}
variable "panther_api_token" {
type = string
}
variable "panther_api_url" {
type = string
}Step 2: Provide values for the defined variables
Step 3: Define Terraform providers
Step 4: Define AWS infrastructure

Define S3 bucket
Define SNS topic
Step 5: Define Panther S3 log source
Last updated
Was this helpful?

