How to load a python script as an attachment to a aws:executeScript step as an attachement?

0

From https://docs.aws.amazon.com/systems-manager/latest/userguide/automation-action-executeScript.html I see that you can use an attachement to load code and modules to the execution step. However, it is not clear to me where this code would actually sit. The step only specifies the name of the attachment.

action: "aws:executeScript" inputs: Runtime: runtime Handler: "functionName" InputPayload: scriptInput: '{{parameterValue}}' Script: |- def functionName(events, context): ... Attachment: "scriptAttachment.zip"

in this example where do i put "scriptAttachment.zip" so that it can be access by the SSM Document when it runs?

I would appreciate an example so that I could 1.) load python scripts without them being part of the SSM Docuemnt and 2.) use python modules (i.e. Pandas) that are not part of the default library).

Michael
質問済み 6ヶ月前221ビュー
1回答
1

I think this is what you are looking for: AttachmentsSource.

profile pictureAWS
エキスパート
kentrad
回答済み 6ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