Skip to content

Commit

Permalink
beginning
Browse files Browse the repository at this point in the history
  • Loading branch information
ben851 committed Nov 19, 2024
1 parent f8279b2 commit 7341844
Show file tree
Hide file tree
Showing 5 changed files with 136 additions and 0 deletions.
23 changes: 23 additions & 0 deletions aws/github/respositories.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
data "github_repository" "notification_terraform" {
full_name = "cds-snc/notification-terraform"
}

data "github_repository" "notification_manifests" {
full_name = "cds-snc/notification-manifests"
}

data "github_repository" "notification_admin" {
full_name = "cds-snc/notification-admin"
}

data "github_repository" "notification_api" {
full_name = "cds-snc/notification-api"
}

data "github_repository" "notification_documentation" {
full_name = "cds-snc/notification-documentation"
}

data "github_repository" "notification_document_download" {
full_name = "cds-snc/notification-document-download"
}
5 changes: 5 additions & 0 deletions aws/github/secrets.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
resource "github_actions_secret" "test" {
repository = data.github_repository.notification_terraform.full_name
secret_name = "bentest"
plaintext_value = "testing"
}
94 changes: 94 additions & 0 deletions env/dev/github/.terraform.lock.hcl

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

8 changes: 8 additions & 0 deletions env/dev/github/terragrunt.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
terraform {
source = "${get_env("ENVIRONMENT") == "production" ? "git::https://github.com/cds-snc/notification-terraform//aws/github?ref=v${get_env("INFRASTRUCTURE_VERSION")}" : "../../../aws//github"}"
}

include {
path = find_in_parent_folders()
}

6 changes: 6 additions & 0 deletions env/terragrunt.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ terraform {
source = "newrelic/newrelic"
version = "~> 3.3"
}
github = {
source = "integrations/github"
version = "~> 6.0"
}
}
}
Expand Down Expand Up @@ -93,6 +97,8 @@ provider "aws" {
}
%{ endif }
provider "github" {}
EOF
}

Expand Down

0 comments on commit 7341844

Please sign in to comment.