From 081e3b460ac0667685dbcaea66392cd3cab59dd1 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Tue, 28 May 2024 22:18:11 +0100 Subject: [PATCH] fix: add pttr for dynamodb and extra clone env for custom ssm condition --- .../backend/api/colonycdapp/parameters.json | 3 +- .../lambdaParams-cloudformation-template.json | 30 +++++++++++++------ 2 files changed, 23 insertions(+), 10 deletions(-) diff --git a/amplify/backend/api/colonycdapp/parameters.json b/amplify/backend/api/colonycdapp/parameters.json index 07cfd943911..20afebf5e83 100644 --- a/amplify/backend/api/colonycdapp/parameters.json +++ b/amplify/backend/api/colonycdapp/parameters.json @@ -1,5 +1,6 @@ { "AppSyncApiName": "colonycdapp", "DynamoDBBillingMode": "PAY_PER_REQUEST", - "DynamoDBEnableServerSideEncryption": false + "DynamoDBEnableServerSideEncryption": false, + "DynamoDBEnablePointInTimeRecovery": "true" } \ No newline at end of file diff --git a/amplify/backend/custom/lambdaParams/lambdaParams-cloudformation-template.json b/amplify/backend/custom/lambdaParams/lambdaParams-cloudformation-template.json index 55d26ab7c54..7fbbd628063 100644 --- a/amplify/backend/custom/lambdaParams/lambdaParams-cloudformation-template.json +++ b/amplify/backend/custom/lambdaParams/lambdaParams-cloudformation-template.json @@ -6,12 +6,24 @@ } }, "Conditions": { - "IsQaEnv": { - "Fn::Equals": [ + "IsQaOrClonedEnv": { + "Fn::Or": [ { - "Ref": "env" + "Fn::Equals": [ + { + "Ref": "env" + }, + "qaarbsep" + ] }, - "qaarbsep" + { + "Fn::Equals": [ + { + "Ref": "env" + }, + "qaarbsepcl" + ] + } ] } }, @@ -25,7 +37,7 @@ "Type": "String", "Value": { "Fn::If": [ - "IsQaEnv", + "IsQaOrClonedEnv", "arbitrumSepolia", "arbitrumOne" ] @@ -42,7 +54,7 @@ "Type": "String", "Value": { "Fn::If": [ - "IsQaEnv", + "IsQaOrClonedEnv", "https://arbitrum-sepolia.core.chainstack.com/5ee6818452437d552323df146564523d", "https://arbitrum-mainnet.core.chainstack.com/09365a049b04d0d7f3e3d40f97c18f2d" ] @@ -59,7 +71,7 @@ "Type": "String", "Value": { "Fn::If": [ - "IsQaEnv", + "IsQaOrClonedEnv", "0x7777494e3d8cce0D3570E21FEf820F9Fee077777", "0xcccccdcc0ccf6c708d860e19353c5f9a49accccc" ] @@ -76,7 +88,7 @@ "Type": "String", "Value": { "Fn::If": [ - "IsQaEnv", + "IsQaOrClonedEnv", "https://arbitrum-sepolia.colony.io/reputation/arbitrum-sepolia", "https://app.colony.io/reputation/arbitrum-one" ] @@ -93,7 +105,7 @@ "Type": "String", "Value": { "Fn::If": [ - "IsQaEnv", + "IsQaOrClonedEnv", "https://wmc3qb57g5cnhhpok2bvdhmism.appsync-api.eu-west-2.amazonaws.com/graphql", "https://o4mnvckgrjhanhdnspfchnl6py.appsync-api.eu-west-2.amazonaws.com/graphql" ]