Skip to content

Commit 22fd540

Browse files
update tf required version constraint (#3)
1 parent b3ad7c6 commit 22fd540

File tree

9 files changed

+18
-20
lines changed

9 files changed

+18
-20
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ azure_env.sh
6363

6464
# VS Code
6565
.vscode/
66+
.devcontainer/
6667

6768
# Ignore json files created by terratest
6869
examples/complete/output.json

.tool-versions

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ golang 1.21.7
33
golangci-lint 1.55.2
44
pre-commit 3.3.3
55
regula 3.2.1 # https://github.com/launchbynttdata/asdf-regula
6-
terraform 1.5.5
6+
terraform 1.9.5
77
terraform-docs 0.16.0
88
terragrunt 0.39.2
99
tflint 0.48.0
10+
python 3.11.5

README.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -127,16 +127,16 @@ Currently, the `encrypt at transit` is not supported in terraform. There is an o
127127

128128
| Name | Version |
129129
|------|---------|
130-
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.5.0, <= 1.5.5 |
130+
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | ~> 1.0 |
131131
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.32.0 |
132132
| <a name="requirement_random"></a> [random](#requirement\_random) | >= 3.6.0 |
133133

134134
## Providers
135135

136136
| Name | Version |
137137
|------|---------|
138-
| <a name="provider_random"></a> [random](#provider\_random) | 3.6.0 |
139-
| <a name="provider_aws"></a> [aws](#provider\_aws) | 5.39.1 |
138+
| <a name="provider_aws"></a> [aws](#provider\_aws) | 5.72.1 |
139+
| <a name="provider_random"></a> [random](#provider\_random) | 3.6.3 |
140140

141141
## Modules
142142

@@ -150,10 +150,9 @@ No modules.
150150
| [aws_iam_role.codepipeline_role](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role) | resource |
151151
| [aws_iam_role_policy.codepipeline_policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role_policy) | resource |
152152
| [random_string.random](https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/string) | resource |
153-
| [aws_caller_identity.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/caller_identity) | data source |
154153
| [aws_iam_policy_document.assume_role](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source |
155154
| [aws_iam_policy_document.codepipeline_policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source |
156-
| [aws_iam_policy_document.pipeline_event_role_policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source |
155+
| [aws_s3_bucket.artifact_bucket](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/s3_bucket) | data source |
157156

158157
## Inputs
159158

@@ -162,10 +161,9 @@ No modules.
162161
| <a name="input_name"></a> [name](#input\_name) | The name of the pipeline | `string` | n/a | yes |
163162
| <a name="input_artifact_stores"></a> [artifact\_stores](#input\_artifact\_stores) | One or more artifact\_store blocks. | `list(map(string))` | <pre>[<br> {<br> "use_kms": false<br> }<br>]</pre> | no |
164163
| <a name="input_stages"></a> [stages](#input\_stages) | One or more stage blocks. | `any` | n/a | yes |
165-
| <a name="input_source_s3_bucket"></a> [artifact\_bucket\_name](#input\_source\_s3\_bucket) | Name of the S3 source bucket. | `string` | `null` | no |
166-
| <a name="input_codepipeline_iam"></a> [codepipeline\_iam](#input\_codepipeline\_iam) | Additional IAM actions to add to CodePipeline IAM role. | `map(list(string))` | `null` | no |
167164
| <a name="input_pipeline_type"></a> [pipeline\_type](#input\_pipeline\_type) | The CodePipeline pipeline\_type. Valid options are V1, V2 | `string` | `"V1"` | no |
168165
| <a name="input_execution_mode"></a> [execution\_mode](#input\_execution\_mode) | The CodePipeline execution\_mode. Valid options are `PARALLEL`, `QUEUED`, `SUPERSEDED` (default) | `string` | `"SUPERSEDED"` | no |
166+
| <a name="input_artifact_bucket_name"></a> [artifact\_bucket\_name](#input\_artifact\_bucket\_name) | the name of the S3 bucket used for storing the artifacts in the Codepipeline | `string` | n/a | yes |
169167
| <a name="input_tags"></a> [tags](#input\_tags) | An arbitrary map of tags that can be added to all resources. | `map(string)` | `{}` | no |
170168

171169
## Outputs

examples/complete/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ provider "random" {}
1818

1919
| Name | Version |
2020
|------|---------|
21-
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.5.0, <= 1.5.5 |
21+
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | ~> 1.0 |
2222
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.32.0 |
2323
| <a name="requirement_random"></a> [random](#requirement\_random) | >= 3.6.0 |
2424

2525
## Providers
2626

2727
| Name | Version |
2828
|------|---------|
29-
| <a name="provider_random"></a> [random](#provider\_random) | 3.6.2 |
29+
| <a name="provider_random"></a> [random](#provider\_random) | 3.6.3 |
3030

3131
## Modules
3232

@@ -48,6 +48,7 @@ provider "random" {}
4848
| <a name="input_stages"></a> [stages](#input\_stages) | One or more stage blocks. | `any` | n/a | yes |
4949
| <a name="input_pipeline_type"></a> [pipeline\_type](#input\_pipeline\_type) | The CodePipeline pipeline\_type. Valid options are V1, V2 | `string` | `"V2"` | no |
5050
| <a name="input_execution_mode"></a> [execution\_mode](#input\_execution\_mode) | The CodePipeline execution\_mode. Valid options are `PARALLEL`, `QUEUED`, `SUPERSEDED` (default) | `string` | `"SUPERSEDED"` | no |
51+
| <a name="input_artifact_bucket_name"></a> [artifact\_bucket\_name](#input\_artifact\_bucket\_name) | the name of the S3 bucket used for storing the artifacts in the Codepipeline | `string` | n/a | yes |
5152
| <a name="input_tags"></a> [tags](#input\_tags) | An arbitrary map of tags that can be added to all resources. | `map(string)` | `{}` | no |
5253

5354
## Outputs
@@ -56,6 +57,5 @@ provider "random" {}
5657
|------|-------------|
5758
| <a name="output_id"></a> [id](#output\_id) | The codepipeline ID |
5859
| <a name="output_arn"></a> [arn](#output\_arn) | The codepipeline ARN |
59-
6060
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
61-
c
61+
c

examples/complete/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module "codepipeline" {
2020
source = "../.."
2121

2222
name = var.name
23-
23+
2424
artifact_bucket_name = var.artifact_bucket_name
2525
stages = var.stages
2626
pipeline_type = var.pipeline_type

examples/complete/versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// limitations under the License.
1212

1313
terraform {
14-
required_version = ">= 1.5.0, <= 1.5.5"
14+
required_version = "~> 1.0"
1515

1616
required_providers {
1717
aws = {

locals.tf

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ locals {
1414
default_tags = {
1515
provisioner = "Terraform"
1616
}
17-
17+
1818
tags = merge(local.default_tags, var.tags)
1919
}
20-
21-

main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ resource "aws_iam_role" "codepipeline_role" {
102102

103103
data "aws_iam_policy_document" "codepipeline_policy" {
104104

105-
statement {
105+
statement {
106106
effect = "Allow"
107107
actions = [
108108
"cloudwatch:*",
@@ -145,4 +145,4 @@ resource "random_string" "random" {
145145
length = 10
146146
special = false
147147
upper = false
148-
}
148+
}

versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// limitations under the License.
1212

1313
terraform {
14-
required_version = ">= 1.5.0, <= 1.5.5"
14+
required_version = "~> 1.0"
1515

1616
required_providers {
1717
aws = {

0 commit comments

Comments
 (0)