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
3 months agoRoosevelt
3 months agoNoelia
3 months agoIola
3 months agoLashon
3 months agoJacqueline
3 months agoTatum
3 months agoAlesia
3 months agoAnna
3 months agoVanesa
3 months agoShanda
4 months agoElinore
4 months agoSharika
4 months agoLottie
3 months agoJusta
3 months agoRosalind
4 months agoNaomi
4 months agoDelisa
4 months agoSang
4 months agoNaomi
4 months agoElinore
4 months agoDoretha
4 months agoMarla
3 months agoKip
3 months agoWade
4 months agoAmira
4 months ago