Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support to download files and their metadata #63

Open
volkc-basf opened this issue Oct 23, 2019 · 2 comments
Open

Add support to download files and their metadata #63

volkc-basf opened this issue Oct 23, 2019 · 2 comments

Comments

@volkc-basf
Copy link
Contributor

volkc-basf commented Oct 23, 2019

Community Note

  • 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
}

References

@volkc-basf
Copy link
Contributor Author

@jamestoyer @ttsangAtlassian

Now that #65 is merged, could smbd. please provide a new release for us?

Thx.
Chris

@alexanderluiscampino
Copy link

What's the status on this one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants