{"_id":"56f194243eb62a34003e9fef","__v":4,"version":{"_id":"55faeacad0e22017005b8268","project":"55faeacad0e22017005b8265","__v":34,"createdAt":"2015-09-17T16:31:06.800Z","releaseDate":"2015-09-17T16:31:06.800Z","categories":["55faeacbd0e22017005b8269","55faf550764f50210095078e","55faf5b5626c341700fd9e96","55faf8a7825d5f19001fa386","560052f91503430d007cc88f","560054f73aa0520d00da0b1a","56005aaf6932a00d00ba7c62","56005c273aa0520d00da0b3f","5601ae7681a9670d006d164d","5601ae926811d00d00ceb487","5601aeb064866b1900f4768d","5601aee850ee460d0002224c","5601afa02499c119000faf19","5601afd381a9670d006d1652","561d4c78281aec0d00eb27b6","561d588d8ca8b90d00210219","563a5f934cc3621900ac278c","5665c5763889610d0008a29e","566710a36819320d000c2e93","56ddf6df8a5ae10e008e3926","56e1c96b2506700e00de6e83","56e1ccc4e416450e00b9e48c","56e1ccdfe63f910e00e59870","56e1cd10bc46be0e002af26a","56e1cd21e416450e00b9e48e","56e3139a51857d0e008e77be","573b4f62ef164e2900a2b881","57c9d1335fd8ca0e006308ed","57e2bd9d1e7b7220000d7fa5","57f2b992ac30911900c7c2b6","58adb5c275df0f1b001ed59b","58c81b5c6dc7140f003c3c46","595412446ed4d9001b3e7b37","59e76ce41938310028037295"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"v1","version_clean":"1.0.0","version":"1"},"project":"55faeacad0e22017005b8265","category":{"_id":"5601afa02499c119000faf19","pages":["5601b42b6811d00d00ceb49b","5601b63c9137690d003357cb","5601b7b49137690d003357d0","5601b82a81a9670d006d166b","5601b84350ee460d00022261","5601b8c281a9670d006d166e","5601b9146811d00d00ceb4a3","5601ba086811d00d00ceb4a4","5601baf650ee460d00022264","5601bf6d7916060d00760b00","561d578e9242920d00df9f47","561d57ec2d6a450d00f0512d","561d58449242920d00df9f53","56438be2f49bfa0d002f561e","56438e101ecf381700343c48","5643902708894c0d00031f14","564391d1c92c470d002deb03","564394529eebf70d00490d35","56f194243eb62a34003e9fef"],"project":"55faeacad0e22017005b8265","__v":19,"version":"55faeacad0e22017005b8268","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-09-22T19:44:32.525Z","from_sync":false,"order":9,"slug":"s3-storage-service-guide","title":"S3 Storage Service Guide"},"user":"55fae9d4825d5f19001fa379","parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-03-22T18:51:16.263Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":1,"body":"[block:callout]\n{\n  \"type\": \"info\",\n  \"title\": \"By the end of this lesson, you'll be able to access the contents of your S3 bucket.\"\n}\n[/block]\n## Step 1: Get an OAuth2 Token (prerequsite)\n\nAll GBDX API requests require a header with a valid token. \n\nFor more information on getting an OAuth2 token, see:\n[Authentication Course](doc:authentication-course) \n[Video: Get an Oauth2 Token](doc:lesson-1-get-an-oauth2-token) \n[Get OAuth Token (api-key)](doc:get-oauth-token) \n\n## Step 2: Make API request for temp credentials\n\n### API Request\nGET temporary credentials to the AWS S3 bucket with this API request.\n\nhttps://geobigdata.io/s3creds/v1/prefix\n\nThe default duration is set to 3600 seconds (one hour). To change the duration of the temporary credentials, append prefix?duration=<new value> to the request.\n\nhttps://geobigdata.io/s3creds/v1/prefix?duration=129600\n\n* See the overview section for minimum and maximum duration.\n\n\n### Response\n\nThis is an example response with temporary credentials. We'll use these later in the lesson.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n  \\\"S3_secret_key\\\": \\\"JjnAy0NdO2WO5N7JgGRTuCoy3zqQdnSA4KLD9ogb\\\",\\n  \\\"prefix\\\": \\\"782839ja-2059-42de-ad70-03e6e5192fc6\\\",\\n  \\\"bucket\\\": \\\"gbd-customer-data\\\",\\n  \\\"S3_access_key\\\": \\\"ASIAIE3GWTJ7LLJLMCYB\\\",\\n  \\\"S3_session_token\\\": \\\"AQoDYXdzEBoa4ANP+zSjA4Pi6KLXiqw91T6oYhaJCMFmdtLcVcQcrGd1aIcy/3J8ZLfDmIkzsDWJhL8TvPvASaqxt/xYj8+SmlGNgnGH1jpSNwsDzCqTItlm6N5y8BZjCgSj3EKoyWW7XbTAAn+evMfMQEPlZM6onEdsYsm0CVx0DY8JnvTJBhA7I06/3g8XmSqOTxOfpqsYK5jt1JxseG956UOAWD35k34/r2BSQ+GKPpQ/drlcfPlQR/lDBopi8VejFh0Wq0GRUHg+yEJvZ1Ytrtm8R1MdMasXb3jVtMxm4SNH5/dVEP61yq9cA5B9UIl2LoFJYGx+fSnwRVaC0/1NjJzRNJmsR48Kyfaop1FNsKuCXWnGg1LWktnJRZft3vs+eaXQ2rvscex9cwxxg0Er9I9B1F0qD9ucHyrpxgRetMMymp3omIHMB3wcI+QCx39MKkBDCdpXNE3fCd0TaCbXX48XbJVaACCp60aNfvtkt7nRkyDsTx/gQ6GUpPiONxX8BKYLbsg6yvcXCyy6umAZBcOq+dYWxm5MSvIjJHFHbgS1+6xaJTkyAmtXRcJHzWwaUTmDe9Fh/qXA8aVu9NW2hf/aok61HqZqothqIEQeox7wI+21spXAh+uT+kT2YIDsnxRxR1GpMXkgzPLFtwU=\\\"\\n}\\n\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]\n\n[block:callout]\n{\n  \"type\": \"info\",\n  \"title\": \"These credentials map to AWS values.\",\n  \"body\": \"See the mapping table in the next step to see when to use the values.\"\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"3. Export temporary credentials for AWS CLI\"\n}\n[/block]\n\n[block:callout]\n{\n  \"type\": \"info\",\n  \"title\": \"This example assumes you have installed AWS CLI\",\n  \"body\": \"To install AWS CLI, see <a href=\\\"http://aws.amazon.com/cli/ \\\" target=\\\"_blank\\\">AWS Command Line Interface</a>.\"\n}\n[/block]\nAWS CLI requires the following connection string values: \n\nAWS_ACCESS_KEY_ID\nAWS_SECRET_ACCESS_KEY\nAWS_SESSION_TOKEN\n\nThe S3 Storage Service returns these values, but uses a different naming convention. This table shows how Amazon's values map to the credentials provided by the GBDX Storage Service. The examples also help explain this.\n\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"AWS Requires this value\",\n    \"h-1\": \"Use this GBDX value\",\n    \"0-0\": \"AWS_ACCESS_KEY_ID\",\n    \"0-1\": \"S3_access_key\",\n    \"1-0\": \"AWS_SECRET_ACCESS_KEY\",\n    \"1-1\": \"S3_secret_key\",\n    \"2-0\": \"AWS_SESSION_TOKEN\",\n    \"2-1\": \"S3_session_token\"\n  },\n  \"cols\": 2,\n  \"rows\": 3\n}\n[/block]\n\n**LINUX USERS** To export on Linux, run the following commands to set the values:\n\nexport AWS_ACCESS_KEY_ID=[YOUR_S3_access_key]\nexport AWS_SECRET_ACCESS_KEY=[YOUR S3_secret_key]\nexport AWS_SESSION_TOKEN=[YOUR_S3_session_token]\n\nExample:\n\nThis example uses the credentials from the example response provided in step 2. \n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"export AWS_ACCESS_KEY_ID=ASIAIE3GWTJ7LLJLMCYB\\nexport AWS_SECRET_ACCESS_KEY=JjnAy0NdO2WO5N7JgGRTuCoy3zqQdnSA4KLD9ogb \\nexport AWS_SESSION_TOKEN=AQoDYXdzEBoa4ANP+zSjA4Pi6KLXiqw91T6oYhaJCMFmdtLcVcQcrGd1aIcy/3J8ZLfDmIkzsDWJhL8TvPvASaqxt/xYj8+SmlGNgnGH1jpSNwsDzCqTItlm6N5y8BZjCgSj3EKoyWW7XbTAAn+evMfMQEPlZM6onEdsYsm0CVx0DY8JnvTJBhA7I06/3g8XmSqOTxOfpqsYK5jt1JxseG956UOAWD35k34/r2BSQ+GKPpQ/drlcfPlQR/lDBopi8VejFh0Wq0GRUHg+yEJvZ1Ytrtm8R1MdMasXb3jVtMxm4SNH5/dVEP61yq9cA5B9UIl2LoFJYGx+fSnwRVaC0/1NjJzRNJmsR48Kyfaop1FNsKuCXWnGg1LWktnJRZft3vs+eaXQ2rvscex9cwxxg0Er9I9B1F0qD9ucHyrpxgRetMMymp3omIHMB3wcI+QCx39MKkBDCdpXNE3fCd0TaCbXX48XbJVaACCp60aNfvtkt7nRkyDsTx/gQ6GUpPiONxX8BKYLbsg6yvcXCyy6umAZBcOq+dYWxm5MSvIjJHFHbgS1+6xaJTkyAmtXRcJHzWwaUTmDe9Fh/qXA8aVu9NW2hf/aok61HqZqothqIEQeox7wI+21spXAh+uT+kT2YIDsnxRxR1GpMXkgzPLFtwU=\",\n      \"language\": \"text\"\n    }\n  ]\n}\n[/block]\n**WINDOWS USERS** To export on Windows, run the following  commands to set the values.\n\nSET AWS_ACCESS_KEY_ID=[YOUR_S3_access_key]\nSET AWS_SECRET_ACCESS_KEY=[YOUR_S3_secret_key]\nSET AWS_SESSION_TOKEN=[YOUR_S3_session_token]\n\nExample:\n\nThis example uses the credentials from the example response provided in step 2. \n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"SET AWS_ACCESS_KEY_ID=ASIAIE3GWTJ7LLJLMCYB\\nSET AWS_SECRET_ACCESS_KEY=JjnAy0NdO2WO5N7JgGRTuCoy3zqQdnSA4KLD9ogb \\nSET AWS_SESSION_TOKEN=AQoDYXdzEBoa4ANP+zSjA4Pi6KLXiqw91T6oYhaJCMFmdtLcVcQcrGd1aIcy/3J8ZLfDmIkzsDWJhL8TvPvASaqxt/xYj8+SmlGNgnGH1jpSNwsDzCqTItlm6N5y8BZjCgSj3EKoyWW7XbTAAn+evMfMQEPlZM6onEdsYsm0CVx0DY8JnvTJBhA7I06/3g8XmSqOTxOfpqsYK5jt1JxseG956UOAWD35k34/r2BSQ+GKPpQ/drlcfPlQR/lDBopi8VejFh0Wq0GRUHg+yEJvZ1Ytrtm8R1MdMasXb3jVtMxm4SNH5/dVEP61yq9cA5B9UIl2LoFJYGx+fSnwRVaC0/1NjJzRNJmsR48Kyfaop1FNsKuCXWnGg1LWktnJRZft3vs+eaXQ2rvscex9cwxxg0Er9I9B1F0qD9ucHyrpxgRetMMymp3omIHMB3wcI+QCx39MKkBDCdpXNE3fCd0TaCbXX48XbJVaACCp60aNfvtkt7nRkyDsTx/gQ6GUpPiONxX8BKYLbsg6yvcXCyy6umAZBcOq+dYWxm5MSvIjJHFHbgS1+6xaJTkyAmtXRcJHzWwaUTmDe9Fh/qXA8aVu9NW2hf/aok61HqZqothqIEQeox7wI+21spXAh+uT+kT2YIDsnxRxR1GpMXkgzPLFtwU=\",\n      \"language\": \"text\"\n    }\n  ]\n}\n[/block]\n\n[block:callout]\n{\n  \"type\": \"info\",\n  \"title\": \"S3cmd can also be used instead of AWS CLI.\",\n  \"body\": \"Note: S3cmd can also be used to access data in your S3 Bucket. To set up and use S3cmd with Linux, see [http://s3tools.org/s3cmd](http://s3tools.org/s3cmd)\\n\\n<a href=\\\"http://s3tools.org/s3cmd\\\" target=\\\"_blank\\\">s3tools.org</a>.\"\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"4. List Contents in your S3 Bucket\"\n}\n[/block]\nNow that you've set your temporary credentials for AWS CLI, you can access the contents of your S3 bucket. \n\nTake the bucket and prefix values from Step 2 and use them in the AWS CLI commands (listing contents, down loading contents, etc.)\n\n1. List contents:\naws s3 ls s3://<bucket>/<prefix>/\n\nExample: \n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \" aws s3 ls s3://gbd-customer-data/782839ja-2059-42de-ad70-03e6e5192fc6/\\n        \\n                                   PRE 59652acc-6347-4a19-bf53-75458ef6cd07/\\n        2015-07-30 19:55:30          5 .info\\n\",\n      \"language\": \"text\"\n    }\n  ]\n}\n[/block]\n\n2. Download files:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"aws s3 cp s3://<bucket>/<prefix>/remote_text_file.txt .\\n\\naws s3 cp s3://gbd-customer-data/f3c8f7a1-afae-49a6-9d40-d358d4ccfbd9/download.txt .\",\n      \"language\": \"text\"\n    }\n  ]\n}\n[/block]\n3. For a list of S3 file commands, see the <a href=\"http://aws.amazon.com/cli/ \" target=\"_blank\">AWS Command Line Interface Reference Page</a>.","excerpt":"","slug":"lesson-access-the-data-in-your-s3-bucket","type":"basic","title":"Lesson: Get S3 Bucket Contents"}

Lesson: Get S3 Bucket Contents


[block:callout] { "type": "info", "title": "By the end of this lesson, you'll be able to access the contents of your S3 bucket." } [/block] ## Step 1: Get an OAuth2 Token (prerequsite) All GBDX API requests require a header with a valid token. For more information on getting an OAuth2 token, see: [Authentication Course](doc:authentication-course) [Video: Get an Oauth2 Token](doc:lesson-1-get-an-oauth2-token) [Get OAuth Token (api-key)](doc:get-oauth-token) ## Step 2: Make API request for temp credentials ### API Request GET temporary credentials to the AWS S3 bucket with this API request. https://geobigdata.io/s3creds/v1/prefix The default duration is set to 3600 seconds (one hour). To change the duration of the temporary credentials, append prefix?duration=<new value> to the request. https://geobigdata.io/s3creds/v1/prefix?duration=129600 * See the overview section for minimum and maximum duration. ### Response This is an example response with temporary credentials. We'll use these later in the lesson. [block:code] { "codes": [ { "code": "{\n \"S3_secret_key\": \"JjnAy0NdO2WO5N7JgGRTuCoy3zqQdnSA4KLD9ogb\",\n \"prefix\": \"782839ja-2059-42de-ad70-03e6e5192fc6\",\n \"bucket\": \"gbd-customer-data\",\n \"S3_access_key\": \"ASIAIE3GWTJ7LLJLMCYB\",\n \"S3_session_token\": \"AQoDYXdzEBoa4ANP+zSjA4Pi6KLXiqw91T6oYhaJCMFmdtLcVcQcrGd1aIcy/3J8ZLfDmIkzsDWJhL8TvPvASaqxt/xYj8+SmlGNgnGH1jpSNwsDzCqTItlm6N5y8BZjCgSj3EKoyWW7XbTAAn+evMfMQEPlZM6onEdsYsm0CVx0DY8JnvTJBhA7I06/3g8XmSqOTxOfpqsYK5jt1JxseG956UOAWD35k34/r2BSQ+GKPpQ/drlcfPlQR/lDBopi8VejFh0Wq0GRUHg+yEJvZ1Ytrtm8R1MdMasXb3jVtMxm4SNH5/dVEP61yq9cA5B9UIl2LoFJYGx+fSnwRVaC0/1NjJzRNJmsR48Kyfaop1FNsKuCXWnGg1LWktnJRZft3vs+eaXQ2rvscex9cwxxg0Er9I9B1F0qD9ucHyrpxgRetMMymp3omIHMB3wcI+QCx39MKkBDCdpXNE3fCd0TaCbXX48XbJVaACCp60aNfvtkt7nRkyDsTx/gQ6GUpPiONxX8BKYLbsg6yvcXCyy6umAZBcOq+dYWxm5MSvIjJHFHbgS1+6xaJTkyAmtXRcJHzWwaUTmDe9Fh/qXA8aVu9NW2hf/aok61HqZqothqIEQeox7wI+21spXAh+uT+kT2YIDsnxRxR1GpMXkgzPLFtwU=\"\n}\n", "language": "json" } ] } [/block] [block:callout] { "type": "info", "title": "These credentials map to AWS values.", "body": "See the mapping table in the next step to see when to use the values." } [/block] [block:api-header] { "type": "basic", "title": "3. Export temporary credentials for AWS CLI" } [/block] [block:callout] { "type": "info", "title": "This example assumes you have installed AWS CLI", "body": "To install AWS CLI, see <a href=\"http://aws.amazon.com/cli/ \" target=\"_blank\">AWS Command Line Interface</a>." } [/block] AWS CLI requires the following connection string values: AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY AWS_SESSION_TOKEN The S3 Storage Service returns these values, but uses a different naming convention. This table shows how Amazon's values map to the credentials provided by the GBDX Storage Service. The examples also help explain this. [block:parameters] { "data": { "h-0": "AWS Requires this value", "h-1": "Use this GBDX value", "0-0": "AWS_ACCESS_KEY_ID", "0-1": "S3_access_key", "1-0": "AWS_SECRET_ACCESS_KEY", "1-1": "S3_secret_key", "2-0": "AWS_SESSION_TOKEN", "2-1": "S3_session_token" }, "cols": 2, "rows": 3 } [/block] **LINUX USERS** To export on Linux, run the following commands to set the values: export AWS_ACCESS_KEY_ID=[YOUR_S3_access_key] export AWS_SECRET_ACCESS_KEY=[YOUR S3_secret_key] export AWS_SESSION_TOKEN=[YOUR_S3_session_token] Example: This example uses the credentials from the example response provided in step 2. [block:code] { "codes": [ { "code": "export AWS_ACCESS_KEY_ID=ASIAIE3GWTJ7LLJLMCYB\nexport AWS_SECRET_ACCESS_KEY=JjnAy0NdO2WO5N7JgGRTuCoy3zqQdnSA4KLD9ogb \nexport AWS_SESSION_TOKEN=AQoDYXdzEBoa4ANP+zSjA4Pi6KLXiqw91T6oYhaJCMFmdtLcVcQcrGd1aIcy/3J8ZLfDmIkzsDWJhL8TvPvASaqxt/xYj8+SmlGNgnGH1jpSNwsDzCqTItlm6N5y8BZjCgSj3EKoyWW7XbTAAn+evMfMQEPlZM6onEdsYsm0CVx0DY8JnvTJBhA7I06/3g8XmSqOTxOfpqsYK5jt1JxseG956UOAWD35k34/r2BSQ+GKPpQ/drlcfPlQR/lDBopi8VejFh0Wq0GRUHg+yEJvZ1Ytrtm8R1MdMasXb3jVtMxm4SNH5/dVEP61yq9cA5B9UIl2LoFJYGx+fSnwRVaC0/1NjJzRNJmsR48Kyfaop1FNsKuCXWnGg1LWktnJRZft3vs+eaXQ2rvscex9cwxxg0Er9I9B1F0qD9ucHyrpxgRetMMymp3omIHMB3wcI+QCx39MKkBDCdpXNE3fCd0TaCbXX48XbJVaACCp60aNfvtkt7nRkyDsTx/gQ6GUpPiONxX8BKYLbsg6yvcXCyy6umAZBcOq+dYWxm5MSvIjJHFHbgS1+6xaJTkyAmtXRcJHzWwaUTmDe9Fh/qXA8aVu9NW2hf/aok61HqZqothqIEQeox7wI+21spXAh+uT+kT2YIDsnxRxR1GpMXkgzPLFtwU=", "language": "text" } ] } [/block] **WINDOWS USERS** To export on Windows, run the following commands to set the values. SET AWS_ACCESS_KEY_ID=[YOUR_S3_access_key] SET AWS_SECRET_ACCESS_KEY=[YOUR_S3_secret_key] SET AWS_SESSION_TOKEN=[YOUR_S3_session_token] Example: This example uses the credentials from the example response provided in step 2. [block:code] { "codes": [ { "code": "SET AWS_ACCESS_KEY_ID=ASIAIE3GWTJ7LLJLMCYB\nSET AWS_SECRET_ACCESS_KEY=JjnAy0NdO2WO5N7JgGRTuCoy3zqQdnSA4KLD9ogb \nSET AWS_SESSION_TOKEN=AQoDYXdzEBoa4ANP+zSjA4Pi6KLXiqw91T6oYhaJCMFmdtLcVcQcrGd1aIcy/3J8ZLfDmIkzsDWJhL8TvPvASaqxt/xYj8+SmlGNgnGH1jpSNwsDzCqTItlm6N5y8BZjCgSj3EKoyWW7XbTAAn+evMfMQEPlZM6onEdsYsm0CVx0DY8JnvTJBhA7I06/3g8XmSqOTxOfpqsYK5jt1JxseG956UOAWD35k34/r2BSQ+GKPpQ/drlcfPlQR/lDBopi8VejFh0Wq0GRUHg+yEJvZ1Ytrtm8R1MdMasXb3jVtMxm4SNH5/dVEP61yq9cA5B9UIl2LoFJYGx+fSnwRVaC0/1NjJzRNJmsR48Kyfaop1FNsKuCXWnGg1LWktnJRZft3vs+eaXQ2rvscex9cwxxg0Er9I9B1F0qD9ucHyrpxgRetMMymp3omIHMB3wcI+QCx39MKkBDCdpXNE3fCd0TaCbXX48XbJVaACCp60aNfvtkt7nRkyDsTx/gQ6GUpPiONxX8BKYLbsg6yvcXCyy6umAZBcOq+dYWxm5MSvIjJHFHbgS1+6xaJTkyAmtXRcJHzWwaUTmDe9Fh/qXA8aVu9NW2hf/aok61HqZqothqIEQeox7wI+21spXAh+uT+kT2YIDsnxRxR1GpMXkgzPLFtwU=", "language": "text" } ] } [/block] [block:callout] { "type": "info", "title": "S3cmd can also be used instead of AWS CLI.", "body": "Note: S3cmd can also be used to access data in your S3 Bucket. To set up and use S3cmd with Linux, see [http://s3tools.org/s3cmd](http://s3tools.org/s3cmd)\n\n<a href=\"http://s3tools.org/s3cmd\" target=\"_blank\">s3tools.org</a>." } [/block] [block:api-header] { "type": "basic", "title": "4. List Contents in your S3 Bucket" } [/block] Now that you've set your temporary credentials for AWS CLI, you can access the contents of your S3 bucket. Take the bucket and prefix values from Step 2 and use them in the AWS CLI commands (listing contents, down loading contents, etc.) 1. List contents: aws s3 ls s3://<bucket>/<prefix>/ Example: [block:code] { "codes": [ { "code": " aws s3 ls s3://gbd-customer-data/782839ja-2059-42de-ad70-03e6e5192fc6/\n \n PRE 59652acc-6347-4a19-bf53-75458ef6cd07/\n 2015-07-30 19:55:30 5 .info\n", "language": "text" } ] } [/block] 2. Download files: [block:code] { "codes": [ { "code": "aws s3 cp s3://<bucket>/<prefix>/remote_text_file.txt .\n\naws s3 cp s3://gbd-customer-data/f3c8f7a1-afae-49a6-9d40-d358d4ccfbd9/download.txt .", "language": "text" } ] } [/block] 3. For a list of S3 file commands, see the <a href="http://aws.amazon.com/cli/ " target="_blank">AWS Command Line Interface Reference Page</a>.