Skip to content

Commit

Permalink
feat(AWS Lambda): Recognize CF functions in fileSystemConfig.arn
Browse files Browse the repository at this point in the history
(PR #8265)
  • Loading branch information
pgrzesik committed Sep 18, 2020
1 parent 4b86fa5 commit 4bf6543
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions lib/plugins/aws/provider/awsProvider.js
Expand Up @@ -331,9 +331,16 @@ class AwsProvider {
type: 'object',
properties: {
arn: {
type: 'string',
pattern:
'^arn:aws[a-zA-Z-]*:elasticfilesystem:[a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-[1-9]{1}:[0-9]{12}:access-point/fsap-[a-f0-9]{17}$',
oneOf: [
{
type: 'string',
pattern:
'^arn:aws[a-zA-Z-]*:elasticfilesystem:[a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-[1-9]{1}:[0-9]{12}:access-point/fsap-[a-f0-9]{17}$',
},
{ $ref: '#/definitions/awsCfGetAtt' },
{ $ref: '#/definitions/awsCfJoin' },
{ $ref: '#/definitions/awsCfImport' },
],
},
localMountPath: { type: 'string', pattern: '^/mnt/[a-zA-Z0-9-_.]+$' },
},
Expand Down

0 comments on commit 4bf6543

Please sign in to comment.