Skip to content

Commit

Permalink
rename to infra-core-api (#4)
Browse files Browse the repository at this point in the history
* rename to infra-core-api

* rename dynamo table as well
  • Loading branch information
devksingh4 authored Aug 29, 2024
1 parent 9d1fdd2 commit b9594e5
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ src_directory_root = src/
integration_test_directory_root = tests/live_integration/

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

# DO NOT CHANGE
Expand Down
6 changes: 3 additions & 3 deletions cloudformation/iam.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Resources:
- secretsmanager:GetSecretValue
Effect: Allow
Resource:
- !Sub arn:aws:secretsmanager:${AWS::Region}:${AWS::AccountId}:secret:infra-events-api-config*
- !Sub arn:aws:secretsmanager:${AWS::Region}:${AWS::AccountId}:secret:infra-core-api-config*
PolicyName: lambda-db-secrets
- PolicyDocument:
Version: 2012-10-17
Expand All @@ -61,8 +61,8 @@ Resources:
- dynamodb:*
Effect: Allow
Resource:
- !Sub arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/infra-events-api-records/*
- !Sub arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/infra-events-api-records
- !Sub arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/infra-core-api-events/*
- !Sub arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/infra-core-api-events
PolicyName: lambda-dynamo
Outputs:
MainFunctionRoleArn:
Expand Down
2 changes: 1 addition & 1 deletion cloudformation/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ Resources:
DeletionPolicy: "Retain"
Properties:
BillingMode: 'PAY_PER_REQUEST'
TableName: infra-events-api-records
TableName: infra-core-api-events
DeletionProtectionEnabled: true
PointInTimeRecoverySpecification:
PointInTimeRecoveryEnabled: !If [IsProd, true, false]
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
"prettier:write": "prettier --write src/*.ts src/**/*.ts tests/**/*.ts",
"prepare": "node .husky/install.mjs || true",
"lint-staged": "lint-staged",
"test:unit": "cross-env APPLICATION_KEY=infra-events-api vitest tests/unit",
"test:unit": "cross-env APPLICATION_KEY=infra-core-api vitest tests/unit",
"test:unit-ui": "yarn test:unit --ui",
"test:unit-watch": "cross-env APPLICATION_KEY=infra-events-api vitest tests/unit",
"test:live": "cross-env APPLICATION_KEY=infra-events-api vitest tests/live",
"test:unit-watch": "cross-env APPLICATION_KEY=infra-core-api vitest tests/unit",
"test:live": "cross-env APPLICATION_KEY=infra-core-api vitest tests/live",
"test:live-ui": "yarn test:live --ui"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ type EnvironmentConfigType = {
};

const genericConfig: GenericConfigType = {
DynamoTableName: "infra-events-api-records",
ConfigSecretName: "infra-events-api-config",
DynamoTableName: "infra-core-api-events",
ConfigSecretName: "infra-core-api-config",
UpcomingEventThresholdSeconds: 1800, // 30 mins
AwsRegion: process.env.AWS_REGION || "us-east-1",
} as const;
Expand Down

0 comments on commit b9594e5

Please sign in to comment.