-piwik_configuration = data_bag_item("web", "piwik").to_hash.reject do |k, _|
- %w[chef_type data_bag id].include?(k)
-end
+piwik = data_bag_item("web", "piwik")
+
+storage = {
+ "aws" => {
+ "service" => "S3",
+ "access_key_id" => "AKIASQUXHPE7AMJQRFOS",
+ "secret_access_key" => web_passwords["aws_key"],
+ "region" => "eu-west-1",
+ "bucket" => "openstreetmap-user-avatars",
+ "use_dualstack_endpoint" => true,
+ "upload" => {
+ "acl" => "public-read",
+ "cache_control" => "public, max-age=31536000, immutable"
+ }
+ }
+}