Last active
October 8, 2018 13:43
-
-
Save maqnouch/b43c4b830262ec6b7de85c3e6fa7b619 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Configuration: S3 | |
================= | |
## Create an IAM user | |
https://console.aws.amazon.com/iam/home?region=us-east-1#/users$new?step=details | |
nom: tkalem_backend | |
spécifier le type d'accèss: Accès par programmation | |
Choisir l'option: "Attacher direct<ement les stratégies existantes" et donner a l'utiliser les autorisaton: AmazonS3FullAccess (picture) | |
save the access ID and the secret access key to be use in the backend configuration file | |
create the tkalem-profiles bucket and activate the transfert acceliration | |
use the | |
add tkalem-attachements | |
chose usa east1: aka (cerf picture) | |
affect user:tkalem_backend(cerf picture) | |
add transfer acceleration for the two buckets | |
1> create folder in the profiles bucket: profiles | |
2> | |
go to the cloudfront console: https://console.aws.amazon.com/cloudfront/home?region=us-east-1 | |
create a cloudfront distributions with the default parameters | |
3> | |
go back to the s3 bucket console: https://s3.console.aws.amazon.com/s3/home?region=us-east-1 | |
add this compartment strategy while: | |
remplace yyyyyyyyyyy with the bucket name | |
remplace xxxxxxxx with your iam user arn | |
{ | |
"Version": "2012-10-17", | |
"Id": "Policy1525778804963", | |
"Statement": [ | |
{ | |
"Sid": "Stmt1525778801429", | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": "xxxxxxxx" | |
}, | |
"Action": "s3:*", | |
"Resource": "arn:aws:s3:::yyyyyyyyyyy" | |
}, | |
{ | |
"Sid": "1", | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": "*" | |
}, | |
"Action": "s3:GetObject", | |
"Resource": "arn:aws:s3:::yyyyyyyyyyy/profiles/*" | |
} | |
] | |
} | |
4> | |
make the profile piture public | |
select the bucker | |
right click on the profile folder | |
and make it public | |
5> | |
In android studio, and xcode remplace cdn.signal.org with the domaine name from thr cloud front console |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment