Skip to content

Commit b9594e5

Browse files
authored
rename to infra-core-api (#4)
* rename to infra-core-api * rename dynamo table as well
1 parent 9d1fdd2 commit b9594e5

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ src_directory_root = src/
99
integration_test_directory_root = tests/live_integration/
1010

1111
# CHANGE ME (as needed)
12-
application_key=infra-events-api
13-
application_name="InfraEventsApi"
14-
techlead="ronita2@illinois.edu"
12+
application_key=infra-core-api
13+
application_name="InfraCoreApi"
14+
techlead="dsingh14@illinois.edu"
1515
region="us-east-1"
1616

1717
# DO NOT CHANGE

cloudformation/iam.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Resources:
5252
- secretsmanager:GetSecretValue
5353
Effect: Allow
5454
Resource:
55-
- !Sub arn:aws:secretsmanager:${AWS::Region}:${AWS::AccountId}:secret:infra-events-api-config*
55+
- !Sub arn:aws:secretsmanager:${AWS::Region}:${AWS::AccountId}:secret:infra-core-api-config*
5656
PolicyName: lambda-db-secrets
5757
- PolicyDocument:
5858
Version: 2012-10-17
@@ -61,8 +61,8 @@ Resources:
6161
- dynamodb:*
6262
Effect: Allow
6363
Resource:
64-
- !Sub arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/infra-events-api-records/*
65-
- !Sub arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/infra-events-api-records
64+
- !Sub arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/infra-core-api-events/*
65+
- !Sub arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/infra-core-api-events
6666
PolicyName: lambda-dynamo
6767
Outputs:
6868
MainFunctionRoleArn:

cloudformation/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ Resources:
110110
DeletionPolicy: "Retain"
111111
Properties:
112112
BillingMode: 'PAY_PER_REQUEST'
113-
TableName: infra-events-api-records
113+
TableName: infra-core-api-events
114114
DeletionProtectionEnabled: true
115115
PointInTimeRecoverySpecification:
116116
PointInTimeRecoveryEnabled: !If [IsProd, true, false]

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
"prettier:write": "prettier --write src/*.ts src/**/*.ts tests/**/*.ts",
1818
"prepare": "node .husky/install.mjs || true",
1919
"lint-staged": "lint-staged",
20-
"test:unit": "cross-env APPLICATION_KEY=infra-events-api vitest tests/unit",
20+
"test:unit": "cross-env APPLICATION_KEY=infra-core-api vitest tests/unit",
2121
"test:unit-ui": "yarn test:unit --ui",
22-
"test:unit-watch": "cross-env APPLICATION_KEY=infra-events-api vitest tests/unit",
23-
"test:live": "cross-env APPLICATION_KEY=infra-events-api vitest tests/live",
22+
"test:unit-watch": "cross-env APPLICATION_KEY=infra-core-api vitest tests/unit",
23+
"test:live": "cross-env APPLICATION_KEY=infra-core-api vitest tests/live",
2424
"test:live-ui": "yarn test:live --ui"
2525
},
2626
"devDependencies": {

src/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ type EnvironmentConfigType = {
2828
};
2929

3030
const genericConfig: GenericConfigType = {
31-
DynamoTableName: "infra-events-api-records",
32-
ConfigSecretName: "infra-events-api-config",
31+
DynamoTableName: "infra-core-api-events",
32+
ConfigSecretName: "infra-core-api-config",
3333
UpcomingEventThresholdSeconds: 1800, // 30 mins
3434
AwsRegion: process.env.AWS_REGION || "us-east-1",
3535
} as const;

0 commit comments

Comments
 (0)