-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
44 lines (38 loc) · 1.09 KB
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "5.53.0"
}
}
cloud {
organization = "Storipress"
workspaces {
name = "leaky-paywall"
}
}
required_version = "1.5.7"
}
provider "aws" {
region = "us-east-1"
access_key = var.aws_access_key
secret_key = var.aws_secret_key
}
resource "aws_s3_object" "leaky_paywall" {
bucket = "storipress"
key = "assets/storipress/leaky-paywall.min.js"
source = "../lib/leaky-paywall.min.js"
source_hash = filemd5("../lib/leaky-paywall.min.js")
}
resource "aws_s3_object" "leaky_paywall_debug" {
bucket = "storipress"
key = "assets/storipress/leaky-paywall-debug.min.js"
source = "../lib/leaky-paywall-debug.min.js"
source_hash = filemd5("../lib/leaky-paywall-debug.min.js")
}
resource "aws_s3_object" "leaky_paywall_preview" {
bucket = "storipress"
key = "assets/storipress/leaky-paywall-preview.min.js"
source = "../lib/leaky-paywall-preview.min.js"
source_hash = filemd5("../lib/leaky-paywall-preview.min.js")
}