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

feat: add field create_aws_s3_bucket_public_access_block to variable runner_worker_cache #1105

Conversation

KevinSnyderCodes
Copy link
Contributor

Description

Some organizations may disallow configuring block public access settings on individual S3 buckets. For example, the organization may use account level configuration to block public access on all buckets.

To support this, we add the field create_aws_s3_bucket_public_access_block to the runner_worker_cache variable.

We add count to the aws_s3_bucket_public_access_block resource to control its creation and use the moved keyword to ensure that existing instances of this resource are not recreated due to this change.

Migrations required

No. Migrations are automatically handled by moved keyword.

Verification

Applied this module with the create_aws_s3_bucket_public_access_block field set to false. The aws_s3_bucket_public_access_block resource was not created. All other resources were created as expected.

…ner_worker_cache`

Some organizations may disallow configuring block public access settings on individual S3 buckets. For example, the organization may use account level configuration to block public access on all buckets.

To support this, we add the field `create_aws_s3_bucket_public_access_block` to the `runner_worker_cache` variable.

We add `count` to the `aws_s3_bucket_public_access_block` resource to control its creation and use the `moved` keyword to ensure that existing instances of this resource are not recreated due to this change.
Copy link
Contributor

github-actions bot commented Apr 3, 2024

Hey @KevinSnyderCodes! 👋

Thank you for your contribution to the project. Please refer to the contribution rules for a quick overview of the process.

Make sure that this PR clearly explains:

  • the problem being solved
  • the best way a reviewer and you can test your changes

With submitting this PR you confirm that you hold the rights of the code added and agree that it will published under this LICENSE.

The following ChatOps commands are supported:

  • /help: notifies a maintainer to help you out

Simply add a comment with the command in the first line. If you need to pass more information, separate it with a blank line from the command.

This message was generated automatically. You are welcome to improve it.

@KevinSnyderCodes KevinSnyderCodes changed the title Add field create_aws_s3_bucket_public_access_block to variable runner_worker_cache feat: Add field create_aws_s3_bucket_public_access_block to variable runner_worker_cache Apr 3, 2024
@KevinSnyderCodes KevinSnyderCodes changed the title feat: Add field create_aws_s3_bucket_public_access_block to variable runner_worker_cache feat: add field create_aws_s3_bucket_public_access_block to variable runner_worker_cache Apr 3, 2024
variables.tf Outdated Show resolved Hide resolved
modules/cache/moved.tf Outdated Show resolved Hide resolved
variables.tf Outdated Show resolved Hide resolved
variables.tf Outdated Show resolved Hide resolved
Kevin Snyder and others added 2 commits April 10, 2024 13:20
@kayman-mk
Copy link
Collaborator

Did some quick tests in my environment. Looks good to me.

@kayman-mk kayman-mk self-requested a review April 10, 2024 20:42
Copy link
Collaborator

@kayman-mk kayman-mk left a comment

Choose a reason for hiding this comment

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

Thanks for improving this module.

Kevin Snyder added 2 commits April 10, 2024 14:06
…ock_to_variable_runner_worker_cache' of https://github.com/KevinSnyderCodes/terraform-aws-gitlab-runner into feature/add_field_create_aws_s3_bucket_public_access_block_to_variable_runner_worker_cache
@kayman-mk kayman-mk self-requested a review April 11, 2024 07:51
@kayman-mk kayman-mk merged commit aa93e76 into cattle-ops:main Apr 11, 2024
19 checks passed
kayman-mk pushed a commit that referenced this pull request Apr 13, 2024
🤖 I have created a release *beep* *boop*
---


##
[7.5.0](7.4.0...7.5.0)
(2024-04-11)


### Features

* add field `create_aws_s3_bucket_public_access_block` to variable
`runner_worker_cache`
([#1105](#1105))
([aa93e76](aa93e76))


### Bug Fixes

* do not deregister GitLab tokens which are still in use
([#1102](#1102))
([9cdab00](9cdab00))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: cattle-ops-releaser-2[bot] <134548870+cattle-ops-releaser-2[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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.

2 participants