Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
Description
It would be very helpful to be able to download certain artifacts and/or their metadata using terraform. That way we could simply store all of our lambda deployment packages in artifactory.
New or Affected Resource(s)
artifactory_file
Potential Terraform Configuration
provider "artifactory" { ... } # authorization happens here
data "artifactory_file" "lambda_function_xyz" {
repository = "the-repository-key" #required
path = "/this/is/just/a/sample/lambda-function-xyz-1.0.0.zip" #required
output_path = "lambda-function-xyz-1.0.0.zip" #optional, if not set only the metadata are accessible, otherwise it will download the file contents to the given path
}
resource "aws_iam_role" "xyz" { ... }
resource "aws_lambda_function" "xyz" {
function_name = "xyz"
filename = data.artifactory_file.lambda_function_xyz.output_path
role = aws_iam_role.xyz.arn
handler = "index.handler"
runtime = "nodejs10.x"
source_code_hash = data.artifactory_file.lambda_function_xyz.sha256
}
Community Note
Description
It would be very helpful to be able to download certain artifacts and/or their metadata using terraform. That way we could simply store all of our lambda deployment packages in artifactory.
New or Affected Resource(s)
Potential Terraform Configuration
References