Exception Aws::DynamoDB::Errors::ResourceInUseException: Attempt to change a resource which is still in use: Table is being created: terraform_locks #28
Labels
help wanted
Extra attention is needed
Hi!
I think there is a race condition during
terraspace all up
if batch 1 contains more than 1 stack and the environment has never been used before so doesn't contain aterraform_locks
dynamodb table.All stacks try to create the table simultaneously resulting in some failing.
This is with plugin version
0.6.1
Would it be appropriate to interpolate the stack name into the table name here somehow?
terraspace_plugin_aws/lib/templates/ruby/project/config/terraform/backend.rb.tt
Line 9 in b2d749b
(I was thinking perhaps append
_:MOD_NAME
, but maybe that causes issues if the stack name contains incompatible characters and is also maybe problematic when:MOD_NAME
is a module and not a stack???)The text was updated successfully, but these errors were encountered: