Deploys an AWS CodePipeline specifically designed for AWS SAM.
It requires these artifacts, amongst code obviously, in the source repository:
This version of the module expects GitHub as source code repository to be used. You'll need an OAuthToken (github_token
) that has access to the repo (github_repo
) you want to read from.
The stack_name
is what you configured as a SAM stack name.
data "template_file" "buildspec" { template = file("${path.module}/codebuild/buildspec.yml") } module "codepipeline" { source = "github.com/rpstreef/terraform-aws-codepipeline-sam?ref=v1.1" resource_tag_name = var.resource_tag_name environment = var.environment region = var.region github_token = var.github_token github_owner = var.github_owner github_repo = var.github_repo poll_source_changes = var.poll_source_changes build_image = "aws/codebuild/standard:4.0" buildspec = data.template_file.buildspec.rendered stack_name = var.stack_name environment_variable_map = [ { name = "REGION" value = var.region type = "PLAINTEXT" }, { name = "COGNITO_USER_POOL_ID" value = module.cognito.cognito_user_pool_id type = "PLAINTEXT" } ] }
codepipeline_sam_module_enabled
on/off module switch./codebuild/buildspec.yml
file for an example.RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4