![]() Update `INSTALLED_APPS` in `settings.py`: The line `"s3:*Object*",` will handle a lot of our permissions for handling objects for the specified bucket within the `Recourse` Value. The `Action`s that we choose to set are based on what we want this user to be able to do. ![]() Change all `` to the name of your bucket in S3 (set above). Set `Policy Name` to `S3Django` (or any name you decide)ħ. Click `Create Policy` then select `Create Your Own Policy`.Ħ. Select user and click on click on `Permissions` tab.ĥ. ![]() **Add Custom Policy / Permissions to your IAM User**Ģ. Click on `Attach Existing Policies Directly` and add any policies you'd like to give this user access to or add a custom policy. Navigate to the user's account such as: ()Ĥ. **Add Default Access Policies to your IAM User**:ġ. Make note of the `Bucket Name` you created here. Select `Region` relative to your primary users' location. Create a unique `Bucket Name` such as `your-project-bucket` or any other name you choose.Ĥ. Navigate to S3 through the () or this ()ģ. Note the `Access Key Id` and `Secret Access Key` as they are needed for a future step. Open the `credentials.csv` file that was just downloaded/createdħ. Select `Download credentials` and keep them safe.Ħ. Ensure `Programmatic Access` is **selected**, hit `Next`.ĥ. ![]() Enter `awsbean` as a user name (or whatever you prefer)Ĥ. Using Amazon Web Services (AWS) S3 For storing static and media files for a Django Project.ģ. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |