Documentation ¶
Index ¶
- Constants
- Variables
- func Deploy() error
- func DockerBuild() (string, error)
- func DockerPush(ecrClient *ecr.ECR, imageRegistry, localImageID, tag string) (string, error)
- func PreCheck() error
- type Company
- type FirstUser
- type Infra
- type LogSubscriptions
- type Monitoring
- type PantherConfig
- type Setup
- type Web
Constants ¶
View Source
const ConfigFilepath = "deployments/panther_config.yml"
Variables ¶
View Source
var SupportedRegions = map[string]bool{ "ap-northeast-1": true, "ap-northeast-2": true, "ap-south-1": true, "ap-southeast-1": true, "ap-southeast-2": true, "ca-central-1": true, "eu-central-1": true, "eu-north-1": true, "eu-west-1": true, "eu-west-2": true, "eu-west-3": true, "sa-east-1": true, "us-east-1": true, "us-east-2": true, "us-west-1": true, "us-west-2": true, }
SupportedRegions is a set of region names where Panther can be deployed. Not all AWS services are available in every region. https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services
Functions ¶
func DockerPush ¶ added in v1.14.0
Build a personalized docker image from source and push it to the private image repo of the user
Types ¶
type Infra ¶
type Infra struct { BaseLayerVersionArns string `yaml:"BaseLayerVersionArns"` LoadBalancerSecurityGroupCidr string `yaml:"LoadBalancerSecurityGroupCidr"` LogProcessorLambdaMemorySize int `yaml:"LogProcessorLambdaMemorySize"` LogProcessorLambdaSQSReadBatchSize string `yaml:"LogProcessorLambdaSQSReadBatchSize"` PipLayer []string `yaml:"PipLayer"` PythonLayerVersionArn string `yaml:"PythonLayerVersionArn"` SecurityGroupID string `yaml:"SecurityGroupID"` SubnetOneIPRange string `yaml:"SubnetOneIPRange"` SubnetTwoIPRange string `yaml:"SubnetTwoIPRange"` VpcID string `yaml:"VpcID"` }
type LogSubscriptions ¶
type LogSubscriptions struct {
PrincipalARNs []string `yaml:"PrincipalARNs"`
}
type Monitoring ¶
type PantherConfig ¶
type PantherConfig struct { Infra Infra `yaml:"Infra"` Monitoring Monitoring `yaml:"Monitoring"` Setup Setup `yaml:"Setup"` Web Web `yaml:"Web"` }
type Setup ¶
type Setup struct { Company Company `yaml:"Company"` FirstUser FirstUser `yaml:"FirstUser"` OnboardSelf bool `yaml:"OnboardSelf"` EnableS3AccessLogs bool `yaml:"EnableS3AccessLogs"` EnableCloudTrail bool `yaml:"EnableCloudTrail"` EnableGuardDuty bool `yaml:"EnableGuardDuty"` S3AccessLogsBucket string `yaml:"S3AccessLogsBucket"` DataReplicationBucket string `yaml:"DataReplicationBucket"` InitialAnalysisSets []string `yaml:"InitialAnalysisSets"` LogSubscriptions LogSubscriptions `yaml:"LogSubscriptions"` }
Click to show internal directories.
Click to hide internal directories.