From 96dcc3912c69f27531f9f2eb1013128d735ae740 Mon Sep 17 00:00:00 2001 From: Ron Korving Date: Thu, 12 Jan 2023 16:46:59 +0900 Subject: [PATCH] Add support for Fn::Base64 and allow it to be used in environment variables --- lib/plugins/aws/provider.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lib/plugins/aws/provider.js b/lib/plugins/aws/provider.js index 723d88dad200..3e9965d2ccf2 100644 --- a/lib/plugins/aws/provider.js +++ b/lib/plugins/aws/provider.js @@ -480,6 +480,18 @@ class AwsProvider { required: ['Fn::Sub'], additionalProperties: false, }, + awsCfBase64: { + type: 'object', + properties: { + 'Fn::Base64': { + anyOf: [ + { type: 'string' }, + { $ref: '#/definitions/awsCfFunction' }, + { $ref: '#/definitions/awsCfToJsonString' }, + ], + }, + }, + }, awsCfToJsonString: { type: 'object', properties: { @@ -578,6 +590,7 @@ class AwsProvider { { $ref: '#/definitions/awsCfIf' }, { $ref: '#/definitions/awsCfSelect' }, { $ref: '#/definitions/awsCfToJsonString' }, + { $ref: '#/definitions/awsCfBase64' }, ], }, },