Turn on or turn a aws EC2 instance based on the time, using terraform and aws lambda trigger by time Set the AWS environment variables export AWS_ACCESS_KEY_ID="set-here-the-aws-access-key-id" export AWS_SECRET_ACCESS_KEY="set-here-the-secret-key" Deploy to production bash deploy.sh