Skip to content

vitordiricio/ibc-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IBC Demo

To run locally on a public url, run

python3 -m http.server 8080
ngrok http 8080

Para hostear um site na aws:

  1. Crie um bucket na aws (neste caso criei um chamado 'ibc-pam-demo')

  2. Dentro da pasta do seu projeto crie um arquivo policy.json

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "PublicReadGetObject",
      "Effect": "Allow",
      "Principal": "*",
      "Action": "s3:GetObject",
      "Resource": "arn:aws:s3:::ibc-pam-demo/*"
    }
  ]
}
  1. Mande os arquivos pro bucket com
aws s3 cp . s3://ibc-pam-demo/ --recursive
  1. Configure o site para ser servico
aws s3 website s3://ibc-pam-demo/ --index-document index.html
  1. Aplique as políticas no bucket
aws s3api put-bucket-policy --bucket ibc-pam-demo --policy file://policy.json
  1. O site vai estar disponível na url

http://ibc-pam-demo.s3-website-<região>.amazonaws.com

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors