Skip to content

Inconsistent state bucket and dynamo db table namingΒ #6

@rochecompaan

Description

@rochecompaan

πŸ› Describe the bug

The state bucket and DynamoDB tables are named inconsistently across the bootstrap, github and environment-specific terraform dirs, causing the following error when deploying an environment:

β”‚ Error: Failed to get existing workspaces: S3 bucket does not exist.
β”‚
β”‚ The referenced S3 bucket must have been previously created. If the S3 bucket
β”‚ was created within the last minute, please wait for a minute or two and try
β”‚ again.
β”‚

πŸ’­ Expected Behavior

Bootstrapping infra with task deploy-<environment> should work without error.

πŸ” Steps To Reproduce

Create a new project from the talos template and provision a new environment with task deploy-<environment>.

πŸ“ Additional context

Looking at the copier templates, they are referencing the state bucket in inconsistent ways. In bootstrap it's named:

  bucket = "{{ copier__terraform_state_name }}"

in github/oidc.tf it's named:

    bucket         = "{{ copier__project_dash }}-terraform-state"

πŸ“œ Relevant log output

πŸ“Έ Screenshots

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions