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

Removes evidently feature flags #142

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
9 changes: 0 additions & 9 deletions app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

import storage
from db import get_db_connection
from feature_flags import is_feature_enabled

logging.basicConfig()
logger = logging.getLogger()
Expand Down Expand Up @@ -50,14 +49,6 @@ def migrations():
return f"Last migration on {last_migration_date}"


@app.route("/feature-flags")
def feature_flags():
foo_status = "enabled" if is_feature_enabled("foo") else "disabled"
bar_status = "enabled" if is_feature_enabled("bar") else "disabled"

return f"<p>Feature foo is {foo_status}</p><p>Feature bar is {bar_status}</p>"


@app.route("/document-upload")
def document_upload():
path = f"uploads/{datetime.now().date()}/${{filename}}"
Expand Down
20 changes: 0 additions & 20 deletions app/feature_flags.py

This file was deleted.

3 changes: 0 additions & 3 deletions infra/app/app-config/feature_flags.tf

This file was deleted.

4 changes: 0 additions & 4 deletions infra/app/app-config/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ output "environments" {
value = local.environments
}

output "feature_flags" {
value = local.feature_flags
}

output "has_database" {
value = local.has_database
}
Expand Down
12 changes: 2 additions & 10 deletions infra/app/service/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,7 @@ module "service" {

extra_environment_variables = merge(
{
FEATURE_FLAGS_PROJECT = module.feature_flags.evidently_project_name
BUCKET_NAME = local.storage_config.bucket_name
BUCKET_NAME = local.storage_config.bucket_name
},
local.identity_provider_environment_variables,
local.service_config.extra_environment_variables
Expand All @@ -199,8 +198,7 @@ module "service" {

extra_policies = merge(
{
feature_flags_access = module.feature_flags.access_policy_arn,
storage_access = module.storage.access_policy_arn
storage_access = module.storage.access_policy_arn
},
module.app_config.enable_identity_provider ? {
identity_provider_access = module.identity_provider_client[0].access_policy_arn,
Expand All @@ -221,12 +219,6 @@ module "monitoring" {
incident_management_service_integration_url = module.app_config.has_incident_management_service && !local.is_temporary ? data.aws_ssm_parameter.incident_management_service_integration_url[0].value : null
}

module "feature_flags" {
source = "../../modules/feature-flags"
service_name = local.service_config.service_name
feature_flags = module.app_config.feature_flags
}

module "storage" {
source = "../../modules/storage"
name = local.storage_config.bucket_name
Expand Down
21 changes: 0 additions & 21 deletions infra/modules/feature-flags/access_policy.tf

This file was deleted.

21 changes: 0 additions & 21 deletions infra/modules/feature-flags/logs.tf

This file was deleted.

46 changes: 0 additions & 46 deletions infra/modules/feature-flags/main.tf

This file was deleted.

9 changes: 0 additions & 9 deletions infra/modules/feature-flags/outputs.tf

This file was deleted.

9 changes: 0 additions & 9 deletions infra/modules/feature-flags/variables.tf

This file was deleted.

1 change: 0 additions & 1 deletion infra/project-config/aws_services.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ locals {
"elasticbeanstalk",
"elasticloadbalancing",
"events",
"evidently",
"iam",
"kms",
"lambda",
Expand Down
Loading