Skip to content

Commit

Permalink
Support export ModulePackage in AWS::CloudFormation::ModuleVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
alexisfacques committed Mar 27, 2021
1 parent 83b4378 commit cc5c741
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion awscli/customizations/cloudformation/artifact_exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,15 @@ class GlueJobCommandScriptLocationResource(Resource):
PROPERTY_NAME = "Command.ScriptLocation"


class CloudFormationModuleVersionResource(Resource):
"""
Represents CloudFormation::ModuleVersion resource.
"""
RESOURCE_TYPE = "AWS::CloudFormation::ModuleVersion"
PROPERTY_NAME = "ModulePackage"
FORCE_ZIP = True


RESOURCES_EXPORT_LIST = [
ServerlessFunctionResource,
ServerlessApiResource,
Expand All @@ -513,7 +522,8 @@ class GlueJobCommandScriptLocationResource(Resource):
ServerlessLayerVersionResource,
LambdaLayerVersionResource,
GlueJobCommandScriptLocationResource,
StepFunctionsStateMachineDefinitionResource
StepFunctionsStateMachineDefinitionResource,
CloudFormationModuleVersionResource
]

METADATA_EXPORT_LIST = [
Expand Down

0 comments on commit cc5c741

Please sign in to comment.