Giter Club home page Giter Club logo

Comments (3)

scraly avatar scraly commented on June 12, 2024

Thanks for the issue, and for the PR, we will update it! :)

from docs.

leonidstakhovsky avatar leonidstakhovsky commented on June 12, 2024

@Mx7ca Hi,
could you share you .aws/config & credentials structure, pls.
I successfully connected to ovh s3 in console, but I got error in terraform

Error: Error copying state from the previous "local" backend to the newly configured │ "s3" backend: │ failed to upload state: operation error S3: PutObject, https response error StatusCode: 400, RequestID: txce34fdf4c0004e91bd86f-0065a01da1, HostID: txce34fdf4c0004e91bd86f-0065a01da1, api error InvalidArgument: Invalid Argument. │ │ The state in the previous backend remains intact and unmodified. Please resolve │ the error above and try again.

main.tf


  backend "s3" {
    profile = "ovh-dev"
    bucket = "iac-state"
    key    = "terraform.dev"
    region = "de"
    endpoints = {
      s3 = "https://s3.de.io.cloud.ovh.net"
    }
    skip_credentials_validation = true
    skip_region_validation      = true
    skip_requesting_account_id  = true
  }

config

[profile ovh-dev]
region = de
endpoint_url = https://s3.de.io.cloud.ovh.net

Credentials

[ovh-dev]
aws_access_key_id=...
aws_secret_access_key=...

locally request:

aws s3 ls --profile ovh-dev

2024-01-10 18:33:35 iac-state

from docs.

Mx7ca avatar Mx7ca commented on June 12, 2024

Hey @leonidstakhovsky
my configuration looks similarly to yours. I was just trying to work with it again and got the same response. But it seems that by now the documentation has been updated again and a new parameter

skip_s3_checksum            = true

has been added. It fixed the issue at least for me.

from docs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.