title: Couldn't decrypt config/credentials.yml.enc. Perhaps you passed the wrong key?
body: <p>I recently deleted my local project but did a git clone and picked up from where I last committed. As I tried to upload images to AWS, which was already configured, I got this error:</p>
  <pre><code>Aws::Sigv4::Errors::MissingCredentialsError in RentalsController#create
  
  
  Cannot load `Rails.config.active_storage.service`: missing credentials, provide credentials with one of the following options: - :access_key_id and :secret_access_key - :credentials - :credentials_provider
  </code></pre>
  <p>I tried to look at my <code>credentials.yml</code> file for any error but when I input this command:</p>
  <pre><code>EDITOR=&quot;code --wait&quot; rails credentials:edit
  </code></pre>
  <p>...I get this error:</p>
  <pre><code>Couldn't decrypt config/credentials.yml.enc. Perhaps you passed the wrong key?
  </code></pre>
  <p>What could be the problem?</p>