我是GIT的新手,是否有辦法拉取保存用戶數據的GIT腳本以通過CLI配置AWS EC2實例?aws用戶數據的git bash腳本
aws ec2 run-instances --image-id ami-cd0f5cb6 --count 1 --instance-type t2.micro
--key-name ciServer --subnet-id subnet-2f31275b --associate-public-ip-address
--security-group-ids sg-762a5006 --block-device-mappings '[{"DeviceName":"/dev/sda1","Ebs":{"VolumeSize":20}}]'
--tag-specifications 'ResourceType=instance,Tags=[{Key=Name,Value=My New Server}]'
--user-data [email protected]/myUserDatarepo.git
什麼是AMI的基礎操作系統? Windows還是Linux? – strongjz
這是一個Ubuntu服務器16.04。如果您有任何問題,請告訴我! – Lgalan90