...
 
Commits (2)
resource "aws_s3_bucket" "lambda_code_bucket" {
bucket = "move-ftp-files-to-s3-code"
bucket = "move-ftp-files-to-s3-code-${var.uniqueid}"
}
resource "aws_s3_bucket" "destination_one_bucket" {
bucket = "destination-one"
bucket = "destination-one-${var.uniqueid}"
}
resource "aws_s3_bucket" "destination_two_bucket" {
bucket = "destination-two"
bucket = "destination-two-${var.uniqueid}"
}
......@@ -20,7 +20,7 @@ data "template_file" "source_destination_one_config" {
DOC
vars {
ftp_path = "source1"
ftp_path = "source-one"
bucket_name = "${aws_s3_bucket.destination_one_bucket.bucket}"
}
}
......
......@@ -20,7 +20,7 @@ data "template_file" "source_destination_two_config" {
DOC
vars {
ftp_path = "source2"
ftp_path = "source-two"
bucket_name = "${aws_s3_bucket.destination_two_bucket.bucket}"
}
}
......
variable "uniqueid" {
type = "string"
default = "mz"
}
\ No newline at end of file