Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

EB CLI "eb create" ERROR: InvalidParameterValueError - Platform ARN is invalid

I'm trying to create an Elastic Beanstalk node.js environment via the EB CLI. I've ran eb init in my code repo, and this doesn't give me any issues.

Next, when I run eb create to create the environment, I receive the error ERROR: InvalidParameterValueError - Platform ARN is invalid: Not an IAM ARN: 64bit Amazon Linux 2018.03 v4.15.2 running Node.js.

I've searched for this error, it seems like I need to update the platform version, but I can't figure out how to do that.

I also downgraded my node version from v12.18.4 to v12.18.3 because the EB docs didn't say that v12.18.4 was supported.

like image 676
awebdev Avatar asked Sep 27 '20 20:09

awebdev


2 Answers

You can just run:

eb platform select

to select new default platform. Nevertheless, your platform seems fine as it is current one as listed here. Thus there maybe something else causing this error. But still maybe worth changing or re-selecting the platform version.

like image 96
Marcin Avatar answered Sep 18 '22 15:09

Marcin


I ran into a very similar issue with a Python project containing a Dockerfile.

Inside the project I ran eb create --database (version EB CLI 3.19.3).

It prompted me to pick an environment name and DNS CNAME prefix, which was fine.

It then asked to Select a load balancer type.

I picked the default, which is 2 (application).

As soon as I hit enter, I got the following error:

ERROR: InvalidParameterValueError - Platform ARN is invalid: Not an IAM ARN: 64bit Amazon Linux 2 v3.2.4 running Docker.

Following Marcin's hint I ran eb platform select.

It prompted me about Docker:

It appears you are using Docker. Is this correct?
(Y/n): y

It then prompted me to select a platform:

Select a platform branch.
1) Docker running on 64bit Amazon Linux 2
2) Multi-container Docker running on 64bit Amazon Linux
3) Docker running on 64bit Amazon Linux
(default is 1): 1

This solved the problem.

Even though this is (seemingly) the same setup that was picked by default, eb create --database worked without the error afterwards, and even eb status show

Platform: arn:aws:elasticbeanstalk:eu-west-2::platform/Docker running on 64bit Amazon Linux 2/3.2.4
like image 44
Paul P Avatar answered Sep 19 '22 15:09

Paul P