Skip to content

Commit

Permalink
Bugfix: deprecated field filter (#44)
Browse files Browse the repository at this point in the history
* alternate_identifier

* update workflows

* update workflows
  • Loading branch information
Benbentwo authored Jun 29, 2023
1 parent 7068058 commit 37f60fa
Show file tree
Hide file tree
Showing 11 changed files with 94 additions and 184 deletions.
1 change: 1 addition & 0 deletions .github/auto-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ version-resolver:
- 'bug'
- 'hotfix'
default: 'minor'
filter-by-commitish: true

categories:
- title: '🚀 Enhancements'
Expand Down
88 changes: 0 additions & 88 deletions .github/workflows/auto-format.yml

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/auto-release.yml

This file was deleted.

37 changes: 0 additions & 37 deletions .github/workflows/chatops.yml

This file was deleted.

16 changes: 16 additions & 0 deletions .github/workflows/feature-branch-chatops.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
name: feature-branch-chatops
on:
issue_comment:
types: [created]

permissions:
pull-requests: write
id-token: write
contents: write

jobs:
terraform-module:
uses: cloudposse/github-actions-workflows-terraform-module/.github/workflows/feature-branch-chatops.yml@main
secrets:
github_access_token: ${{ secrets.REPO_ACCESS_TOKEN }}
19 changes: 19 additions & 0 deletions .github/workflows/feature-branch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: feature-branch
on:
pull_request:
branches:
- main
- release/**
types: [opened, synchronize, reopened, labeled, unlabeled]

permissions:
pull-requests: write
id-token: write
contents: write

jobs:
terraform-module:
uses: cloudposse/github-actions-workflows-terraform-module/.github/workflows/feature-branch.yml@main
secrets:
github_access_token: ${{ secrets.REPO_ACCESS_TOKEN }}
22 changes: 22 additions & 0 deletions .github/workflows/release-branch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: release-branch
on:
push:
branches:
- main
- release/**
paths-ignore:
- '.github/**'
- 'docs/**'
- 'examples/**'
- 'test/**'

permissions:
contents: write
id-token: write

jobs:
terraform-module:
uses: cloudposse/github-actions-workflows-terraform-module/.github/workflows/release-branch.yml@main
secrets:
github_access_token: ${{ secrets.REPO_ACCESS_TOKEN }}
14 changes: 14 additions & 0 deletions .github/workflows/release-published.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: release-published
on:
release:
types:
- published

permissions:
contents: write
id-token: write

jobs:
terraform-module:
uses: cloudposse/github-actions-workflows-terraform-module/.github/workflows/release.yml@main
17 changes: 17 additions & 0 deletions .github/workflows/scheduled.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: scheduled
on:
workflow_dispatch: { } # Allows manually trigger this workflow
schedule:
- cron: "0 3 * * *"

permissions:
pull-requests: write
id-token: write
contents: write

jobs:
scheduled:
uses: cloudposse/github-actions-workflows-terraform-module/.github/workflows/scheduled.yml@main
secrets:
github_access_token: ${{ secrets.REPO_ACCESS_TOKEN }}
30 changes: 0 additions & 30 deletions .github/workflows/validate-codeowners.yml

This file was deleted.

8 changes: 5 additions & 3 deletions modules/account-assignments/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@ data "aws_identitystore_user" "this" {
for_each = local.user_list
identity_store_id = local.identity_store_id

filter {
attribute_path = "UserName"
attribute_value = each.key
alternate_identifier {
unique_attribute {
attribute_path = "UserName"
attribute_value = each.key
}
}

depends_on = [null_resource.dependency]
Expand Down

0 comments on commit 37f60fa

Please sign in to comment.