AzBuilder / terraform-provider-terrakube

Terraform provider for Terrakube
Apache License 2.0
4 stars 4 forks source link

Add support to add ssh-id and vcs-id in module resource #12

Closed alfespa17 closed 1 year ago

alfespa17 commented 1 year ago

Adding support to manage modules with private connections.

resource "terrakube_module" "module" {
  name            = "vpc_private"
  organization_id = data.terrakube_ssh.ssh.organization_id
  description     = "cloudposse module"
  provider_name   = "aws"
  source          = "https://github.com/terraform-aws-modules/terraform-aws-vpc.git"
  vcs_id          = data.terrakube_vcs.vcs.id
}

resource "terrakube_module" "module" {
  name            = "vpc_private_ssh"
  organization_id = data.terrakube_ssh.ssh.organization_id
  description     = "cloudposse module"
  provider_name   = "aws"
  source          = "https://github.com/terraform-aws-modules/terraform-aws-vpc.git"
  ssh_id          = data.terrakube_ssh.ssh.id
}