Advertisement
Guest User

Untitled

a guest
Oct 18th, 2019
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.03 KB | None | 0 0
  1. 1. Verificar se recebeu o e-mail do Insper AWS com login e senha e testar
  2.  
  3. 2. Baixar Credenciais do S3 da sua pasta:
  4. . Site: https://pglsawdatascience.signin.aws.amazon.com/console
  5. . Login: usuário enviado no e-mail AWS Insper
  6. . Senha: senha enviada no e-mail AWS Insper
  7. . Acessar serviço: S3
  8. . Acessar a sua pasta no bucket:
  9. . pglsawdatascience-alunos/home/<SEU LOGIN>
  10.  
  11. 3. Instalar AWS CLI:
  12. . https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-install.html
  13. . pip install awscli
  14.  
  15. 4. Configurar AWS com suas credencias:
  16. . aws configure
  17. . Entrar com suas credenciais (Access Key & Secret Key)
  18. . Default region: us-east-1
  19.  
  20. 5. Baixar certificado de segurança para acesso ao RDS:
  21. . https://s3.amazonaws.com/rds-downloads/rds-ca-2015-root.pem
  22.  
  23. 6. Configurar variaveis de ambiente:
  24. . Windows:
  25. . setx USER "<SEU USUARIO>"
  26. . setx RDSHOST "insper-qa.cpj3i99ppron.us-east-1.rds.amazonaws.com"
  27. . !! Abrir um novo CMD para continuar
  28. . Para testar: echo %<VARIAVEL>%
  29. . Mac/Linux:
  30. . USER="<SEU USUARIO>"
  31. . RDSHOST="insper-qa.cpj3i99ppron.us-east-1.rds.amazonaws.com"
  32. . Para testtar: echo $<VARIAVEL>
  33.  
  34. 7. Gerar TOKEN na linha de compando:
  35. . Windows:
  36. . aws rds generate-db-auth-token --hostname %RDSHOST% --port 3306 --region us-east-1 --username %USER%
  37. . Mac/Linux:
  38. . aws rds generate-db-auth-token --hostname $RDSHOST --port 3306 --region us-east-1 --username $USER
  39. . Copiar resultado
  40.  
  41. 8. Baixar e instalar MySQL workbench
  42. . https://www.mysql.com/products/workbench/
  43.  
  44. 9. Configurar MySQL Workbench:
  45. . Criar nova conexão
  46. . Na aba PARAMETERS:
  47. . Hostname: insper-qa.cpj3i99ppron.us-east-1.rds.amazonaws.com
  48. . User: <SEU USUÁRIO>
  49. . Password: clicar em <Store in vault/Store in Keychain> e colar o TOKEN resultado do passo 7
  50. . Port: 3306
  51. . Na aba SSL:
  52. . No campo SSL CA File: colocar caminho para o arquivo <rds-ca-2015-root.pem> baixado no passo 5
  53. . Na aba ADVANCED:
  54. . Selecionar a opação: Enable Cleartext Authentication Plugin
  55. . Clicar em TEST CONNECTION
  56.  
  57. 11. Conectar
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement