Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion infrastructure/terraform/components/api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ No requirements.
| <a name="input_core_environment"></a> [core\_environment](#input\_core\_environment) | Environment of Core | `string` | `"prod"` | no |
| <a name="input_default_tags"></a> [default\_tags](#input\_default\_tags) | A map of default tags to apply to all taggable resources within the component | `map(string)` | `{}` | no |
| <a name="input_disable_gateway_execute_endpoint"></a> [disable\_gateway\_execute\_endpoint](#input\_disable\_gateway\_execute\_endpoint) | Disable the execution endpoint for the API Gateway | `bool` | `true` | no |
| <a name="input_enable_backups"></a> [enable\_backups](#input\_enable\_backups) | Enable backups | `bool` | `false` | no |
| <a name="input_environment"></a> [environment](#input\_environment) | The name of the tfscaffold environment | `string` | n/a | yes |
| <a name="input_eventpub_control_plane_bus_arn"></a> [eventpub\_control\_plane\_bus\_arn](#input\_eventpub\_control\_plane\_bus\_arn) | ARN of the EventBridge control plane bus for eventpub | `string` | `""` | no |
| <a name="input_eventpub_data_plane_bus_arn"></a> [eventpub\_data\_plane\_bus\_arn](#input\_eventpub\_data\_plane\_bus\_arn) | ARN of the EventBridge data plane bus for eventpub | `string` | `""` | no |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,10 @@ resource "aws_dynamodb_table" "letters" {
enabled = true
}

tags = var.default_tags
tags = merge(
local.default_tags,
Comment thread
masl2 marked this conversation as resolved.
{
NHSE-Enable-Dynamo-Backup-Acct = "True"
}
)
}
7 changes: 6 additions & 1 deletion infrastructure/terraform/components/api/ddb_table_mi.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,10 @@ resource "aws_dynamodb_table" "mi" {
enabled = true
}

tags = var.default_tags
tags = merge(
local.default_tags,
{
NHSE-Enable-Dynamo-Backup-Acct = "True"
}
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,10 @@ resource "aws_dynamodb_table" "suppliers" {
enabled = true
}

tags = var.default_tags
tags = merge(
local.default_tags,
{
NHSE-Enable-Dynamo-Backup-Acct = "True"
}
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,5 @@ module "eventsub" {
sns_success_logging_sample_percent = 0

event_cache_expiry_days = 30
enable_event_cache = true
shared_infra_account_id = var.shared_infra_account_id
}
6 changes: 0 additions & 6 deletions infrastructure/terraform/components/api/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,6 @@ variable "commit_id" {
default = "HEAD"
}

variable "enable_backups" {
type = bool
description = "Enable backups"
default = false
}

variable "force_destroy" {
type = bool
description = "Flag to force deletion of S3 buckets"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ module "s3bucket_event_cache" {

default_tags = {
Name = "Event Cache Storage"
NHSE-Enable-S3-Backup-Acct = "True"
}
}

Expand Down
Loading