Does anybody know a workaround for lambda and corresponding S3 provision in Terraform?
The issue is next, I described the S3 bucket and AWS Lambda and want to apply it in 1 try AWS Lambda has a property s3_key, however, the S3 doesn’t have an S3 object before the very first lambda deployment.
Therefore my current workflow is next:
Provision S3 bucket via terraform -> do zip deployment to s3 via concourse -> provision AWS lambda and use the key from zip deployment
But it is not acceptable, terraform shouldn’t have a dependency on intermediate deployments.
My Lambda zip is created by a different pipeline and can't be attached to terraform repo.