I'm sure I messed something up somewhere, but haven't had any luck getting passed this one.
module.alb.aws_lb.main: Still creating... [10s elapsed]
module.alb.aws_lb.main: Still creating... [20s elapsed]
module.alb.aws_lb.main: Still creating... [30s elapsed]
Error: Failure configuring LB attributes: InvalidConfigurationRequest: Access Denied for bucket: dev-example-alb-logs Please check S3bucket permission
status code: 400, request id: 1379cdf9-8253-41cb-a844-9323808de4fe
on .terraform/modules/alb/terraform-aws-alb-web-containers-3.0.2/main.tf line 91, in resource "aws_lb" "main":
91: resource "aws_lb" "main" {
locals {
zone_name = "${var.env}.example.com"
container_protocol = "HTTP"
container_port = "80"
health_check_path = "/"
app_name = "example"
logs_bucket = "${var.env}-${local.app_name}-alb-logs"
}
module "logs" {
source = "trussworks/logs/aws"
s3_bucket_name = local.logs_bucket
region = var.region
force_destroy = true
default_allow = false
allow_alb = true
}
module "alb" {
source = "trussworks/alb-web-containers/aws"
name = "${local.app_name}-alb"
environment = local.environment
logs_s3_bucket = local.logs_bucket
alb_vpc_id = module.vpc.vpc_id
alb_subnet_ids = module.vpc.public_subnets
alb_default_certificate_arn = module.acm.this_acm_certificate_arn
container_port = local.container_port
container_protocol = local.container_protocol
health_check_path = local.health_check_path
}