Skip to content

Commit

Permalink
Correct config files appropriate for the backend env
Browse files Browse the repository at this point in the history
  • Loading branch information
shashankmc committed Nov 1, 2023
1 parent 27035e2 commit 581bd7f
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 117 deletions.
70 changes: 51 additions & 19 deletions amplify/backend/backend-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -161,67 +161,83 @@
}
]
},
"AMPLIFY_function_batchdatafetcher_deploymentBucketName": {
"AMPLIFY_function_batchdatafetcher_apiCaseexploreruiCaselawtableArn": {
"usedBy": [
{
"category": "function",
"resourceName": "batchdatafetcher"
}
]
},
"AMPLIFY_function_batchdatafetcher_s3Key": {
"AMPLIFY_function_batchdatafetcher_apiCaseexploreruiCaselawtableName": {
"usedBy": [
{
"category": "function",
"resourceName": "batchdatafetcher"
}
]
},
"AMPLIFY_function_caseexploreruidynamodbaccess_deploymentBucketName": {
"AMPLIFY_function_batchdatafetcher_apiCaseexploreruiGraphqlapiidoutput": {
"usedBy": [
{
"category": "function",
"resourceName": "caseexploreruidynamodbaccess"
"resourceName": "batchdatafetcher"
}
]
},
"AMPLIFY_function_caseexploreruidynamodbaccess_s3Key": {
"AMPLIFY_function_batchdatafetcher_ddbTableName": {
"usedBy": [
{
"category": "function",
"resourceName": "caseexploreruidynamodbaccess"
"resourceName": "batchdatafetcher"
}
]
},
"AMPLIFY_function_caseexploreruiopensearchaccess_deploymentBucketName": {
"AMPLIFY_function_batchdatafetcher_deploymentBucketName": {
"usedBy": [
{
"category": "function",
"resourceName": "caseexploreruiopensearchaccess"
"resourceName": "batchdatafetcher"
}
]
},
"AMPLIFY_function_batchdatafetcher_s3Key": {
"usedBy": [
{
"category": "function",
"resourceName": "batchdatafetcher"
}
]
},
"AMPLIFY_function_datafetcher_apiCaseexploreruiCaselawtableArn": {
"usedBy": [
{
"category": "function",
"resourceName": "datafetcher"
}
]
},
"AMPLIFY_function_caseexploreruiopensearchaccess_s3Key": {
"AMPLIFY_function_datafetcher_apiCaseexploreruiCaselawtableName": {
"usedBy": [
{
"category": "function",
"resourceName": "caseexploreruiopensearchaccess"
"resourceName": "datafetcher"
}
]
},
"AMPLIFY_function_caseexploreruiutils_deploymentBucketName": {
"AMPLIFY_function_datafetcher_apiCaseexploreruiGraphqlapiidoutput": {
"usedBy": [
{
"category": "function",
"resourceName": "caseexploreruiutils"
"resourceName": "datafetcher"
}
]
},
"AMPLIFY_function_caseexploreruiutils_s3Key": {
"AMPLIFY_function_datafetcher_ddbTableName": {
"usedBy": [
{
"category": "function",
"resourceName": "caseexploreruiutils"
"resourceName": "datafetcher"
}
]
},
Expand Down Expand Up @@ -257,23 +273,31 @@
}
]
},
"AMPLIFY_function_networkstatistics_deploymentBucketName": {
"AMPLIFY_function_queryhandler_ddbTableName": {
"usedBy": [
{
"category": "function",
"resourceName": "networkstatistics"
"resourceName": "queryhandler"
}
]
},
"AMPLIFY_function_networkstatistics_s3Key": {
"AMPLIFY_function_queryhandler_deploymentBucketName": {
"usedBy": [
{
"category": "function",
"resourceName": "networkstatistics"
"resourceName": "queryhandler"
}
]
},
"AMPLIFY_function_queryhandler_deploymentBucketName": {
"AMPLIFY_function_queryhandler_osEndpoint": {
"usedBy": [
{
"category": "function",
"resourceName": "queryhandler"
}
]
},
"AMPLIFY_function_queryhandler_osIndexName": {
"usedBy": [
{
"category": "function",
Expand All @@ -297,6 +321,14 @@
}
]
},
"AMPLIFY_function_subnetwork_region": {
"usedBy": [
{
"category": "function",
"resourceName": "subnetwork"
}
]
},
"AMPLIFY_function_subnetwork_s3Key": {
"usedBy": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,38 +188,6 @@
]
}
}
},
"CustomLambdaExecutionPolicy": {
"Type": "AWS::IAM::Policy",
"Properties": {
"PolicyName": "custom-lambda-execution-policy",
"PolicyDocument": {
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"dynamodb:Get*",
"dynamodb:BatchGetItem",
"dynamodb:List*",
"dynamodb:Describe*",
"dynamodb:Scan",
"dynamodb:Query"
],
"Resource": [
"arn:aws:dynamodb:eu-central-1:275192370238:table/Caselaw-avqb7mqbcfgurbeqbfsmuwxjqq-dev",
"arn:aws:dynamodb:eu-central-1:275192370238:table/Caselaw-avqb7mqbcfgurbeqbfsmuwxjqq-dev/index/*"
],
"Effect": "Allow"
}
]
},
"Roles": [
{
"Ref": "LambdaExecutionRole"
}
]
},
"DependsOn": "LambdaExecutionRole"
}
},
"Outputs": {
Expand Down
17 changes: 3 additions & 14 deletions amplify/backend/function/batchdatafetcher/custom-policies.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
[
{
"Action": [
"dynamodb:Get*",
"dynamodb:BatchGetItem",
"dynamodb:List*",
"dynamodb:Describe*",
"dynamodb:Scan",
"dynamodb:Query"
],
"Resource": [
"arn:aws:dynamodb:eu-central-1:275192370238:table/Caselaw-avqb7mqbcfgurbeqbfsmuwxjqq-dev",
"arn:aws:dynamodb:eu-central-1:275192370238:table/Caselaw-avqb7mqbcfgurbeqbfsmuwxjqq-dev/index/*"
],
"Effect": "Allow"
"Action": [],
"Resource": []
}
]
]
17 changes: 3 additions & 14 deletions amplify/backend/function/datafetcher/custom-policies.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
[
{
"Action": [
"dynamodb:Get*",
"dynamodb:BatchGetItem",
"dynamodb:List*",
"dynamodb:Describe*",
"dynamodb:Scan",
"dynamodb:Query"
],
"Resource": [
"arn:aws:dynamodb:eu-central-1:275192370238:table/Caselaw-avqb7mqbcfgurbeqbfsmuwxjqq-dev",
"arn:aws:dynamodb:eu-central-1:275192370238:table/Caselaw-avqb7mqbcfgurbeqbfsmuwxjqq-dev/index/*"
],
"Effect": "Allow"
"Action": [],
"Resource": []
}
]
]
Original file line number Diff line number Diff line change
Expand Up @@ -188,38 +188,6 @@
]
}
}
},
"CustomLambdaExecutionPolicy": {
"Type": "AWS::IAM::Policy",
"Properties": {
"PolicyName": "custom-lambda-execution-policy",
"PolicyDocument": {
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"dynamodb:Get*",
"dynamodb:BatchGetItem",
"dynamodb:List*",
"dynamodb:Describe*",
"dynamodb:Scan",
"dynamodb:Query"
],
"Resource": [
"arn:aws:dynamodb:eu-central-1:275192370238:table/Caselaw-avqb7mqbcfgurbeqbfsmuwxjqq-dev",
"arn:aws:dynamodb:eu-central-1:275192370238:table/Caselaw-avqb7mqbcfgurbeqbfsmuwxjqq-dev/index/*"
],
"Effect": "Allow"
}
]
},
"Roles": [
{
"Ref": "LambdaExecutionRole"
}
]
},
"DependsOn": "LambdaExecutionRole"
}
},
"Outputs": {
Expand Down
7 changes: 1 addition & 6 deletions amplify/backend/function/subnetwork/function-parameters.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
{
"lambdaLayers": [
{
"type": "ExternalLayer",
"arn": "arn:aws:lambda:eu-central-1:336392948345:layer:AWSSDKPandas-Python38:3"
}
],
"lambdaLayers": [],
"environmentVariableList": [
{
"cloudFormationParameterName": "region",
Expand Down

0 comments on commit 581bd7f

Please sign in to comment.