Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Content-Type: multipart/mixed; boundary="//"
- MIME-Version: 1.0
- --//
- Content-Type: text/cloud-config; charset="us-ascii"
- MIME-Version: 1.0
- Content-Transfer-Encoding: 7bit
- Content-Disposition: attachment; filename="cloud-config.txt"
- #cloud-config
- cloud_final_modules:
- - [scripts-user, always]
- --//
- Content-Type: text/x-shellscript; charset="us-ascii"
- MIME-Version: 1.0
- Content-Transfer-Encoding: 7bit
- Content-Disposition: attachment; filename="userdata.txt"
- #!/bin/bash
- echo "Start user_data" > /tmp/bootstrap.log
- yum -y update >> /tmp/bootstrap.log
- echo "Trying to read the Artifactory secret value" >> /tmp/bootstrap.log
- ARTIFACTORY_USER="swf-aptitude-nl" >> /tmp/bootstrap.log
- export AWS_DEFAULT_REGION="eu-west-1"
- ARTIFACTORY_PASSWORD=$(aws secretsmanager get-secret-value --secret-id ArtifactoryCredentials | jq --raw-output '.SecretString')
- curl -s -u $ARTIFACTORY_USER:$ARTIFACTORY_PASSWORD https://swfactory.aegon.com/artifactory/aptitude/jdk-8u231-linux/jdk-8u231-linux-x64.rpm
- ls -ltr jdk-8u231-linux-x64.rpm >> /tmp/bootstrap.log
- java -version >> /tmp/bootstrap.log
- --//
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement