- 浏览: 3512 次
- 性别:
- 来自: 北京
最新评论
文章列表
wget https://www.python.org/ftp/python/3.6.1/Python-3.6.1.tgz
Wget https://s3.amazonaws.com/aws-cli/awscli-bundle.zip
curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
mkdir -p /usr/local/python3
tar -zxvf Python-3.6.1.tgz
make && make ...
#!/bin/bash
da=`date +%y%m%d`
su - oracle <<EON
#sh /RDSBackup/scripts/asdp-backup.sh &
for child in `ps -ef|grep "$$"|grep -v grep|grep -v "$PPID"|awk '{print $2}'`
do
wait $child
echo "process $child exited"
done
wait
echo "All backup i ...
import boto3
REGION = 'cn-north-1' EC2 = boto3.client('ec2', region_name=REGION)
sqs = boto3.client('sqs')queue_url = 'https://sqs.*******'
def lambda_terminate_ec2(event, context): #message = event['message']
response = sqs.receive_message( QueueUrl=queue_url, Attribu ...
使用lambda定时启动一个EC2。
""" Lambda to launch ec2-instances """
import boto3
REGION = 'cn-north-1' # region to launch instance.
EC2 = boto3.client('ec2', region_name=REGION)
def lambda_to_ec2(event, context):
""" Lambda handler taking [messa ...