Skip to content

Commit 007acd5

Browse files
committed
feat: support custom headers for amplify
1 parent ed8e982 commit 007acd5

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
1+
## THIS FORK CONTAINS THE CHANGES FOR PR 32, 33, and 46!
22

33
<!-- markdownlint-disable -->
44
<a href="https://cpco.io/homepage"><img src="https://github.com/cloudposse/terraform-aws-amplify-app/blob/main/.github/banner.png?raw=true" alt="Project Banner"/></a><br/>
@@ -27,7 +27,7 @@
2727
2828
-->
2929

30-
Terraform module to provision AWS Amplify apps, backend environments, branches, domain associations, and webhooks.
30+
Terraform module to provision AWS Amplify apps, backend environments, branches, domain associations, and webhooks.
3131

3232

3333
> [!TIP]

main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ resource "aws_amplify_app" "default" {
2525
enable_basic_auth = var.enable_basic_auth
2626
enable_branch_auto_build = var.enable_branch_auto_build
2727
environment_variables = var.environment_variables
28+
custom_headers = var.custom_headers
2829

2930
iam_service_role_arn = local.iam_service_role_arn
3031

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,12 @@ variable "custom_rules" {
148148
nullable = false
149149
}
150150

151+
variable "custom_headers" {
152+
type = string
153+
description = "The custom headers for the Amplify app, allows specifying headers for every HTTP response. Must adhere to AWS's format: https://docs.aws.amazon.com/amplify/latest/userguide/custom-headers.html"
154+
default = ""
155+
}
156+
151157
variable "environments" {
152158
type = map(object({
153159
branch_name = optional(string)

0 commit comments

Comments
 (0)