Skip to content

Commit 0c186a6

Browse files
author
Jurriaan Proos
authored
feat: Support Fn::ToJsonString in environment variables (#11461)
1 parent d2b6926 commit 0c186a6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

lib/plugins/aws/provider.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,16 @@ class AwsProvider {
480480
required: ['Fn::Sub'],
481481
additionalProperties: false,
482482
},
483+
awsCfToJsonString: {
484+
type: 'object',
485+
properties: {
486+
'Fn::ToJsonString': {
487+
anyOf: [{ type: 'object' }, { type: 'array' }],
488+
},
489+
},
490+
required: ['Fn::ToJsonString'],
491+
additionalProperties: false,
492+
},
483493
awsIamPolicyAction: { type: 'array', items: { type: 'string' } },
484494
awsIamPolicyPrincipal: {
485495
anyOf: [
@@ -567,6 +577,7 @@ class AwsProvider {
567577
{ $ref: '#/definitions/awsCfInstruction' },
568578
{ $ref: '#/definitions/awsCfIf' },
569579
{ $ref: '#/definitions/awsCfSelect' },
580+
{ $ref: '#/definitions/awsCfToJsonString' },
570581
],
571582
},
572583
},

0 commit comments

Comments
 (0)