Distribute an Amazon Machine Image to another AWS Account using AWS Application Migration Service Post-launch automation
Read the full blog post Distribute an Amazon Machine Image to another AWS Account using AWS Application Migration Service Post-launch automation
Use the following steps to create the Automation Document and configure the Application Migration Service to run the document as a post-launch custom action:
- On the AWS Systems Manager console, choose Documents in the navigation pane.
- Choose Create document Automation.
- Select the pencil icon and enter a document name.
- Choose Code to move to code input screen.
- Copy contents from distributeami.yml.
- Choose Create runbook.
The Automation Document is visible in documents “Owned by me”. This document is only available to your AWS Account.
Post-launch settings must first be activated on the Post-launch template page.
- On the Application Migration Service console, choose Source Servers in the navigation pane.
- Choose the source server to configure with post-launch settings (Can also be configured as a Post-launch settings template to be applied to all newly added servers).
- Choose Post-launch settings.
- Choose Create action.
- Provide a name for the Action and ensure Activate this action is checked.
- For Systems Manager document name choose the Automation Document you created.
- Ensure the Order number is correct. It is likely AMI creation and sharing is the last post-launch action to be completed so it should have the highest order number.
- Enter values for the Action Parameters. Some parameters are optional depending if copying the AMI into another AWS account is required.
- Choose Add action. This step creates the action.
See CONTRIBUTING for more information.
This library is licensed under the MIT-0 License. See the LICENSE file.