I'm trying to migrate to using the new 0.9 s3 backend, I'm using terraform 0.9.2. I was already using the old s3 remote state before. I'm also trying to use the new state locking with DynamoDB.
I created the dynamodb table "foobar" with a primary key of "LockID". When I run terraform init I get the following output:
Initializing the backend...
Legacy remote state was detected while also changing your current backend!reset]
Terraform has detected that you have legacy remote state, a configured
current backend, and you're attempting to reconfigure your backend. To handle
all of these changes, Terraform will first reconfigure your backend. After
this, Terraform will handle optionally copying your legacy remote state
into the newly configured backend.
Do you want to copy the state from "s3"?
Would you like to copy the state from your prior backend "s3" to the
newly configured "s3" backend? If you're reconfiguring the same backend,
answering "yes" or "no" shouldn't make a difference. Please answer exactly
"yes" or "no".
Enter a value: yes
Error locking source state: Error acquiring the state lock: 2 error(s) occurred:
* ResourceNotFoundException: Requested resource not found
status code: 400, request id: CADDUB3DG14JRUTE4DK1FATMGVVV4KQNSO5AEMVJF66Q9ASUAAJG
* ResourceNotFoundException: Requested resource not found
status code: 400, request id: B5K7M98IQFA9K6F6UALF14MCA3VV4KQNSO5AEMVJF66Q9ASUAAJG
Terraform acquires a state lock to protect the state from being written
by multiple users at the same time. Please resolve the issue above and try
again. For most commands, you can disable locking with the "-lock=false"
flag, but this is not recommended.