Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add var.environment to the name of the S3 cache bucket #533

Merged
merged 3 commits into from
Oct 13, 2022

Conversation

kayman-mk
Copy link
Collaborator

@kayman-mk kayman-mk commented Aug 23, 2022

Description

Adds the name of the environment to the S3 cache bucket name. As #507 explains, the environment name from var.environment is not part of the S3 cache bucket name which can cause problems if the module is deployed multiple times.

Furthermore the documentation states that var.environment is used as prefix for the resources which was not the case here.

Closes #507

Migrations required

No, but the whole cache bucket is lost and you may experience degraded performance of your runners for a while as the cache is cleared.

Verification

  • apply over the latest deployed version. S3 bucket should be recreated with a name prefixed with the environment name. The new S3 bucket is empty
  • apply from scratch and make sure that the Runners are working.

tags.tf Outdated Show resolved Hide resolved
Copy link
Collaborator

@npalm npalm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@npalm npalm merged commit 3189a2f into cattle-ops:develop Oct 13, 2022
npalm added a commit that referenced this pull request Oct 13, 2022
* add `var.environment` to name of cache bucket

* shorten the hostname if no override is used

Co-authored-by: kayma <[email protected]>
semantic-releaser bot pushed a commit that referenced this pull request Oct 13, 2022
### [5.4.1](5.4.0...5.4.1) (2022-10-13)

### Bug Fixes

* Add var.environment to the name of the S3 cache bucket [#533](#533) ([#555](#555)) ([6e0cd97](6e0cd97))
@kayman-mk kayman-mk deleted the kayma/cache-environment branch October 13, 2022 21:42
npalm pushed a commit to npalm/test-repo that referenced this pull request Dec 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cache: environment is not included as bucket name prefix
2 participants