2023-01-28 03:08:56 +00:00
|
|
|
# Create local directories as scratch space
|
|
|
|
resource "local_file" "openpgpkey" {
|
|
|
|
filename = ".well-known/openpgpkey/policy"
|
2023-01-29 18:32:33 +00:00
|
|
|
content = ""
|
2023-01-28 03:08:56 +00:00
|
|
|
}
|
|
|
|
resource "local_file" "hu" {
|
2023-01-29 18:32:33 +00:00
|
|
|
filename = ".well-known/openpgpkey/hu/.keep"
|
|
|
|
content = ""
|
2023-01-28 03:08:56 +00:00
|
|
|
depends_on = [local_file.openpgpkey]
|
|
|
|
}
|
|
|
|
resource "local_file" "static_dir" {
|
|
|
|
filename = "static/.keep"
|
2023-01-29 18:32:33 +00:00
|
|
|
content = ""
|
2023-01-28 03:08:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# Create local files as scratch space
|
2023-01-29 18:31:47 +00:00
|
|
|
resource "local_file" "policy" {
|
2023-01-29 18:32:33 +00:00
|
|
|
filename = ".well-known/openpgpkey/policy"
|
|
|
|
content = ""
|
2023-01-28 03:08:56 +00:00
|
|
|
depends_on = [local_file.openpgpkey]
|
|
|
|
}
|
|
|
|
|
2023-01-30 19:12:17 +00:00
|
|
|
# Upload files to Digital Ocean
|
|
|
|
## The Digital Ocean Spaces API is compatible with Amazon S3
|
|
|
|
# resource "local_exec" "s3cmd" {
|
|
|
|
# command = "s3cmd put --recursive --acl-public --guess-mime-type --verbose static/ s3://static-site/"
|
|
|
|
# depends_on = [local_file.index_html, local_file.static_dir]
|
|
|
|
# }
|