From 5a2ffd24bcf1a08a67b51a5bb132c07283e32bfb 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 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/plugins/aws/provider.js b/lib/plugins/aws/provider.js index 723d88dad20..7af79fce0a4 100644 --- a/lib/plugins/aws/provider.js +++ b/lib/plugins/aws/provider.js @@ -338,6 +338,8 @@ class AwsProvider { { $ref: '#/definitions/awsCfGetAtt' }, { $ref: '#/definitions/awsCfRef' }, { $ref: '#/definitions/awsCfSub' }, + { $ref: '#/definitions/awsCfBase64' }, + { $ref: '#/definitions/awsCfToJsonString' }, ], }, awsCfGetAtt: { @@ -480,6 +482,12 @@ class AwsProvider { required: ['Fn::Sub'], additionalProperties: false, }, + awsCfBase64: { + type: 'object', + properties: { + 'Fn::Base64': {}, + }, + }, awsCfToJsonString: { type: 'object', properties: { @@ -577,7 +585,6 @@ class AwsProvider { { $ref: '#/definitions/awsCfInstruction' }, { $ref: '#/definitions/awsCfIf' }, { $ref: '#/definitions/awsCfSelect' }, - { $ref: '#/definitions/awsCfToJsonString' }, ], }, },