s3-yum-repo

claranet/s3-yum-repo/aws

Terraform Module HCL AWS ⏱ stale 3y 11mo

Manages a YUM repository in an S3 bucket

Install

module "s3-yum-repo" {
source = "claranet/s3-yum-repo/aws"
version = "0.4.0"
}
⭐ Source on GitHub 📦 Registry page

README

terraform-aws-s3-yum-repo This module manages a YUM repository on S3. It uses CodeBuild to build the repository. It uses Lambda to trigger a build when files have been uploaded. Usage ``js resource "aws_s3_bucket" "yum_repo" { bucket = "yum-repo" acl = "private" } module "yum_repo" { source = "github.com/claranet/terraform-aws-s3-yum-repo" codebuild_name = "yum-repo" repo_bucket = "${aws_s3_bucket.yum_repo.bucket}" repo_dir = "yum-repo" } ` Multiple repos in one bucket Due to limitations of S3 bucket notifications in Terraform, this module does not support multiple repos in one bucket. Use separate buckets instead. Helper modules codebuild-lambda Use this to invoke a Lambda function after CodeBuild finishes building the YUM repository. Inputs | Name | Description | Type | Default | Require

Inputs (4)

NameTypeDescriptionDefault
codebuild_namestringCodeBuild project name required
repo_bucketstringS3 bucket for the repo required
build_timeoutstringMaximum number of minutes for the build to run before timing out"5"
repo_dirstringS3 key for the repo directory, no leading or trailing slashes""

Outputs (5)

codebuild_name — CodeBuild project name
repo_bucket — S3 bucket for the repo
repo_bucket_arn — S3 bucket ARN
repo_dir — S3 key for the repo directory
repo_dir_arn — S3 bucket and directory ARN

Resources (9)

aws_codebuild_projectaws_iam_policyaws_iam_policy_attachmentaws_iam_roleaws_lambda_permissionaws_s3_bucketaws_s3_bucket_notificationaws_s3_bucket_objectrandom_id

Details

FrameworkTerraform Module
LanguageHCL
Version0.4.0
Cloud AWS
★ Stars13
Forks12
Total downloads7.8k
Inputs4
Outputs5
Resources9
Submodules1
LicenseMIT
Namespaceclaranet
Updated