由网友(久而旧之╮)分享简介:我有:在一个AWS账户免费梯队在一个Ubuntu 14.04 LTS笔记本采用了PEM文件,我可以创建EC2实例和SSH放进去。 在安装在我的笔记本电脑AWS命令行安装在笔记本电脑流浪在安装上流浪AWS插件An AWS account with free tierAn Ubuntu 14.04 LTS la...
我有:
在一个AWS账户免费梯队 在一个Ubuntu 14.04 LTS笔记本采用了PEM文件,我可以创建EC2 实例和SSH放进去。 在安装在我的笔记本电脑AWS命令行 安装在笔记本电脑流浪 在安装上流浪AWS插件 An AWS account with free tier An Ubuntu 14.04 LTS laptop with a PEM file, and I can create EC2 instances, and SSH into them. AWS command line installed on my laptop Vagrant installed on the laptop AWS plugin installed on Vagrant在 AWS插件自述文件它给出了一个流浪文件的模板:
In the AWS plugin readme file it gives a template for a Vagrant file:
Vagrant.configure("2") do |config|
config.vm.box = "dummy"
config.vm.provider :aws do |aws, override|
aws.access_key_id = "YOUR KEY"
aws.secret_access_key = "YOUR SECRET KEY"
aws.session_token = "SESSION TOKEN"
aws.keypair_name = "KEYPAIR NAME"
aws.ami = "ami-7747d01e"
override.ssh.username = "ubuntu"
override.ssh.private_key_path = "PATH TO YOUR PRIVATE KEY"
end
end
我要如何aws.session_token =会话令牌?
How do I get aws.session_token = "SESSION TOKEN" ?
推荐答案
session_token
是STS(安全令牌服务)会话令牌。
session_token
is the STS (Security Token Service) session token.
您将获得从亚马逊CLI值(安装和配置您的帐户工作)
you would get the value from amazon CLI (installed and configured to work with your account)
fhenri@machine:~$ aws sts get-session-token --duration-seconds 129600
{
"Credentials": {
"SecretAccessKey": "xxxxxxxx",
"SessionToken": "your token value",
"Expiration": "2015-11-12T14:23:22Z",
"AccessKeyId": "xxxxxx"
}
}
相关推荐
最新文章