Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

temp rm prod infra to fix a hopper issue #77

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
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
46 changes: 0 additions & 46 deletions infrastructure/modules/yopass/app.tf
Original file line number Diff line number Diff line change
Expand Up @@ -38,49 +38,3 @@ module "yopass_web" {

force_delete = var.env_name == "production" ? true : false
}

module "yopass_web_identity" {
source = "terraform-registry.deliveroo.net/deliveroo/identity_auth/aws"
version = "~> 6.0"

ecs_service_name = module.yopass_web.service_name
env_name = var.env_name
extra_scopes = ["employee", "engineer.contractor"]
lb_listener_arn = module.yopass_web.lb_listener_arn
redirect_uris = ["https://${var.redirect_uri}/oauth2/idpresponse"]
target_group_arn = module.yopass_web.target_group_arn
}

module "yopass_redis" {
source = "terraform-registry.deliveroo.net/deliveroo/redis/aws"
version = "~> 9.0"

application_name = module.yopass.app_name
replication_group_id = "yopass-cache"
use_as_store = false
at_rest_encryption = false
transit_encryption_enabled = false
cluster_mode_enabled = false
multi_az_enabled = false
automatic_failover_enabled = true
num_node_groups = 1
node_count = 1
replicas = 1

datadog_pagerduty_service = ""
engine_version = "7.1"
parameter_group_family = "redis7"
instance_type = "cache.t3.small"

parameter_group_configuration = {
"cluster-enabled" = "no"
"maxmemory-policy" = "allkeys-lru"
}
}

resource "hopper_variable" "redis_url" {
app_name = module.yopass.app_name
name = "REDIS_CACHE_URL"
value = module.yopass_redis.url
write_only = true
}
Loading