We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55a09e6 commit 4e44aebCopy full SHA for 4e44aeb
terraform/docs-rs/cloudfront.tf
@@ -67,6 +67,11 @@ resource "aws_cloudfront_origin_request_policy" "docs_rs" {
67
}
68
69
70
+resource "random_password" "origin_auth" {
71
+ length = 32
72
+ special = false
73
+}
74
+
75
resource "aws_cloudfront_distribution" "webapp" {
76
comment = local.domain_name
77
@@ -107,7 +112,7 @@ resource "aws_cloudfront_distribution" "webapp" {
107
112
108
113
custom_header {
109
114
name = "X-Origin-Auth"
110
- value = "some_secret_value"
115
+ value = random_password.origin_auth.result
111
116
117
118
0 commit comments