awscli error - Can't convert 'NoneType' object to str implicitly
up vote
0
down vote
favorite
I'm attempting to create an environment using:
eb create xxx-env --database
but I'm getting the following Python error:
Can't convert 'NoneType' object to str implicitly
From reading this it seems that the issue is to do with the cli tool not being able to get the credentials.
I have created a .aws/config file and a ./aws/credentials file but still nothing.
eb --version
=
EB CLI 3.14.6 (Python 3.5.2)
Has anyone come up against this?
EDIT
The full output of the eb create
command is:
Enter an RDS DB username (default is "ebroot"):
Enter an RDS DB master password:
Retype password to confirm:
Creating application version archive "app-26c8a-181108_105531".
Uploading beebop-staging/app-26c8a-181108_105531.zip to S3. This may take a while.
Upload Complete.
ERROR: TypeError - Can't convert 'NoneType' object to str implicitly
python amazon-web-services
|
show 1 more comment
up vote
0
down vote
favorite
I'm attempting to create an environment using:
eb create xxx-env --database
but I'm getting the following Python error:
Can't convert 'NoneType' object to str implicitly
From reading this it seems that the issue is to do with the cli tool not being able to get the credentials.
I have created a .aws/config file and a ./aws/credentials file but still nothing.
eb --version
=
EB CLI 3.14.6 (Python 3.5.2)
Has anyone come up against this?
EDIT
The full output of the eb create
command is:
Enter an RDS DB username (default is "ebroot"):
Enter an RDS DB master password:
Retype password to confirm:
Creating application version archive "app-26c8a-181108_105531".
Uploading beebop-staging/app-26c8a-181108_105531.zip to S3. This may take a while.
Upload Complete.
ERROR: TypeError - Can't convert 'NoneType' object to str implicitly
python amazon-web-services
Does the IAM user that you are using have the right Policies?
– Matt D
Nov 8 at 10:39
Could you please show us the entire stack trace?
– TenorFlyy
Nov 8 at 10:40
Yes the IAM user belongs to a group with AWSElasticBeanstalkFullAccess
– Mark Kenny
Nov 8 at 10:58
Where have you created the credentials file, because you are supposed to have it under ~/.aws/ , but './' isn't the equivalent of '~' . The folder .aws must be under your user home directory.
– TenorFlyy
Nov 8 at 11:13
Sorry yes, I meant ~/.aws ... appologies
– Mark Kenny
Nov 8 at 11:17
|
show 1 more comment
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm attempting to create an environment using:
eb create xxx-env --database
but I'm getting the following Python error:
Can't convert 'NoneType' object to str implicitly
From reading this it seems that the issue is to do with the cli tool not being able to get the credentials.
I have created a .aws/config file and a ./aws/credentials file but still nothing.
eb --version
=
EB CLI 3.14.6 (Python 3.5.2)
Has anyone come up against this?
EDIT
The full output of the eb create
command is:
Enter an RDS DB username (default is "ebroot"):
Enter an RDS DB master password:
Retype password to confirm:
Creating application version archive "app-26c8a-181108_105531".
Uploading beebop-staging/app-26c8a-181108_105531.zip to S3. This may take a while.
Upload Complete.
ERROR: TypeError - Can't convert 'NoneType' object to str implicitly
python amazon-web-services
I'm attempting to create an environment using:
eb create xxx-env --database
but I'm getting the following Python error:
Can't convert 'NoneType' object to str implicitly
From reading this it seems that the issue is to do with the cli tool not being able to get the credentials.
I have created a .aws/config file and a ./aws/credentials file but still nothing.
eb --version
=
EB CLI 3.14.6 (Python 3.5.2)
Has anyone come up against this?
EDIT
The full output of the eb create
command is:
Enter an RDS DB username (default is "ebroot"):
Enter an RDS DB master password:
Retype password to confirm:
Creating application version archive "app-26c8a-181108_105531".
Uploading beebop-staging/app-26c8a-181108_105531.zip to S3. This may take a while.
Upload Complete.
ERROR: TypeError - Can't convert 'NoneType' object to str implicitly
python amazon-web-services
python amazon-web-services
edited Nov 8 at 11:01
asked Nov 8 at 10:16
Mark Kenny
789923
789923
Does the IAM user that you are using have the right Policies?
– Matt D
Nov 8 at 10:39
Could you please show us the entire stack trace?
– TenorFlyy
Nov 8 at 10:40
Yes the IAM user belongs to a group with AWSElasticBeanstalkFullAccess
– Mark Kenny
Nov 8 at 10:58
Where have you created the credentials file, because you are supposed to have it under ~/.aws/ , but './' isn't the equivalent of '~' . The folder .aws must be under your user home directory.
– TenorFlyy
Nov 8 at 11:13
Sorry yes, I meant ~/.aws ... appologies
– Mark Kenny
Nov 8 at 11:17
|
show 1 more comment
Does the IAM user that you are using have the right Policies?
– Matt D
Nov 8 at 10:39
Could you please show us the entire stack trace?
– TenorFlyy
Nov 8 at 10:40
Yes the IAM user belongs to a group with AWSElasticBeanstalkFullAccess
– Mark Kenny
Nov 8 at 10:58
Where have you created the credentials file, because you are supposed to have it under ~/.aws/ , but './' isn't the equivalent of '~' . The folder .aws must be under your user home directory.
– TenorFlyy
Nov 8 at 11:13
Sorry yes, I meant ~/.aws ... appologies
– Mark Kenny
Nov 8 at 11:17
Does the IAM user that you are using have the right Policies?
– Matt D
Nov 8 at 10:39
Does the IAM user that you are using have the right Policies?
– Matt D
Nov 8 at 10:39
Could you please show us the entire stack trace?
– TenorFlyy
Nov 8 at 10:40
Could you please show us the entire stack trace?
– TenorFlyy
Nov 8 at 10:40
Yes the IAM user belongs to a group with AWSElasticBeanstalkFullAccess
– Mark Kenny
Nov 8 at 10:58
Yes the IAM user belongs to a group with AWSElasticBeanstalkFullAccess
– Mark Kenny
Nov 8 at 10:58
Where have you created the credentials file, because you are supposed to have it under ~/.aws/ , but './' isn't the equivalent of '~' . The folder .aws must be under your user home directory.
– TenorFlyy
Nov 8 at 11:13
Where have you created the credentials file, because you are supposed to have it under ~/.aws/ , but './' isn't the equivalent of '~' . The folder .aws must be under your user home directory.
– TenorFlyy
Nov 8 at 11:13
Sorry yes, I meant ~/.aws ... appologies
– Mark Kenny
Nov 8 at 11:17
Sorry yes, I meant ~/.aws ... appologies
– Mark Kenny
Nov 8 at 11:17
|
show 1 more comment
1 Answer
1
active
oldest
votes
up vote
0
down vote
To confirm, the issue was in [app_directory]/.elasticbeanstalk/config.yml where the region was not being set. I removed the region from ~/.aws/config forcing eb init
to prompt me to choose the region. After doing this the region was set correctly and eb create ...
worked as expected
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
To confirm, the issue was in [app_directory]/.elasticbeanstalk/config.yml where the region was not being set. I removed the region from ~/.aws/config forcing eb init
to prompt me to choose the region. After doing this the region was set correctly and eb create ...
worked as expected
add a comment |
up vote
0
down vote
To confirm, the issue was in [app_directory]/.elasticbeanstalk/config.yml where the region was not being set. I removed the region from ~/.aws/config forcing eb init
to prompt me to choose the region. After doing this the region was set correctly and eb create ...
worked as expected
add a comment |
up vote
0
down vote
up vote
0
down vote
To confirm, the issue was in [app_directory]/.elasticbeanstalk/config.yml where the region was not being set. I removed the region from ~/.aws/config forcing eb init
to prompt me to choose the region. After doing this the region was set correctly and eb create ...
worked as expected
To confirm, the issue was in [app_directory]/.elasticbeanstalk/config.yml where the region was not being set. I removed the region from ~/.aws/config forcing eb init
to prompt me to choose the region. After doing this the region was set correctly and eb create ...
worked as expected
answered Nov 8 at 11:36
Mark Kenny
789923
789923
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53205619%2fawscli-error-cant-convert-nonetype-object-to-str-implicitly%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Does the IAM user that you are using have the right Policies?
– Matt D
Nov 8 at 10:39
Could you please show us the entire stack trace?
– TenorFlyy
Nov 8 at 10:40
Yes the IAM user belongs to a group with AWSElasticBeanstalkFullAccess
– Mark Kenny
Nov 8 at 10:58
Where have you created the credentials file, because you are supposed to have it under ~/.aws/ , but './' isn't the equivalent of '~' . The folder .aws must be under your user home directory.
– TenorFlyy
Nov 8 at 11:13
Sorry yes, I meant ~/.aws ... appologies
– Mark Kenny
Nov 8 at 11:17