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