{"id":854,"date":"2019-02-27T12:02:13","date_gmt":"2019-02-27T09:02:13","guid":{"rendered":"https:\/\/artem.services\/?p=811"},"modified":"2019-03-12T16:44:47","modified_gmt":"2019-03-12T13:44:47","slug":"aws-s3-bucket-d1-82-d0-be-d0-bb-d1-8c-d0-ba-d0-be-d0-b4-d0-bb-d1-8f-d1-87-d1-82-d0-b5-d0-bd-d0-b8-d1-8f","status":"publish","type":"post","link":"https:\/\/artem.services\/?p=854&lang=en","title":{"rendered":"AWS &#8212; S3 Bucket Read-only"},"content":{"rendered":"<p><img loading=\"lazy\" class=\"size-full wp-image-214 aligncenter\" src=\"https:\/\/artem.services\/wp-content\/uploads\/2018\/11\/AWS-Logo.png\" alt=\"\" width=\"975\" height=\"450\" srcset=\"https:\/\/artem.services\/wp-content\/uploads\/2018\/11\/AWS-Logo.png 975w, https:\/\/artem.services\/wp-content\/uploads\/2018\/11\/AWS-Logo-300x138.png 300w, https:\/\/artem.services\/wp-content\/uploads\/2018\/11\/AWS-Logo-768x354.png 768w, https:\/\/artem.services\/wp-content\/uploads\/2018\/11\/AWS-Logo-954x440.png 954w\" sizes=\"(max-width: 975px) 100vw, 975px\" \/><\/p>\n<p><span class=\"tlid-translation translation\"><span title=\"\">We create <strong>S3 Bucket<\/strong>, we make it <strong>not public<\/strong>, we don\u2019t change anything in the access rights.<\/span> <span class=\"\" title=\"\">Immediately find the <strong>ARN<\/strong> created baketa.<\/span><\/p>\n<p><span class=\"\" title=\"\">Create a user, on the &quot;<strong>Permisson<\/strong>&quot; tab, go to &quot;<strong>Attach existing policies directly<\/strong>&quot; and find &quot;<strong>AmazonS3ReadOnlyAccess<\/strong>&quot;.<\/span> <span title=\"\">Let&#8217;s see the created user <strong>ARN<\/strong>.<\/span><\/p>\n<p><span class=\"\" title=\"\">We return to the settings of <strong>S3 Bucket<\/strong> already created and go to &quot;<strong>Permisson<\/strong>&quot;, create a &quot;<strong>Bucket Policy<\/strong>&quot; with the following contents:<\/span><\/span><\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n{\r\n    &quot;Version&quot;: &quot;2012-10-17&quot;,\r\n    &quot;Statement&quot;: [\r\n        {\r\n            &quot;Effect&quot;: &quot;Allow&quot;,\r\n            &quot;Principal&quot;: {\r\n                &quot;AWS&quot;: &quot;arn:aws:iam::XXXXXXXXXXXX:user\/artem-mys3bucket&quot;\r\n            },\r\n            &quot;Action&quot;: [\r\n                &quot;s3:Get*&quot;,\r\n                &quot;s3:List*&quot;\r\n            ],\r\n            &quot;Resource&quot;: &quot;arn:aws:s3:::artem-mys3bucket\/*&quot;\r\n        }\r\n    ]\r\n}\r\n<\/pre>\n<p><span class=\"tlid-translation translation\"><span class=\"\" title=\"\">Do not forget to replace the <strong>ARN<\/strong> with your own.<\/span><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We create S3 Bucket, we make it not public, we don\u2019t change anything in the access rights. Immediately find the ARN created baketa. Create a user, on the &quot;Permisson&quot; tab, go to &quot;Attach existing policies directly&quot; and find &quot;AmazonS3ReadOnlyAccess&quot;. Let&#8217;s see the created user ARN. We return to the settings of S3 Bucket already created &hellip; <a href=\"https:\/\/artem.services\/?p=854&#038;lang=en\" class=\"more-link\">\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c \u0447\u0438\u0442\u0430\u0442\u044c<span class=\"screen-reader-text\"> &quot;AWS &#8212; S3 Bucket Read-only&quot;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[599],"tags":[543,601,603,483],"_links":{"self":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/854"}],"collection":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=854"}],"version-history":[{"count":2,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/854\/revisions"}],"predecessor-version":[{"id":858,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/854\/revisions\/858"}],"wp:attachment":[{"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=854"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=854"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=854"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}