Skip to content

Commit

Permalink
feat(ci): ci provisoner role for kloud account
Browse files Browse the repository at this point in the history
Signed-off-by: kolvin <15124052+Kolvin@users.noreply.github.com>
  • Loading branch information
kolvin committed Jun 17, 2023
1 parent 111a1de commit b6e286d
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/terragrunt-kloud.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: kloud-ci-roles

on:
pull_request:
branches: main
paths:
- 'environments/kloud/global/**'
- '.github/workflows/**-kloud.yml'
- 'common.hcl'
push:
branches: main

jobs:
terragrunt:
permissions:
contents: read
id-token: write
pull-requests: write
uses: kloud-cnf/workflows/.github/workflows/terragrunt.yaml@v0.3.7
with:
working-directory: "environments/kloud/global/"
target-account-id: "016272825626"
target-region: "eu-west-1"
ci-role-name: "github-ci-role-provisioner"
25 changes: 25 additions & 0 deletions environments/kloud/global/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions environments/kloud/global/terragrunt.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
include "common" {
path = find_in_parent_folders("common.hcl")
}

inputs = {
platform = "github"
roles = [
{
name_suffix = "infrastructure-provisoner" # https://catalog.workshops.aws/iam-policy-types/en-US/6-labs/lab2-cicd-role
trusted_projects_refs = [
{
paths = ["kolvin/kloud"]
branches = ["*"]
tags = ["*"]
}
]
templated_policy_statements = [
{
template = "terraform-ci"
}
]
}
]
}

0 comments on commit b6e286d

Please sign in to comment.