如何将bot部署到AWS?

时间:2016-11-28 06:30:22

标签: amazon-web-services amazon-s3 bots aws-cli

我是AWS堆栈的新手,想知道如何将bot部署到AWS,我有AWS帐户,参考HelloWorld聊天机器人教程here

部署提到的命令是

claudia create --region us-east-1 --api-module bot

但有人可以指出在运行此步骤之前配置AWS所需的步骤吗?

我在运行上述命令

时遵循JSON
{ [CredentialsError: Missing credentials in config]
  message: 'Missing credentials in config',
  code: 'CredentialsError',
  errno: 'ENETUNREACH',
  syscall: 'connect',
  address: '169.254.169.254',
  port: 80,
  time: Mon Nov 28 2016 12:17:15 GMT+0530 (India Standard Time),
  originalError:
   { message: 'Could not load credentials from any providers',
     code: 'CredentialsError',
     errno: 'ENETUNREACH',
     syscall: 'connect',
     address: '169.254.169.254',
     port: 80,
     time: Mon Nov 28 2016 12:17:15 GMT+0530 (India Standard Time),
     originalError:
      { code: 'ENETUNREACH',
        errno: 'ENETUNREACH',
        syscall: 'connect',
        address: '169.254.169.254',
        port: 80,
        message: 'connect ENETUNREACH 169.254.169.254:80' } } }

谢谢!

1 个答案:

答案 0 :(得分:1)

您可以查看https://claudiajs.com/tutorials/installing.html

中的说明

将密钥添加到.aws/credentials文件

[claudia]
aws_access_key_id = YOUR_ACCESS_KEY
aws_secret_access_key = YOUR_ACCESS_SECRET

AWS_PROFILE环境变量设置为claudia或在运行命令时使用profile选项

claudia create --region us-east-1 --api-module bot --profile claudia