Skip to content

v1.2.0

Latest
Compare
Choose a tag to compare
@cloudposse-releaser cloudposse-releaser released this 23 Jan 02:36
f573b8a
fix: adjust default value for custom headers variable @RoseSecurity (#47) ## what
  • The default custom header is currently an empty string which fails the following provider validation:
	"custom_headers": {
		Type:         schema.TypeString,
		Optional:     true,
		Computed:     true,
		ValidateFunc: validation.StringLenBetween(1, 25000),
	},

Which produces the following error:

│ Error: expected length of custom_headers to be in the range (1 - 25000), got

│   with module.amplify_app.aws_amplify_app.default[0],
│   on .terraform/e98d/modules/amplify_app/main.tf line 28, in resource "aws_amplify_app" "default":
│   28:   custom_headers                = var.custom_headers
  • This changes the default value to null for the custom_headers variable

why

Fixes the following error:

Planning failed. Terraform encountered an error while generating this plan.


│ Error: expected length of custom_headers to be in the range (1 - 25000), got

│   with module.amplify_app.aws_amplify_app.default[0],
│   on .terraform/infra/modules/amplify_app/main.tf line 28, in resource "aws_amplify_app" "default":
│   28:   custom_headers                = var.custom_headers

references