Skip to content

Latest commit

 

History

History
50 lines (45 loc) · 5.85 KB

File metadata and controls

50 lines (45 loc) · 5.85 KB

Requirements

Name Version
terraform >= 1.9.0
aws ~> 5.50
github ~> 6.0

Inputs

Name Description Type Default Required
AMPLIFY_BASIC_AUTH_SECRET Secret key/password to use for amplify microservice headers - This is entended to be read from CI variables and not commited to any codebase string "unset" no
amplify_microservice_routes An object representing the amplify microservice routing configration
list(object({
service_prefix = string,
service_csi = string,
root_dns_record = string,
}))
[] no
aws_account_id The AWS Account ID (numeric) string n/a yes
cdn_sans Aliases to associate with CDN list(string) [] no
cms_origin Object to specifiy static domains for CDN
object({
domain_name = string,
origin_path = string,
origin_id = string
})
{
"domain_name": "nhsdigital.github.io",
"origin_id": "github-nhs-notify-web-cms",
"origin_path": "/nhs-notify-web-cms-dev"
}
no
component The variable encapsulating the name of this component string "cdn" no
default_tags A map of default tags to apply to all taggable resources within the component map(string) {} no
enable_github_actions_ip_access Should the Github actions runner IP addresses be permitted access to this distribution. This should not be enabled in production environments bool false no
environment The name of the tfscaffold environment string n/a yes
force_lambda_code_deploy If the lambda package in s3 has the same commit id tag as the terraform build branch, the lambda will not update automatically. Set to True if making changes to Lambda code from on the same commit for example during development bool false no
group The group variables are being inherited from (often synonmous with account short-name) string n/a yes
kms_deletion_window When a kms key is deleted, how long should it wait in the pending deletion state? string "30" no
log_level The log level to be used in lambda functions within the component. Any log with a lower severity than the configured value will not be logged: https://docs.python.org/3/library/logging.html#levels string "INFO" no
log_retention_in_days The retention period in days for the Cloudwatch Logs events to be retained, default of 0 is indefinite number 0 no
parent_acct_environment Name of the environment responsible for the acct resources used, affects things like DNS zone. Useful for named dev environments string "main" no
project The name of the tfscaffold project string n/a yes
region The AWS Region string n/a yes
waf_rate_limit_cdn The rate limit is the maximum number of CDN requests from a single IP address that are allowed in a five-minute period number 20000 no

Modules

Name Source Version
kms git::https://github.com/NHSDigital/nhs-notify-shared-modules.git//infrastructure/modules/kms v1.0.8
lambda_rewrite_origin_branch_requests git::https://github.com/NHSDigital/nhs-notify-shared-modules.git//infrastructure/modules/lambda v1.0.8
lambda_rewrite_viewer_trailing_slashes git::https://github.com/NHSDigital/nhs-notify-shared-modules.git//infrastructure/modules/lambda v1.0.8
s3bucket_cf_logs git::https://github.com/NHSDigital/nhs-notify-shared-modules.git//infrastructure/modules/s3bucket v1.0.8

Outputs

Name Description
cloudfront_distribution_aliases Cloudfront distribution custom alias URLs
cloudfront_distribution_url Cloudfront distribution URL