Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <powershell>
- # Comment: EC2config service executes user data upon boot, if configured to do so.
- # EC2config log is available at: C:\Program Files\Amazon\Ec2ConfigService\Logs\Ec2ConfigLog.txt
- mkdir "c:\datadog\download"
- Set-Location "c:\datadog\download"
- Read-S3Object -BucketName ddagent-windows-stable -Key ddagent-cli.msi -File c:\datadog\download\ddagent-cli.msi
- & msiexec --% /qn /i c:\datadog\download\ddagent-cli.msi APIKEY="abcdefghijklmnopqrstuvwxyz123456" TAGS="environment:production"
- </powershell>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement