Skip to content

dtherhtun/terraform-aws-codepipeline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CI/CD pipeline for Terraform

module "codepipeline" {
  source   = "DTherHtun/codepipeline/aws"
  name     = "iac"
  vcs_repo = var.vcs_repo
  environment = {
    AWS_ACCESS_KEY_ID     = var.aws.access_key
    AWS_SECRET_ACCESS_KEY = var.aws.secret_key
    CONFIRM_DESTROY = 1
  }
  s3_backend_config = module.s3backend.config
}

Requirements

No requirements.

Providers

Name Version
aws n/a
random n/a

Inputs

Name Description Type Default Required
auto_apply Whether to automatically apply changes when a Terraform plan is successful. Defaults to false. bool false no
environment A map of environment varaibles to use for this workspace map(string) {} no
name A project name to use for resource mapping string "terraform" no
s3_backend_config Settings for configuring the S3 remote backend
object({
bucket = string,
region = string,
role_arn = string,
dynamodb_table = string,
})
n/a yes
terraform_version The version of Terraform to use for this workspace. Defaults to the latest available version. string "latest" no
vcs_repo Settings for the workspace's VCS repository. object({ identifier = string, branch = string, oauth_token = string }) n/a yes
working_directory A relative path that Terraform will execute within. Defaults to the root of your repository. string "." no

Outputs

No output.