SHARE
TWEET

Untitled

a guest Jul 22nd, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. resource "aws_s3_bucket_object" "file_upload" {
  2.   bucket = "${var.s3_bucket}"
  3.   key    = "deploy/${var.file_name}"
  4.   source = "${data.archive_file.zipit.output_path}"
  5.  
  6. }
  7.      
  8. resource "aws_s3_bucket_object" "folder" {
  9.   bucket = "${var.s3_bucket}"
  10.   key    = "deploy/"
  11.   source = "/dev/null"
  12. }
  13.  
  14. resource "aws_s3_bucket_object" "file_upload" {
  15.   bucket = "${var.s3_bucket}"
  16.   key    = "${aws_s3_bucket_object.folder.key}${var.file_name}"
  17.   source = "${data.archive_file.zipit.output_path}"
  18.  
  19. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top