Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support export ModulePackage in AWS::CloudFormation::ModuleVersion #6044

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
1 change: 1 addition & 0 deletions awscli/examples/cloudformation/_package_description.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ This command can upload local artifacts referenced in the following places:
- ``Location`` parameter for the ``AWS::Include`` transform
- ``SourceBundle`` property for the ``AWS::ElasticBeanstalk::ApplicationVersion`` resource
- ``TemplateURL`` property for the ``AWS::CloudFormation::Stack`` resource
- ``ModulePackage`` property for the ``AWS::CloudFormation::ModuleVersion`` resource
- ``Command.ScriptLocation`` property for the ``AWS::Glue::Job`` resource
- ``DefinitionS3Location`` property for the ``AWS::StepFunctions::StateMachine`` resource

Expand Down