From 1aa073c95fa446ea4749e53f8cbcd125bbbe2deb Mon Sep 17 00:00:00 2001 From: Niek Palm Date: Wed, 18 May 2022 00:15:26 +0200 Subject: [PATCH] feat: Update default versions / drop support Terraform before 0.15 (#454) * chore: refactor master to main * rebase * feat: Upgrade default verions and drop support for Terraform < 0.15 * Set terraform version for submodules --- modules/cache/README.md | 56 +-------------------------------------- modules/cache/versions.tf | 2 +- 2 files changed, 2 insertions(+), 56 deletions(-) diff --git a/modules/cache/README.md b/modules/cache/README.md index cc708db6a..a6c3ad694 100644 --- a/modules/cache/README.md +++ b/modules/cache/README.md @@ -29,7 +29,7 @@ module "runner" { | Name | Version | |------|---------| -| [terraform](#requirement\_terraform) | >= 0.13 | +| [terraform](#requirement\_terraform) | >= 0.15 | | [aws](#requirement\_aws) | >= 4.0 | ## Providers @@ -76,60 +76,6 @@ No modules. ## Outputs -| Name | Description | -|------|-------------| -| [arn](#output\_arn) | The ARN of the created bucket. | -| [bucket](#output\_bucket) | Name of the created bucket. | -| [policy\_arn](#output\_policy\_arn) | Policy for users of the cache (bucket). | - - - -## Requirements - -| Name | Version | -|------|---------| -| [terraform](#requirement\_terraform) | >= 0.15 | - -## Providers - -| Name | Version | -|------|---------| -| [aws](#provider\_aws) | n/a | -| [random](#provider\_random) | n/a | - -## Modules - -No modules. - -## Resources - -| Name | Type | -|------|------| -| [aws_iam_policy.docker_machine_cache](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_policy) | resource | -| [aws_s3_bucket.build_cache](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket) | resource | -| [aws_s3_bucket_public_access_block.build_cache_policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_public_access_block) | resource | -| [random_string.s3_suffix](https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/string) | resource | -| [aws_caller_identity.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/caller_identity) | data source | - -## Inputs - -| Name | Description | Type | Default | Required | -|------|-------------|------|---------|:--------:| -| [arn\_format](#input\_arn\_format) | ARN format to be used. May be changed to support deployment in GovCloud/China regions. | `string` | `"arn:aws"` | no | -| [cache\_bucket\_name\_include\_account\_id](#input\_cache\_bucket\_name\_include\_account\_id) | Boolean to add current account ID to cache bucket name. | `bool` | `true` | no | -| [cache\_bucket\_prefix](#input\_cache\_bucket\_prefix) | Prefix for s3 cache bucket name. | `string` | `""` | no | -| [cache\_bucket\_set\_random\_suffix](#input\_cache\_bucket\_set\_random\_suffix) | Random string suffix for s3 cache bucket | `bool` | `false` | no | -| [cache\_bucket\_versioning](#input\_cache\_bucket\_versioning) | Boolean used to enable versioning on the cache bucket, false by default. | `string` | `"false"` | no | -| [cache\_expiration\_days](#input\_cache\_expiration\_days) | Number of days before cache objects expires. | `number` | `1` | no | -| [cache\_lifecycle\_clear](#input\_cache\_lifecycle\_clear) | Enable the rule to cleanup the cache for expired objects. | `bool` | `true` | no | -| [cache\_lifecycle\_prefix](#input\_cache\_lifecycle\_prefix) | Object key prefix identifying one or more objects to which the clean up rule applies. | `string` | `"runner/"` | no | -| [create\_cache\_bucket](#input\_create\_cache\_bucket) | This module is by default included in the runner module. To disable the creation of the bucket this parameter can be disabled. | `bool` | `true` | no | -| [environment](#input\_environment) | A name that identifies the environment, used as prefix and for tagging. | `string` | n/a | yes | -| [name\_iam\_objects](#input\_name\_iam\_objects) | Set the name prefix of all AWS IAM resources created by this module | `string` | `""` | no | -| [tags](#input\_tags) | Map of tags that will be added to created resources. By default resources will be tagged with name and environment. | `map(string)` | `{}` | no | - -## Outputs - | Name | Description | |------|-------------| | [arn](#output\_arn) | The ARN of the created bucket. | diff --git a/modules/cache/versions.tf b/modules/cache/versions.tf index 17800c6c6..10766724b 100644 --- a/modules/cache/versions.tf +++ b/modules/cache/versions.tf @@ -1,6 +1,6 @@ terraform { - required_version = ">= 0.13" + required_version = ">= 0.15" required_providers { aws = {