エラーコード
is not a recognized provider carrierwave
結果から言いますと下記のコードです。
config.fog_credentials = {
provider: 'AWS',
aws_access_key_id: 'アクセスキー',
aws_secret_access_key: 'シークレットアクセスキー',
region: 'ap-northeast-1',
path_style: true
}
config.asset_host = 'https://s3-ap-northeast-1.amazonaws.com/バケット名'
ポイント
今回アクセスキーとシークレットアクセスキーは直打ちでしております。
修正して治った点はregionの設定です。
AWS S3の設定では東京で設定をしていて
URLは「us-east-1」と表示されてましたが
「ap-northeast-1」と入力したら画像はS3にアップされました。
次は画像がうまく表示されませんでした。
解決策
,config.asset_hostのURLを「
にしました。
これで無事
画像がAWS S3にアップされてアプリ内でアップした画像を表示できました。