{"id":20358024,"url":"https://github.com/arnabd64/python-boto3-snippets","last_synced_at":"2026-05-28T13:04:04.692Z","repository":{"id":183845111,"uuid":"670841374","full_name":"arnabd64/python-boto3-snippets","owner":"arnabd64","description":"Code snippets for official AWS python SDK","archived":false,"fork":false,"pushed_at":"2023-07-26T02:04:54.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-04T17:50:33.309Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arnabd64.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-07-26T01:05:27.000Z","updated_at":"2023-07-26T02:04:57.000Z","dependencies_parsed_at":"2023-07-26T03:34:25.304Z","dependency_job_id":null,"html_url":"https://github.com/arnabd64/python-boto3-snippets","commit_stats":null,"previous_names":["arnabd64/python-boto3-snippets"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/arnabd64/python-boto3-snippets","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arnabd64%2Fpython-boto3-snippets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arnabd64%2Fpython-boto3-snippets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arnabd64%2Fpython-boto3-snippets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arnabd64%2Fpython-boto3-snippets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arnabd64","download_url":"https://codeload.github.com/arnabd64/python-boto3-snippets/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arnabd64%2Fpython-boto3-snippets/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33609245,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-28T02:00:06.440Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T23:24:58.579Z","updated_at":"2026-05-28T13:04:04.664Z","avatar_url":"https://github.com/arnabd64.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Code Snippets for `boto3`\n\n`boto3` is the official Python SDK for Amazon Web Services. The `boto3` package provides an interface for using AWS programmetically. To get started with `boto3`, you need to have the following packages installed:\n\n```python\nawscli == 1.29\nboto3 == 1.28\n```\n\n+ `awscli` handles the backend the backend requests and user authentication.\n+ `boto3` provides api's to communicate with AWS.\n\n## STEP 1: Setting up User Authentication using `awscli`\n\nObtain the __AWS Access Key__ and the __Secret Key__ from IAM. You can do it by yourself or ask the Cloud Admin to provide the needed keys. You can refer to this [YouTube video](https://www.youtube.com/watch?v=HuE-QhrmE1c)\n\nThen open your terminal and execute the following command\n\n```bash\n$ aws configure\n```\n\n`awscli` will ask for __Access Key__ and __Secret Key__, fill iy in and also set the `default output` to `json`.\n\n## STEP 2: Check if `boto3` is working\n\nCopy paste this simple code that creates a __S3 Bucket__ and see if it executes correctly\n\n```python\nimport boto3\n\n# create a client for S3\ns3_client = boto3.client(\"s3\")\n\n# create a bucket\nresponse = s3_client.create_bucket(\n    Bucket = \"my-demo-bucket\",\n    CreateBucketConfiguration = dict(LocationConstraint = \"ap-south-1\")\n)\n\n# display the response\nprint(response)\n```\n If the above code comes out as a success then you have correctly configured the SDK.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farnabd64%2Fpython-boto3-snippets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farnabd64%2Fpython-boto3-snippets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farnabd64%2Fpython-boto3-snippets/lists"}