iam-veeramalla / iam-veeramalla/python-for-devops

Resolved the IllegalLocationConstrationException while creating Bucket in us-ease-1 region

オープン
#45 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
4.8k
フォーク
10.3k
PR マージ指標
30日以内にマージされた PR はありません

説明

### **Creating S3 bucket using Boto3**
I was creating an S3 bucket but, Exception **IllegalLocationConstrationException.** By default S3 bucket was created in US-east-1 region.
To solve this Exception, I provided the location to the bucket ap-south-1 and s3 bucket created successfully.

Here is the code:

import boto3

client = boto3.client('s3')

response = client.create_bucket(

Bucket='',
CreateBucketConfiguration={'LocationConstraint': 'ap-south-1'}


)

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

リポジトリのファイルやテストについては言及されていません。まず issue に示されている boto3.client('s3') と create_bucket のエントリポイントから始め、次に、この S3 リージョンの動作をどこに記載または修正すべきかを確認するためにプロジェクトのコンテキストを調べます。LocationConstraint の意図された処理が明確になれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
aws, python
領域
cloud
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。