Skip to content

Commit

Permalink
feat: Support Fn::ToJsonString in environment variables (#11461)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jurriaan Proos committed Oct 31, 2022
1 parent d2b6926 commit 0c186a6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/plugins/aws/provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,16 @@ class AwsProvider {
required: ['Fn::Sub'],
additionalProperties: false,
},
awsCfToJsonString: {
type: 'object',
properties: {
'Fn::ToJsonString': {
anyOf: [{ type: 'object' }, { type: 'array' }],
},
},
required: ['Fn::ToJsonString'],
additionalProperties: false,
},
awsIamPolicyAction: { type: 'array', items: { type: 'string' } },
awsIamPolicyPrincipal: {
anyOf: [
Expand Down Expand Up @@ -567,6 +577,7 @@ class AwsProvider {
{ $ref: '#/definitions/awsCfInstruction' },
{ $ref: '#/definitions/awsCfIf' },
{ $ref: '#/definitions/awsCfSelect' },
{ $ref: '#/definitions/awsCfToJsonString' },
],
},
},
Expand Down

0 comments on commit 0c186a6

Please sign in to comment.