From 94272bed9363b1dd4cbe58d796b1ddfe95ff9d8f Mon Sep 17 00:00:00 2001 From: Jurriaan Proos Date: Thu, 20 Oct 2022 19:56:49 +0200 Subject: [PATCH] feat: Extend AWS provider schema to support Fn::ToJsonString in environment variables --- lib/plugins/aws/provider.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/plugins/aws/provider.js b/lib/plugins/aws/provider.js index 91644a56ffa..424455edd04 100644 --- a/lib/plugins/aws/provider.js +++ b/lib/plugins/aws/provider.js @@ -480,6 +480,16 @@ class AwsProvider { required: ['Fn::Sub'], additionalProperties: false, }, + awsCfToJsonString: { + type: 'object', + properties: { + 'Fn::ToJsonString': { + anyOf: [{ type: 'object' }, { type: 'array' }], + }, + }, + required: ['Fn::ToJsonString'], + additionalProperties: false, + }, awsIamPolicyAction: { type: 'array', items: { type: 'string' } }, awsIamPolicyPrincipal: { anyOf: [ @@ -567,6 +577,7 @@ class AwsProvider { { $ref: '#/definitions/awsCfInstruction' }, { $ref: '#/definitions/awsCfIf' }, { $ref: '#/definitions/awsCfSelect' }, + { $ref: '#/definitions/awsCfToJsonString' }, ], }, },