bakdata / aws-lambda-r-runtime

Serverless execution of R code on AWS Lambda
https://medium.com/bakdata/running-r-on-aws-lambda-9d40643551a6
MIT License
143 stars 52 forks source link

AMI in remote_compile_and_deploy.sh is not public #43

Closed ngfrey closed 5 years ago

ngfrey commented 5 years ago

The command:

instance_id=$(aws ec2 run-instances --image-id ami-657bd20a --count 1 --instance-type t2.medium \ --instance-initiated-shutdown-behavior terminate --iam-instance-profile Name='"'${PROFILE}'"' \ --user-data '#!/bin/bash

calls an AMI that either doesn't exist or isn't publicly available. What AMI would you recommend we use instead?

philipp94831 commented 5 years ago

Hi @ngfrey, the AMI is provided by Amazon and should be public. Maybe they changed something in their end. As explained here maybe try ami-0cfbf4f6db41068ac. Hope this helps :)

ngfrey commented 5 years ago

@philipp94831 Thank you. Using this page I was able to find an AMI for my region (Oregon). I'm going to try to build a Lambda layer out on EMR using this setup this weekend. Again, thank you. -NF