Reputation: 1
If a module is registered in CloudFormation with a default version, is there a way to specify a different version in the CF YAML file? For instance, if the default version is '000002' but I want to use '000001', what would I modify in this configuration?
sftpTransferLambda:
Type: ORG::Lambda::SFTPTransfer::MODULE
Properties:
SourceBucketName: !Sub l.lz-${Environment}-${Client}-${DataSource}
DestinationBucketName: !Sub l.bronze-${Environment}-${Client}-${DataSource}
Upvotes: 0
Views: 13
Reputation: 1
To specify a different version of a registered CloudFormation module, you need to use the TypeVersionArn
property. Here’s the correct approach:
sftpTransferLambda:
Type: ORG::Lambda::SFTPTransfer::MODULE
TypeVersionArn: "arn:aws:cloudformation:us-east-1:123456789012:type/module/ORG-Lambda-SFTPTransfer/000001"
Properties:
SourceBucketName: !Sub l.lz-${Environment}-${Client}-${DataSource}
DestinationBucketName: !Sub l.bronze-${Environment}-${Client}-${DataSource}
Upvotes: 0