loadBalancerLogsTable
View SourceLoad balancers in AWS write access logs to an S3 bucket. This component can be used to create an AWS Glue table configured to query those logs with Athena. This component can be used on its own or automatically created by passing accessLogsTable parameter to the loadBalancer component.
import * as saws from '@stackattack/aws';
const ctx = saws.context();const vpc = saws.vpc(ctx);const logsBucket = saws.bucket(ctx);const loadBalancer = saws.loadBalancer(ctx, { network: vpc.network("public")});loadBalancerLogsTable
Section titled “loadBalancerLogsTable”function loadBalancerLogsTable(ctx: Context, args: LoadBalancerLogsTableArgs): CatalogTableParameters
Section titled “Parameters”ctx(Context) -args(LoadBalancerLogsTableArgs) -
Returns
Section titled “Returns”- (
CatalogTable) -
Interfaces
Section titled “Interfaces”LoadBalancerLogsTableArgs
Section titled “LoadBalancerLogsTableArgs”Configuration options for create a load balancer logs table
Properties
Section titled “Properties”bucket(Input<BucketInput>) - Bucket where load balancer logs are storeddatabase?(Input<string>) - Database name to create the table in; default to “default”name(Input<string>) - Name of the table used for query logsnoPrefix?(boolean) - Whether to skip adding a prefix to the contextprefix?(Input<string>) - Prefix within the bucket where load balancer logs are stored. Note that all load balancer logs are stored with a prefix like “AWSLogs/<account_id>/elasticloadbalancing//”. That will be appended automatically—if specified this should only include the prefix before “AWSLogs/…”.