From f020bd823905f012d2936a876e0ea841f5688883 Mon Sep 17 00:00:00 2001 From: Ron Korving <38023285+mt-ronkorving@users.noreply.github.com> Date: Wed, 18 Jan 2023 21:29:56 +0900 Subject: [PATCH] feat: Recognize `Fn::Base64` as CloudFormation instruction (#11671) --- 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' }, ], }, },