-
Notifications
You must be signed in to change notification settings - Fork 110
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resource artifactory_artifact
should accept file content from variable.
#1083
Comments
@pascal-hofmann Thanks for the suggestion. I've added this to our plan. |
@pascal-hofmann FYI, I suspect the error you see is relative path related. See test for example: https://github.com/jfrog/terraform-provider-artifactory/blob/master/pkg/artifactory/resource/artifact/resource_artifactory_artifact_test.go#L36 |
@pascal-hofmann Question: what type of data would you use with this Terraform does not support binary, so the next logical type is string. The more I think about this, the less useful I feel. Uploading a string type artifact seems unusual to me. |
@alexhung I think it would make the most sense to model this based on the And I am in the same boat of where having this would make the provider significantly nicer to use. |
@alexhung Is there something blocking this? This would be a really nice feature for us, since writing to disk with a template, and then uploading that is incredibly painful using terraform and would cause constant diffs. If it's just low priority then we could also create a jfrog ticket for this. |
@RedlineTriad I'm curious about the use cases. Is the content some kind of generated data that is not from a file on disk? |
Yes, exactly. In our case its fetched via HTTP (via terraform). |
Same for us, we provision repositories using terraform, and want to write an index of the terraform managed repositories as a structured file to artifactory itself, for other systems to consume. |
Add support for base64 string as file content
I don't think this works as expected yet. @alexhung When uploading a file I get the following after downloading it:
Somehow mime-headers become part of the file content. I can even reproduce this with a simple curl, and it seems using
Uploaded file:
Not sure if it's due to some configuration on our end, but when just using a PUT without form-data it seems to work without issues. |
@RedlineTriad Thanks for the report! I've added this to our plan to investigate and fix. |
…-request Replace resty multiparts form upload for artifactory_artifact resource
Is your feature request related to a problem? Please describe.
I want to upload a file to artifactory whose contents depend on terraform resources. I tried using
local_file
as a workaround to get the data passed to resourceartifactory_artifact
but during planning terraform bails out withDescribe the solution you'd like
Resource
artifactory_artifact
should have a paramcontent
that can be used to pass in the desired file content.The text was updated successfully, but these errors were encountered: