Closed KevinSnyderCodes closed 7 months ago
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:
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 outSimply 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.
Did some quick tests in my environment. Looks good to me.
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 therunner_worker_cache
variable.We add
count
to theaws_s3_bucket_public_access_block
resource to control its creation and use themoved
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 tofalse
. Theaws_s3_bucket_public_access_block
resource was not created. All other resources were created as expected.