No access to site after set S3 credentials

You did not set the s3_upload_bucket parameter.
Just do

cd /var/discourse
./launcher enter app
rails c
SiteSetting.s3_upload_bucket = 'thenameofyourbucket'

where you change the last line so it has the actual name of your S3 bucket.