Skip to content

Commit 035ea6c

Browse files
authored
fix: Update CI configuration files to use latest version (#84)
1 parent c77241f commit 035ea6c

File tree

7 files changed

+46
-25
lines changed

7 files changed

+46
-25
lines changed

.github/workflows/lock.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: 'Lock Threads'
2+
3+
on:
4+
schedule:
5+
- cron: '50 1 * * *'
6+
7+
jobs:
8+
lock:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: dessant/lock-threads@v3
12+
with:
13+
github-token: ${{ secrets.GITHUB_TOKEN }}
14+
issue-comment: >
15+
I'm going to lock this issue because it has been closed for _30 days_ ⏳. This helps our maintainers find and focus on the active issues.
16+
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
17+
issue-inactive-days: '30'
18+
pr-comment: >
19+
I'm going to lock this pull request because it has been closed for _30 days_ ⏳. This helps our maintainers find and focus on the active issues.
20+
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
21+
pr-inactive-days: '30'

.github/workflows/pr-title.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
steps:
1515
# Please look up the latest version from
1616
# https://github.com/amannn/action-semantic-pull-request/releases
17-
- uses: amannn/action-semantic-pull-request@v3.4.6
17+
- uses: amannn/action-semantic-pull-request@v5.0.2
1818
env:
1919
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2020
with:

.github/workflows/pre-commit.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ jobs:
1717
directories: ${{ steps.dirs.outputs.directories }}
1818
steps:
1919
- name: Checkout
20-
uses: actions/checkout@v2
20+
uses: actions/checkout@v3
2121

2222
- name: Get root directories
2323
id: dirs
24-
uses: clowdhaus/terraform-composite-actions/directories@v1.3.0
24+
uses: clowdhaus/terraform-composite-actions/directories@v1.8.0
2525

2626
preCommitMinVersions:
2727
name: Min TF pre-commit
@@ -32,11 +32,11 @@ jobs:
3232
directory: ${{ fromJson(needs.collectInputs.outputs.directories) }}
3333
steps:
3434
- name: Checkout
35-
uses: actions/checkout@v2
35+
uses: actions/checkout@v3
3636

3737
- name: Terraform min/max versions
3838
id: minMax
39-
uses: clowdhaus/terraform-min-max@v1.0.3
39+
uses: clowdhaus/terraform-min-max@v1.2.0
4040
with:
4141
directory: ${{ matrix.directory }}
4242

@@ -62,14 +62,14 @@ jobs:
6262
needs: collectInputs
6363
steps:
6464
- name: Checkout
65-
uses: actions/checkout@v2
65+
uses: actions/checkout@v3
6666
with:
6767
ref: ${{ github.event.pull_request.head.ref }}
6868
repository: ${{github.event.pull_request.head.repo.full_name}}
6969

7070
- name: Terraform min/max versions
7171
id: minMax
72-
uses: clowdhaus/terraform-min-max@v1.0.3
72+
uses: clowdhaus/terraform-min-max@v1.2.0
7373

7474
- name: Pre-commit Terraform ${{ steps.minMax.outputs.maxVersion }}
7575
uses: clowdhaus/terraform-composite-actions/pre-commit@v1.6.0

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
if: github.repository_owner == 'terraform-aws-modules'
2121
steps:
2222
- name: Checkout
23-
uses: actions/checkout@v2
23+
uses: actions/checkout@v3
2424
with:
2525
persist-credentials: false
2626
fetch-depth: 0

.github/workflows/stale-actions.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
stale:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/stale@v4
10+
- uses: actions/stale@v6
1111
with:
1212
repo-token: ${{ secrets.GITHUB_TOKEN }}
1313
# Staling issues and PR's

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/antonbabenko/pre-commit-terraform
3-
rev: v1.75.0
3+
rev: v1.76.0
44
hooks:
55
- id: terraform_fmt
66
- id: terraform_wrapper_module_for_each

outputs.tf

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,74 +1,74 @@
11
output "cloudfront_distribution_id" {
22
description = "The identifier for the distribution."
3-
value = element(concat(aws_cloudfront_distribution.this.*.id, [""]), 0)
3+
value = try(aws_cloudfront_distribution.this[0].id, "")
44
}
55

66
output "cloudfront_distribution_arn" {
77
description = "The ARN (Amazon Resource Name) for the distribution."
8-
value = element(concat(aws_cloudfront_distribution.this.*.arn, [""]), 0)
8+
value = try(aws_cloudfront_distribution.this[0].arn, "")
99
}
1010

1111
output "cloudfront_distribution_caller_reference" {
1212
description = "Internal value used by CloudFront to allow future updates to the distribution configuration."
13-
value = element(concat(aws_cloudfront_distribution.this.*.caller_reference, [""]), 0)
13+
value = try(aws_cloudfront_distribution.this[0].caller_reference, "")
1414
}
1515

1616
output "cloudfront_distribution_status" {
1717
description = "The current status of the distribution. Deployed if the distribution's information is fully propagated throughout the Amazon CloudFront system."
18-
value = element(concat(aws_cloudfront_distribution.this.*.status, [""]), 0)
18+
value = try(aws_cloudfront_distribution.this[0].status, "")
1919
}
2020

2121
output "cloudfront_distribution_trusted_signers" {
2222
description = "List of nested attributes for active trusted signers, if the distribution is set up to serve private content with signed URLs"
23-
value = element(concat(aws_cloudfront_distribution.this.*.trusted_signers, [""]), 0)
23+
value = try(aws_cloudfront_distribution.this[0].trusted_signers, "")
2424
}
2525

2626
output "cloudfront_distribution_domain_name" {
2727
description = "The domain name corresponding to the distribution."
28-
value = element(concat(aws_cloudfront_distribution.this.*.domain_name, [""]), 0)
28+
value = try(aws_cloudfront_distribution.this[0].domain_name, "")
2929
}
3030

3131
output "cloudfront_distribution_last_modified_time" {
3232
description = "The date and time the distribution was last modified."
33-
value = element(concat(aws_cloudfront_distribution.this.*.last_modified_time, [""]), 0)
33+
value = try(aws_cloudfront_distribution.this[0].last_modified_time, "")
3434
}
3535

3636
output "cloudfront_distribution_in_progress_validation_batches" {
3737
description = "The number of invalidation batches currently in progress."
38-
value = element(concat(aws_cloudfront_distribution.this.*.in_progress_validation_batches, [""]), 0)
38+
value = try(aws_cloudfront_distribution.this[0].in_progress_validation_batches, "")
3939
}
4040

4141
output "cloudfront_distribution_etag" {
4242
description = "The current version of the distribution's information."
43-
value = element(concat(aws_cloudfront_distribution.this.*.etag, [""]), 0)
43+
value = try(aws_cloudfront_distribution.this[0].etag, "")
4444
}
4545

4646
output "cloudfront_distribution_hosted_zone_id" {
4747
description = "The CloudFront Route 53 zone ID that can be used to route an Alias Resource Record Set to."
48-
value = element(concat(aws_cloudfront_distribution.this.*.hosted_zone_id, [""]), 0)
48+
value = try(aws_cloudfront_distribution.this[0].hosted_zone_id, "")
4949
}
5050

5151
output "cloudfront_origin_access_identities" {
5252
description = "The origin access identities created"
53-
value = local.create_origin_access_identity ? { for k, v in aws_cloudfront_origin_access_identity.this : k => v } : {}
53+
value = { for k, v in aws_cloudfront_origin_access_identity.this : k => v if local.create_origin_access_identity }
5454
}
5555

5656
output "cloudfront_origin_access_identity_ids" {
5757
description = "The IDS of the origin access identities created"
58-
value = local.create_origin_access_identity ? [for v in aws_cloudfront_origin_access_identity.this : v.id] : []
58+
value = [for v in aws_cloudfront_origin_access_identity.this : v.id if local.create_origin_access_identity]
5959
}
6060

6161
output "cloudfront_origin_access_identity_iam_arns" {
6262
description = "The IAM arns of the origin access identities created"
63-
value = local.create_origin_access_identity ? [for v in aws_cloudfront_origin_access_identity.this : v.iam_arn] : []
63+
value = [for v in aws_cloudfront_origin_access_identity.this : v.iam_arn if local.create_origin_access_identity]
6464
}
6565

6666
output "cloudfront_monitoring_subscription_id" {
6767
description = " The ID of the CloudFront monitoring subscription, which corresponds to the `distribution_id`."
68-
value = element(concat(aws_cloudfront_monitoring_subscription.this.*.id, [""]), 0)
68+
value = try(aws_cloudfront_monitoring_subscription.this[0].id, "")
6969
}
7070

7171
output "cloudfront_distribution_tags" {
7272
description = "Tags of the distribution's"
73-
value = element(concat(aws_cloudfront_distribution.this.*.tags_all, [""]), 0)
73+
value = try(aws_cloudfront_distribution.this[0].tags_all, "")
7474
}

0 commit comments

Comments
 (0)