Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Update CI configuration files to use latest version #2

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/lock.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: 'Lock Threads'

on:
schedule:
- cron: '50 1 * * *'

jobs:
lock:
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
issue-comment: >
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.
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.
issue-inactive-days: '30'
pr-comment: >
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.
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.
pr-inactive-days: '30'
2 changes: 1 addition & 1 deletion .github/workflows/pr-title.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
steps:
# Please look up the latest version from
# https://github.com/amannn/action-semantic-pull-request/releases
- uses: amannn/action-semantic-pull-request@v3.4.6
- uses: amannn/action-semantic-pull-request@v5.0.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ jobs:
directories: ${{ steps.dirs.outputs.directories }}
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Get root directories
id: dirs
uses: clowdhaus/terraform-composite-actions/directories@v1.3.0
uses: clowdhaus/terraform-composite-actions/directories@v1.8.0

preCommitMinVersions:
name: Min TF pre-commit
Expand All @@ -32,26 +32,26 @@ jobs:
directory: ${{ fromJson(needs.collectInputs.outputs.directories) }}
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Terraform min/max versions
id: minMax
uses: clowdhaus/terraform-min-max@v1.0.3
uses: clowdhaus/terraform-min-max@v1.2.0
with:
directory: ${{ matrix.directory }}

- name: Pre-commit Terraform ${{ steps.minMax.outputs.minVersion }}
# Run only validate pre-commit check on min version supported
if: ${{ matrix.directory != '.' }}
uses: clowdhaus/terraform-composite-actions/pre-commit@v1.3.0
uses: clowdhaus/terraform-composite-actions/pre-commit@v1.8.0
with:
terraform-version: ${{ steps.minMax.outputs.minVersion }}
args: 'terraform_validate --color=always --show-diff-on-failure --files ${{ matrix.directory }}/*'

- name: Pre-commit Terraform ${{ steps.minMax.outputs.minVersion }}
# Run only validate pre-commit check on min version supported
if: ${{ matrix.directory == '.' }}
uses: clowdhaus/terraform-composite-actions/pre-commit@v1.3.0
uses: clowdhaus/terraform-composite-actions/pre-commit@v1.8.0
with:
terraform-version: ${{ steps.minMax.outputs.minVersion }}
args: 'terraform_validate --color=always --show-diff-on-failure --files $(ls *.tf)'
Expand All @@ -62,17 +62,17 @@ jobs:
needs: collectInputs
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{github.event.pull_request.head.repo.full_name}}

- name: Terraform min/max versions
id: minMax
uses: clowdhaus/terraform-min-max@v1.0.3
uses: clowdhaus/terraform-min-max@v1.2.0

- name: Pre-commit Terraform ${{ steps.minMax.outputs.maxVersion }}
uses: clowdhaus/terraform-composite-actions/pre-commit@v1.3.0
uses: clowdhaus/terraform-composite-actions/pre-commit@v1.8.0
with:
terraform-version: ${{ steps.minMax.outputs.maxVersion }}
terraform-docs-version: ${{ env.TERRAFORM_DOCS_VERSION }}
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
if: github.repository_owner == 'terraform-aws-modules'
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
persist-credentials: false
fetch-depth: 0
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stale-actions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v4
- uses: actions/stale@v6
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
# Staling issues and PR's
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.68.1
rev: v1.76.0
hooks:
- id: terraform_fmt
- id: terraform_validate
Expand All @@ -23,7 +23,7 @@ repos:
- '--args=--only=terraform_standard_module_structure'
- '--args=--only=terraform_workspace_remote'
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
rev: v4.3.0
hooks:
- id: check-merge-conflict
- id: end-of-file-fixer
38 changes: 19 additions & 19 deletions outputs.tf
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Application
output "application_arn" {
description = "The Amazon Resource Name (ARN) of the AppConfig Application"
value = element(concat(aws_appconfig_application.this.*.arn, [""]), 0)
value = try(aws_appconfig_application.this[0].arn, "")
}

output "application_id" {
description = "The AppConfig application ID"
value = element(concat(aws_appconfig_application.this.*.id, [""]), 0)
value = try(aws_appconfig_application.this[0].id, "")
}

