From e75e998e9238c8d59653ec2533c9fb7c3f0e546a Mon Sep 17 00:00:00 2001 From: Devon Powell Date: Thu, 24 Sep 2020 11:28:37 -0400 Subject: [PATCH] fix(Config Schema): Recognize CF intrinsic functions in vpc config Enable the use of Ref, Fn::Join, Fn::Sub, Fn::Import and Fn::GetAtt when defining the vpc.subnetIds and vpc.securityGroupIds. (PR #8283) --- lib/plugins/aws/provider/awsProvider.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/plugins/aws/provider/awsProvider.js b/lib/plugins/aws/provider/awsProvider.js index 47aaf08c04f..c8515808c56 100644 --- a/lib/plugins/aws/provider/awsProvider.js +++ b/lib/plugins/aws/provider/awsProvider.js @@ -282,16 +282,12 @@ class AwsProvider { properties: { securityGroupIds: { type: 'array', - items: { - type: 'string', - }, + items: { $ref: '#/definitions/awsCfInstruction' }, maxItems: 5, }, subnetIds: { type: 'array', - items: { - type: 'string', - }, + items: { $ref: '#/definitions/awsCfInstruction' }, maxItems: 16, }, },