Skip to content

Commit

Permalink
Remove app id from iac
Browse files Browse the repository at this point in the history
  • Loading branch information
campos20 committed Jul 17, 2024
1 parent d519be7 commit 1320eec
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 12 deletions.
4 changes: 2 additions & 2 deletions client/.env
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# VITE_API_URL=http://localhost:8080
VITE_API_URL=https://statistics-api.worldcubeassociation.org
VITE_API_URL=http://localhost:8080
# VITE_API_URL=https://statistics-api.worldcubeassociation.org
VITE_APP_VERSION=local
VITE_APP_DATE_VERSION=today
VITE_APP_WCA_BASE_URL=https://www.worldcubeassociation.org
Expand Down
1 change: 0 additions & 1 deletion iac/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ export read_password="ANOTHER_STRONG_PASSWORD_HERE"
```

```bash
aws ssm put-parameter --name "/config/$environment/statistics/app/id" --value $app_id --overwrite --region $region --type String
aws ssm put-parameter --name "/config/$environment/statistics/dumped_db/write_user" --value $write_user --overwrite --region $region --type String
aws ssm put-parameter --name "/config/$environment/statistics/dumped_db/write_password" --value $write_password --overwrite --region $region --type String
aws ssm put-parameter --name "/config/$environment/statistics/dumped_db/read_user" --value $read_user --overwrite --region $region --type String
Expand Down
4 changes: 0 additions & 4 deletions iac/data-ssm.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
data "aws_ssm_parameter" "statistics_app_id" {
name = "/config/${terraform.workspace}/statistics/app/id"
}

data "aws_ssm_parameter" "dumped_db_write_user" {
name = "/config/${terraform.workspace}/statistics/dumped_db/write_user"
}
Expand Down
1 change: 0 additions & 1 deletion iac/ecs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ resource "aws_ecs_task_definition" "statistics_server_task_definition" {
fargate_memory = var.statistics_fargate_memory
aws_region = var.aws_region
spring_profile = terraform.workspace
app_id = data.aws_ssm_parameter.statistics_app_id.value
db_port = var.default_mysql_port
db_host = aws_db_instance.dumped_db.address
db_name = var.dumped_db_name
Expand Down
4 changes: 0 additions & 4 deletions iac/templates/ecs/statistics_server_app.json.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@
}
],
"environment": [
{
"name": "APP_ID",
"value": "${app_id}"
},
{
"name": "DB_USERNAME",
"value": "${db_username}"
Expand Down

0 comments on commit 1320eec

Please sign in to comment.