Skip to content

Commit

Permalink
changes made in IaC that were done manually
Browse files Browse the repository at this point in the history
  • Loading branch information
nickchadwick-noaa committed Jun 24, 2024
1 parent ad11150 commit 037e509
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 29 deletions.
18 changes: 9 additions & 9 deletions Core/LAMBDA/ingest_functions/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,15 @@ variable "db_ingest_port" {
type = string
}

variable "primary_hml_bucket_name" {
type = string
description = "Primary S3 bucket that is used for the Lambda event notification"
}

variable "primary_hml_bucket_arn" {
type = string
description = "Primary S3 bucket that is used for the Lambda event notification"
}
# variable "primary_hml_bucket_name" {
# type = string
# description = "Primary S3 bucket that is used for the Lambda event notification"
# }

# variable "primary_hml_bucket_arn" {
# type = string
# description = "Primary S3 bucket that is used for the Lambda event notification"
# }

variable "backup_hml_bucket_name" {
type = string
Expand Down
1 change: 1 addition & 0 deletions Core/RDS/ingest/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ resource "aws_db_instance" "hydrovis" {
backup_retention_period = 7
skip_final_snapshot = true
auto_minor_version_upgrade = false
deletion_protection = true
tags = {
"hv-vpp-${var.environment}-data-ingest-rdsdbtag" : "hv-vpp-${var.environment}-data-ingest-rdsdbtag"
"noaa:monitoring" : "true"
Expand Down
1 change: 1 addition & 0 deletions Core/RDS/viz/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ resource "aws_db_instance" "hydrovis" {
backup_retention_period = 7
skip_final_snapshot = true
auto_minor_version_upgrade = false
deletion_protection = true
tags = {
"hv-vpp-${var.environment}-viz-processing-rdsdbtag" : "hv-vpp-${var.environment}-viz-processing-rdsdbtag"
"noaa:monitoring" : "true"
Expand Down
40 changes: 20 additions & 20 deletions Core/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,9 @@ module "s3" {
module.iam-roles.role_data_ingest.arn,
module.iam-roles.role_rnr.arn
]
"ised" = [
# module.iam-users.user_ISEDServiceAccount.arn
]
# "ised" = [
# # module.iam-users.user_ISEDServiceAccount.arn
# ]
}
}

Expand All @@ -181,22 +181,22 @@ module "egis" {
role_autoscaling_arn = module.iam-roles.role_autoscaling.arn
}

# S3 Replication
module "s3-replication" {
source = "./S3Replication"
# # S3 Replication
# module "s3-replication" {
# source = "./S3Replication"

environment = local.env.environment
account_id = local.env.account_id
prod_account_id = local.env.prod_account_id
uat_account_id = local.env.uat_account_id
ti_account_id = local.env.ti_account_id
region = local.env.region
admin_team_arns = local.env.admin_team_arns
# user_S3ReplicationDataServiceAccount_arn = module.iam-users.user_S3ReplicationDataServiceAccount.arn
user_data-ingest-service-user_arn = module.iam-roles.role_data_ingest.arn
role_viz_pipeline_arn = module.iam-roles.role_viz_pipeline.arn
role_rnr_arn = module.iam-roles.role_rnr.arn
}
# environment = local.env.environment
# account_id = local.env.account_id
# prod_account_id = local.env.prod_account_id
# uat_account_id = local.env.uat_account_id
# ti_account_id = local.env.ti_account_id
# region = local.env.region
# admin_team_arns = local.env.admin_team_arns
# # user_S3ReplicationDataServiceAccount_arn = module.iam-users.user_S3ReplicationDataServiceAccount.arn
# user_data-ingest-service-user_arn = module.iam-roles.role_data_ingest.arn
# role_viz_pipeline_arn = module.iam-roles.role_viz_pipeline.arn
# role_rnr_arn = module.iam-roles.role_rnr.arn
# }

# ###################### STAGE 2 ######################

Expand Down Expand Up @@ -453,8 +453,8 @@ module "ingest-lambda-functions" {
db_ingest_host = module.rds-ingest.dns_name
mq_ingest_port = split(":", module.mq-ingest.mq-ingest.instances.0.endpoints.0)[2]
db_ingest_port = module.rds-ingest.instance.port
primary_hml_bucket_name = module.s3-replication.buckets["hml"].bucket
primary_hml_bucket_arn = module.s3-replication.buckets["hml"].arn
# primary_hml_bucket_name = module.s3-replication.buckets["hml"].bucket
# primary_hml_bucket_arn = module.s3-replication.buckets["hml"].arn
backup_hml_bucket_name = module.s3.buckets["hml-backup"].bucket
backup_hml_bucket_arn = module.s3.buckets["hml-backup"].arn
lambda_subnet_ids = [module.vpc.subnet_private_a.id, module.vpc.subnet_private_b.id]
Expand Down

0 comments on commit 037e509

Please sign in to comment.