shy-football-10348
09/30/2020, 2:59 AMalb_http_bucket_key = aws.kms.Key(
"jupyterhub-alb-http-bucket-key",
deletion_window_in_days=10,
description="This key is used to encrypt bucket objects",
)
alb_http_bucket = aws.s3.Bucket(
"jupyterhub-alb-http-logs",
server_side_encryption_configuration={
"rule": {
"applyServerSideEncryptionByDefault": {
"kms_master_key_id": alb_http_bucket_key.arn,
"sseAlgorithm": "aws:kms",
},
},
},
)
alb = aws.lb.LoadBalancer(
"jupyterhub-alb",
security_groups=[sgroup.id],
subnets=jupyterhub_priv_subnets,
internal=True,
access_logs=aws.lb.LoadBalancerAccessLogsArgs(
bucket=alb_http_bucket.bucket_domain_name,
enabled=True
)
)
The bit I cannot get right is the access_logs=
field. I directly referenced another function that has an example using the same data type that access_logs
requires and I still cant get it to work 😞AttributeError: module '<http://pulumi_aws.lb|pulumi_aws.lb>' has no attribute 'LoadBalancerAccessLogsArgs'
error: an unhandled error occurred: Program exited with non-zero exit code: 1
faint-table-42725
09/30/2020, 5:09 PMshy-football-10348
10/01/2020, 6:57 PMpulumi_aws
3.5.0
Successfully installed pulumi-2.11.1 pulumi-aws-3.5.0faint-table-42725
10/05/2020, 4:58 PMshy-football-10348
10/05/2020, 7:44 PM