AWS BOTO : No handler After configuration

后端 未结 1 1241
甜味超标
甜味超标 2021-01-29 06:18

I\'m deploying my Django application on ec2 on AWS.

I did configuration setting up ~/.boto and finally succeed in \'python manage.py collectstatic\'.

If there is

相关标签:
1条回答
  • 2021-01-29 07:18

    Using a role is absolutely the correct way to handle authentication in EC2 to AWS. Putting long term credentials on the machine is a disgusting alternative. Assuming you're using a standard SDK, ( and boto absolutely is), the SDK will automatically use the role's temporary credentials to authenticate, so all you have to do is launch the instance with an "instance profile" specifying a role, and you get secure credentials delivery for free.

    You'll have to replace your server to do so but_being able to recreate servers is fundamental to success in aws anyway. The sooner you start thinking that way, the better the cloud will work for you.

    Once the role is attached to the instance, the policies defining the role's permission can be modified dynamically. So you don't need to get the permissions sorted out before creating the role.

    At the high level, you specify a role at instance creation time. The EC2 console can facilitate the process of creating a role, allowing the EC2 service to access it, and specifying at instance creation time.

    http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/iam-roles-for-amazon-ec2.html provides detailed instructions.

    0 讨论(0)
提交回复
热议问题