A company wants to use AWS Systems Manager documents to bootstrap physical laptops for developers The bootstrap code Is stored in GitHub A DevOps engineer has already created a Systems Manager activation, installed the Systems Manager agent with the registration code, and installed an activation ID on all the laptops.
Which set of steps should be taken next?
Configure the Systems Manager Document to Use the aws-downloadContent Plugin with a sourceType of GitHub and sourcelnfo with the Repository Details:
The aws-downloadContent plugin can download content from various sources, including GitHub, which is necessary for bootstrapping the laptops with the code stored in the GitHub repository.
schemaVersion: '2.2'
description: 'Download and run bootstrap script from GitHub'
mainSteps:
- action: aws:downloadContent
name: downloadBootstrapScript
inputs:
sourceType: GitHub
sourceInfo: '{'owner':'my-org','repository':'my-repo','path':'scripts/bootstrap.sh','getOptions':'branch:main'}'
destinationPath: /tmp/bootstrap.sh
- action: aws:runShellScript
name: runBootstrapScript
inputs:
runCommand:
- chmod +x /tmp/bootstrap.sh
- /tmp/bootstrap.sh
This setup ensures that the bootstrap code is downloaded from GitHub and executed on the laptops using Systems Manager.
Skye
9 months agoRoosevelt
9 months agoNoelia
9 months agoIola
10 months agoLashon
9 months agoJacqueline
9 months agoTatum
10 months agoAlesia
9 months agoAnna
9 months agoVanesa
9 months agoShanda
10 months agoElinore
10 months agoSharika
10 months agoLottie
10 months agoJusta
10 months agoRosalind
10 months agoNaomi
11 months agoDelisa
10 months agoSang
10 months agoNaomi
10 months agoElinore
11 months agoDoretha
11 months agoMarla
10 months agoKip
10 months agoWade
10 months agoAmira
10 months ago