Questions tagged [archive-file]

10 questions
14
votes
2 answers

Is there a way to define multiple source_file for Terraform archive provider?

I am using the Terraform archive_file provider to package multiple files into a zip file. It works fine when I define the archive like this: data "archive_file" "archive" { type = "zip" output_path = "./${var.name}.zip" source_dir =…
jamiet
  • 10,501
  • 14
  • 80
  • 159
3
votes
2 answers

What exactly is in a .o / .a / .so file?

I was wondering what exactly is stored in a .o or a .so file that results from compiling a C++ program. This post gives a quite good overview of the compilation process and the function of a .o file in it, and as far as I understand from this post,…
PieterNuyts
  • 496
  • 5
  • 20
2
votes
1 answer

Is there a way for Chef to become aware of an archive file's contents during a run?

I have a chef recipe which clones a specific branch of a git repository that contains two .tgz files and an .sql file. The file names in the repo follow a convention, but are timestamped, which means there's no way to be sure of their exact names…
Steve K
  • 387
  • 1
  • 8
  • 22
1
vote
1 answer

Is it possible to upload multiple directories storing lambda function to AWS lambda repeatedly by Loop in Terraform?

I have 3 to 4 folders containing lambda function and related files under the same directory: functions. Those folders are archived and uploaded to AWS lambda one by one with the use of Code-Block below. ### Set each Lambda function's name and its…
Toshi
  • 45
  • 7
1
vote
0 answers

Download an archive file on the fly using play framework 2.3

I'am trying to create and download an archive file without relying on memory(to avoid out of memory exception for large file) I'am using for that play framework 2.3 with Scala, after some research I found an example:…
med10
  • 101
  • 7
1
vote
1 answer

How can I create a Zip archive file in Objective-C?

I have attempted to find a way to create a zip archive (or GZip archive) in Objective-C, but my knowledge of the language is still lacking. I see a way to compress an existing data structure in this question, but it does not seem to answer the…
aperkins
  • 12,914
  • 4
  • 29
  • 34
0
votes
1 answer

How to include multiple diretories in the "archive_file" data source?

data "archive_file" "zip_file" { type = "zip" source_dir = ["../src", "../../common_lib"] output_path = "lambda-code.zip" } This script doesn't work because the source_dir only supports a single directory. Is there any way to include…
Ken Zhang
  • 1,454
  • 2
  • 13
  • 27
0
votes
0 answers

Terraform plan shows unexpected changes with AWS Lambda

Every time I run terraform plan, it shows unexpected changes with AWS lambda function even I didn't modify any lambda code, I use following code to deploy lambda function: resource "aws_s3_bucket" "lambda_code_bucket" { bucket =…
0
votes
1 answer

Linking external library to project still gives undefined reference

I have a librdma.a which I need to link to my current project. When I run a nm on librdma.a, this is what I get:- 0000000000000000 T set_attribute Which means that function is available in the code. Now when I try to link this .a file to my current…
Sid Sahay
  • 368
  • 5
  • 20
0
votes
2 answers

How can i run code on the client side from a browser?

With LLVM and silverlight this may be possible now (or it may be possible with flash). I like the user to select a file and then do the following things 1) Hash it with md5 and sha1 2) If archive check if an exe is in it 3) If archive check if…
user34537