You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add field create_aws_s3_bucket_public_access_block to variable runner_worker_cache (#1105)
## 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.
---------
Co-authored-by: Kevin Snyder <[email protected]>
Co-authored-by: Matthias Kay <[email protected]>
create = Boolean used to enable or disable the creation of the cache bucket.
416
+
create_aws_s3_bucket_public_access_block = Boolean used to enable or disable the creation of the public access block for the cache bucket. Useful when organizations do not allow the creation of public access blocks on individual buckets (e.g. public access is blocked on all buckets at the organization level).
416
417
expiration_days = Number of days before cache objects expire. Requires `create = true`.
417
418
include_account_id = Boolean used to include the account id in the cache bucket name. Requires `create = true`.
418
419
policy = Policy to use for the cache bucket. Requires `create = false`.
0 commit comments