aws-samples / amazon-ecs-java-microservices

This is a reference architecture for java microservice on Amazon ECS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OError: [Errno 2] No such file or directory: '/home/ubuntu/.docker/config.json

sudhakarVuppalapati opened this issue · comments

python setup.py -m setup -r us-west-1
INFO:main:Mode: setup
INFO:botocore.credentials:Found credentials in shared credentials file: ~/.aws/credentials
ERROR:main:An error occurred (AccessDenied) when calling the CreateRole operation: User: arn:aws:iam::638370140697:user/Sudhakar is not authorized to perform: iam:CreateRole on resource: arn:aws:iam::638370140697:role/sudhakar
Traceback (most recent call last):
File "setup.py", line 632, in
main()
File "setup.py", line 622, in main
setup_results = setup(project_name=project_name, service_list=service_list, region=region)
File "setup.py", line 294, in setup
docker_login_config()
File "setup.py", line 252, in docker_login_config
with open(filename, 'r+') as f:
IOError: [Errno 2] No such file or directory: '/home/ubuntu/.docker/config.json'

Please help me what i am doing wrong..

I have changed "MicroECSServiceRole" to sudhakar my name

setup.py -m setup -r us-west-1
INFO:main:Mode: setup
INFO:botocore.credentials:Found credentials in shared credentials file: ~/.aws/credentials
INFO:main:ECS Service Role Create: arn:aws:iam::638370140697:role/sudhakar1
INFO:main:Task Role Create: arn:aws:iam::638370140697:role/MicroECSTaskRole
INFO:main:ECS Agent Role Create: arn:aws:iam::638370140697:role/MicroECSAgentRole
Traceback (most recent call last):
File "setup.py", line 632, in
main()
File "setup.py", line 622, in main
setup_results = setup(project_name=project_name, service_list=service_list, region=region)
File "setup.py", line 294, in setup
docker_login_config()
File "setup.py", line 252, in docker_login_config
with open(filename, 'r+') as f:
IOError: [Errno 2] No such file or directory: '/home/ubuntu/.docker/config.json'

this is the update please help me what I am doing wrong...

You can try to login to your Docker account first to create ".docker/config.json" file
$docker longin