# Environments
Expand All @@ -18,44 +18,44 @@ output "environments" {
# Configuration profile
output "configuration_profile_arn" {
description = "The Amazon Resource Name (ARN) of the AppConfig Configuration Profile"
value = element(concat(aws_appconfig_configuration_profile.this.*.arn, [""]), 0)
value = try(aws_appconfig_configuration_profile.this[0].arn, "")
}

output "configuration_profile_configuration_profile_id" {
description = "The configuration profile ID"
value = element(concat(aws_appconfig_configuration_profile.this.*.configuration_profile_id, [""]), 0)
value = try(aws_appconfig_configuration_profile.this[0].configuration_profile_id, "")
}

output "configuration_profile_id" {
description = "The AppConfig configuration profile ID and application ID separated by a colon (:)"
value = element(concat(aws_appconfig_configuration_profile.this.*.id, [""]), 0)
value = try(aws_appconfig_configuration_profile.this[0].id, "")
}

# Hosted configuration version
output "hosted_configuration_version_arn" {
description = "The Amazon Resource Name (ARN) of the AppConfig hosted configuration version"
value = element(concat(aws_appconfig_hosted_configuration_version.this.*.arn, [""]), 0)
value = try(aws_appconfig_hosted_configuration_version.this[0].arn, "")
}

output "hosted_configuration_version_id" {
description = "The AppConfig application ID, configuration profile ID, and version number separated by a slash (/)"
value = element(concat(aws_appconfig_hosted_configuration_version.this.*.id, [""]), 0)
value = try(aws_appconfig_hosted_configuration_version.this[0].id, "")
}

output "hosted_configuration_version_version_number" {
description = "The version number of the hosted configuration"
value = element(concat(aws_appconfig_hosted_configuration_version.this.*.version_number, [""]), 0)
value = try(aws_appconfig_hosted_configuration_version.this[0].version_number, "")
}

# Deployment strategy
output "deployment_strategy_arn" {
description = "The Amazon Resource Name (ARN) of the AppConfig Deployment Strategy"
value = element(concat(aws_appconfig_deployment_strategy.this.*.arn, [""]), 0)
value = try(aws_appconfig_deployment_strategy.this[0].arn, "")
}

output "deployment_strategy_id" {
description = "The AppConfig deployment strategy ID"
value = element(concat(aws_appconfig_deployment_strategy.this.*.id, [""]), 0)
value = try(aws_appconfig_deployment_strategy.this[0].id, "")
}

# Deployment
Expand All @@ -67,45 +67,45 @@ output "deployments" {
# Retrieval role
output "retrieval_role_arn" {
description = "Amazon Resource Name (ARN) specifying the retrieval role"
value = element(concat(aws_iam_role.retrieval.*.arn, [""]), 0)
value = try(aws_iam_role.retrieval[0].arn, "")
}

output "retrieval_role_id" {
description = "Name of the retrieval role"
value = element(concat(aws_iam_role.retrieval.*.id, [""]), 0)
value = try(aws_iam_role.retrieval[0].id, "")
}

output "retrieval_role_unique_id" {
description = "Stable and unique string identifying the retrieval role"
value = element(concat(aws_iam_role.retrieval.*.unique_id, [""]), 0)
value = try(aws_iam_role.retrieval[0].unique_id, "")
}

output "retrieval_role_name" {
description = "Name of the retrieval role"
value = element(concat(aws_iam_role.retrieval.*.name, [""]), 0)
value = try(aws_iam_role.retrieval[0].name, "")
}

output "retrieval_role_policy_arn" {
description = "The ARN assigned by AWS to the retrieval role policy"
value = element(concat(aws_iam_policy.retrieval.*.arn, [""]), 0)
value = try(aws_iam_policy.retrieval[0].arn, "")
}

output "retrieval_role_policy_id" {
description = "The ARN assigned by AWS to the retrieval role policy"
value = element(concat(aws_iam_policy.retrieval.*.id, [""]), 0)
value = try(aws_iam_policy.retrieval[0].id, "")
}

output "retrieval_role_policy_name" {
description = "The name of the policy"
value = element(concat(aws_iam_policy.retrieval.*.name, [""]), 0)
value = try(aws_iam_policy.retrieval[0].name, "")
}

output "retrieval_role_policy_policy" {
description = "The retrieval role policy document"
value = element(concat(aws_iam_policy.retrieval.*.policy, [""]), 0)
value = try(aws_iam_policy.retrieval[0].policy, "")
}

output "retrieval_role_policy_policy_id" {
description = "The retrieval role policy ID"
value = element(concat(aws_iam_policy.retrieval.*.policy_id, [""]), 0)
value = try(aws_iam_policy.retrieval[0].policy_id, "")
}