generated from NOAA-OWP/owp-open-source-project-template
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bugfixes to fix deploy following various PRs
- Loading branch information
1 parent
ea8b7ae
commit a4d2917
Showing
14 changed files
with
85 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
variable "rnr_lambda_role" { | ||
type = string | ||
} | ||
|
||
variable "environment" { | ||
type = string | ||
} | ||
|
||
variable "initialize_pipeline_arn" { | ||
type = string | ||
} | ||
|
||
variable "rnr_domain_generator_arn" { | ||
type = string | ||
} | ||
|
||
variable "rnr_ec2_instance" { | ||
type = string | ||
} | ||
|
||
variable "fifteen_minute_trigger" { | ||
type = object({ | ||
name = string | ||
}) | ||
} | ||
|
||
######################################### | ||
## Replace Route Step Function ## | ||
######################################### | ||
|
||
resource "aws_sfn_state_machine" "replace_route_step_function" { | ||
name = "hv-vpp-${var.environment}-execute-replace-route" | ||
role_arn = var.rnr_lambda_role | ||
|
||
definition = templatefile("${path.module}/execute_replace_route.json.tftpl", { | ||
initialize_pipeline_arn = var.initialize_pipeline_arn | ||
rnr_domain_generator_arn = var.rnr_domain_generator_arn | ||
rnr_ec2_instance = var.rnr_ec2_instance | ||
}) | ||
|
||
tags = { | ||
"noaa:monitoring" : "true" | ||
} | ||
} | ||
|
||
resource "aws_cloudwatch_event_target" "check_lambda_every_five_minutes" { | ||
count = var.environment == "ti" ? 0 : 1 | ||
rule = var.fifteen_minute_trigger.name | ||
target_id = aws_sfn_state_machine.replace_route_step_function.name | ||
arn = aws_sfn_state_machine.replace_route_step_function.arn | ||
role_arn = aws_sfn_state_machine.replace_route_step_function.role_arn | ||
} |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters