Commit 994d3c3 1 parent 13e7bde commit 994d3c3 Copy full SHA for 994d3c3
File tree 2 files changed +1
-14
lines changed
packages/@aws-cdk/aws-codebuild
2 files changed +1
-14
lines changed Original file line number Diff line number Diff line change @@ -751,7 +751,7 @@ export class Project extends ProjectBase {
751
751
artifacts : artifactsConfig . artifactsProperty ,
752
752
serviceRole : this . role . roleArn ,
753
753
environment : this . renderEnvironment ( props . environment , environmentVariables ) ,
754
- fileSystemLocations : this . renderFileSystemLocations ( ) ,
754
+ fileSystemLocations : Lazy . anyValue ( { produce : ( ) => this . renderFileSystemLocations ( ) } ) ,
755
755
// lazy, because we have a setter for it in setEncryptionKey
756
756
encryptionKey : Lazy . stringValue ( { produce : ( ) => this . _encryptionKey && this . _encryptionKey . keyArn } ) ,
757
757
badgeEnabled : props . badge ,
Original file line number Diff line number Diff line change @@ -1036,12 +1036,6 @@ export = {
1036
1036
buildSpec : codebuild . BuildSpec . fromObject ( {
1037
1037
version : '0.2' ,
1038
1038
} ) ,
1039
- fileSystemLocations : [ codebuild . FileSystemLocation . efs ( {
1040
- identifier : 'myidentifier2' ,
1041
- location : 'myclodation.mydnsroot.com:/loc' ,
1042
- mountPoint : '/media' ,
1043
- mountOptions : 'opts' ,
1044
- } ) ] ,
1045
1039
} ) ;
1046
1040
project . addFileSystemLocation ( codebuild . FileSystemLocation . efs ( {
1047
1041
identifier : 'myidentifier3' ,
@@ -1052,13 +1046,6 @@ export = {
1052
1046
1053
1047
expect ( stack ) . to ( haveResourceLike ( 'AWS::CodeBuild::Project' , {
1054
1048
'FileSystemLocations' : [
1055
- {
1056
- 'Identifier' : 'myidentifier2' ,
1057
- 'MountPoint' : '/media' ,
1058
- 'MountOptions' : 'opts' ,
1059
- 'Location' : 'myclodation.mydnsroot.com:/loc' ,
1060
- 'Type' : 'EFS' ,
1061
- } ,
1062
1049
{
1063
1050
'Identifier' : 'myidentifier3' ,
1064
1051
'MountPoint' : '/media' ,
You can’t perform that action at this time.
0 commit comments