Skip to content

Commit

Permalink
Add support for Fn::Base64 and allow it to be used in environment var…
Browse files Browse the repository at this point in the history
…iables
  • Loading branch information
mt-ronkorving committed Jan 12, 2023
1 parent 2f4de84 commit 848eb6a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion lib/plugins/aws/provider.js
Expand Up @@ -338,6 +338,7 @@ class AwsProvider {
{ $ref: '#/definitions/awsCfGetAtt' },
{ $ref: '#/definitions/awsCfRef' },
{ $ref: '#/definitions/awsCfSub' },
{ $ref: '#/definitions/awsCfToJsonString' },
],
},
awsCfGetAtt: {
Expand Down Expand Up @@ -480,6 +481,14 @@ class AwsProvider {
required: ['Fn::Sub'],
additionalProperties: false,
},
awsCfBase64: {
type: 'object',
properties: {
'Fn::Base64': {
anyOf: [{ const: '' }, { $ref: '#/definitions/awsCfInstruction' }],
},
},
},
awsCfToJsonString: {
type: 'object',
properties: {
Expand Down Expand Up @@ -577,7 +586,7 @@ class AwsProvider {
{ $ref: '#/definitions/awsCfInstruction' },
{ $ref: '#/definitions/awsCfIf' },
{ $ref: '#/definitions/awsCfSelect' },
{ $ref: '#/definitions/awsCfToJsonString' },
{ $ref: '#/definitions/awsCfBase64' },
],
},
},
Expand Down

0 comments on commit 848eb6a

Please sign in to comment.