IT-Academy

Amazon Nasadenie

Apr 5th, 2018
1,031
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. Nasadenie
  2.  
  3. http://console.aws.amazon.com/
  4.  
  5. https://us-east-2.console.aws.amazon.com/console/home?region=us-east-2#
  6. https://s3.console.aws.amazon.com/s3/home?region=us-east-2
  7.  
  8. create bucket
  9.  
  10. https://s3.console.aws.amazon.com/s3/home?region=us-east-2#
  11.  
  12. meno musi byt volne
  13. ng-navod-nasadenie
  14.  
  15.  
  16. irsko
  17.  
  18. nastavis vlastnosti
  19.  
  20. ng build --prod -aot
  21.  
  22. ng-navod-nasadenie
  23.  
  24. aws bucket policy example
  25. https://docs.aws.amazon.com/AmazonS3/latest/dev/example-bucket-policies.html
  26. Granting Read-Only Permission to an Anonymous User
  27.  
  28.  
  29. https://docs.aws.amazon.com/AmazonS3/latest/dev/example-bucket-policies.html#example-bucket-policies-use-case-2
  30.  
  31. {
  32. "Version":"2012-10-17",
  33. "Statement":[
  34. {
  35. "Sid":"AddPerm",
  36. "Effect":"Allow",
  37. "Principal": "*",
  38. "Action":["s3:GetObject"],
  39. "Resource":["arn:aws:s3:::examplebucket/*"]
  40. }
  41. ]
  42. }
  43.  
  44. ng-navod-nasadenie
  45.  
  46. {
  47. "Version":"2012-10-17",
  48. "Statement":[
  49. {
  50. "Sid":"AddPerm",
  51. "Effect":"Allow",
  52. "Principal": "*",
  53. "Action":["s3:GetObject"],
  54. "Resource":["arn:aws:s3:::ng-navod-nasadenie/*"]
  55. }
  56. ]
  57. }
Advertisement
Add Comment
Please, Sign In to add comment