Quantcast
Channel: Active questions tagged amazon-ec2 - Stack Overflow
Viewing all articles
Browse latest Browse all 29245

How to create Temporary Security Credentials on AWS

$
0
0

I'm trying to use Apache Libcloud(Web) and reading the Documentation of how to use it with Amazon EC2 I'm stuck on a step at the beginning.

On this step:

from libcloud.compute.types import Provider
from libcloud.compute.providers import get_driver

cls = get_driver(Provider.EC2)
driver = cls('temporary access key', 'temporary secret key',
             token='temporary session token', region="us-west-1")

You need to pass the temporary access data and tells you to read Amazon Documentation but also I've read the documentation I don't get very clear what I have to do to get my temporal credentials.

On the doc says that you can interact with the AWS STS API to connect to the endpoint but I don't understand how do you get the credentials. Moreover, on the example of Libcloud Web they use the personal credentials:

ACCESS_ID = 'your access id'
SECRET_KEY = 'your secret key'

So I'm a bit lost. How I can get my temporal credentials to use it on my code?

Thanks and regards.


Viewing all articles
Browse latest Browse all 29245

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>