terraform-cloudfront-auth icon indicating copy to clipboard operation
terraform-cloudfront-auth copied to clipboard

Error: local-exec provisioner error

Open segrem25830-pki opened this issue 3 years ago • 1 comments

Hi, I am getting this error by executing the terraform module, could you please help?

"Module.loadbalancing.aws_alb_listener.http: Creation complete after 0s [id=arn:aws:elasticloadbalancing:eu-central-1:874901147556:listener/app/evoya-alpha-alb/9ebd008aab3641c7/d1886afd3b75667b] ╷ │ Error: local-exec provisioner error │ │ with module.cloudfront_auth.null_resource.copy_lambda_artifact, │ on ../../modules/auth/main.tf line 49, in resource "null_resource" "copy_lambda_artifact": │ 49: provisioner "local-exec" { │ │ Error running command 'cp build/cloudfront-auth-master/distributions/d2f81e36m0by5x.cloudfront.net/d2f81e36m0by5x.cloudfront.net.zip lambda.zip': exit status 1. Output: cp: cannot stat │ 'build/cloudfront-auth-master/distributions/d2f81e36m0by5x.cloudfront.net/d2f81e36m0by5x.cloudfront.net.zip': No such file or directory "

segrem25830-pki avatar Jul 14 '21 11:07 segrem25830-pki

@segrem25830-pki #6 fixes this issue. I'm guessing you're using an OIDC provider.

evantobin avatar Apr 06 '22 16:04 evantobin