terraform-aws-ecs-codepipeline icon indicating copy to clipboard operation
terraform-aws-ecs-codepipeline copied to clipboard

module treats repo_owner as an org, how to treat as user?

Open brietsparks opened this issue 5 years ago • 1 comments

Hello, I'm trying to build a pipeline that fulls from my github repo. The module thinks my username is an org. I get an error:

GET https://api.github.com/orgs/brietsparks: 404 Not Found []
  on .terraform/modules/ecs_push_pipeline.github_webhooks/main.tf line 7, in provider "github":
   7: provider "github" {

The module block:

module "ecs_push_pipeline" {
  source                = "git::https://github.com/cloudposse/terraform-aws-ecs-codepipeline.git?ref=master"
  name                  = "guestbook-ci"
  region                = var.region
  repo_owner            = "brietsparks"
  repo_name             = "guestbook"
  github_webhooks_token = var.github_webhooks_token
  image_repo_name       = "guestbook"
  branch                = "ci-pract"
  service_name          = "guestbook"
  ecs_cluster_name      = "guestbook"
  privileged_mode       = "true"
}

brietsparks avatar Jul 25 '20 06:07 brietsparks

It looks like the blocker is in the github provider in https://github.com/cloudposse/terraform-github-repository-webhook currently only supports GitHub organization as an input for the provider. This input looks like it has been deprecated.

I put this pr in to add the owner https://github.com/cloudposse/terraform-github-repository-webhooks/pull/31

Once that's merged then we can bump the module version in this repo and expose the GitHub owner input variable.

nitrocode avatar Aug 03 '21 04:08 nitrocode