Skip to content

aws-samples/aws-systems-manager-distribute-ami

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

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

Implementation

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:

Create Automation Document

  1. On the AWS Systems Manager console, choose Documents in the navigation pane.
  2. Choose Create document Automation.
  3. Select the pencil icon and enter a document name.
  4. Choose Code to move to code input screen.
  5. Copy contents from distributeami.yml.
  6. Choose Create runbook.

The Automation Document is visible in documents “Owned by me”. This document is only available to your AWS Account.

Activate Post-launch custom action

Post-launch settings must first be activated on the Post-launch template page.

  1. On the Application Migration Service console, choose Source Servers in the navigation pane.
  2. 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).
  3. Choose Post-launch settings.
  4. Choose Create action.
  5. Provide a name for the Action and ensure Activate this action is checked.
  6. For Systems Manager document name choose the Automation Document you created.
  7. 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.
  8. Enter values for the Action Parameters. Some parameters are optional depending if copying the AMI into another AWS account is required.
  9. Choose Add action. This step creates the action.

Security

See CONTRIBUTING for more information.

License

This library is licensed under the MIT-0 License. See the LICENSE file.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published