{"id":18368860,"url":"https://github.com/rpstreef/terraform-aws-codepipeline-sam","last_synced_at":"2025-04-06T17:31:53.710Z","repository":{"id":212011233,"uuid":"260133850","full_name":"rpstreef/terraform-aws-codepipeline-sam","owner":"rpstreef","description":"Integrates Terraform with AWS SAM by using AWS CodePipeline to deploy a SAM application.","archived":false,"fork":false,"pushed_at":"2022-09-06T10:59:01.000Z","size":77,"stargazers_count":8,"open_issues_count":1,"forks_count":11,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-22T04:03:14.408Z","etag":null,"topics":["aws","aws-codebuild","aws-codedeploy","aws-codepipeline","aws-sam","codepipeline","serverless","terraform","terraform-module"],"latest_commit_sha":null,"homepage":"","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rpstreef.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-04-30T06:43:03.000Z","updated_at":"2023-08-19T00:28:23.000Z","dependencies_parsed_at":"2023-12-12T04:39:24.875Z","dependency_job_id":null,"html_url":"https://github.com/rpstreef/terraform-aws-codepipeline-sam","commit_stats":null,"previous_names":["rpstreef/terraform-aws-codepipeline-sam"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rpstreef%2Fterraform-aws-codepipeline-sam","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rpstreef%2Fterraform-aws-codepipeline-sam/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rpstreef%2Fterraform-aws-codepipeline-sam/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rpstreef%2Fterraform-aws-codepipeline-sam/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rpstreef","download_url":"https://codeload.github.com/rpstreef/terraform-aws-codepipeline-sam/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247522429,"owners_count":20952546,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","aws-codebuild","aws-codedeploy","aws-codepipeline","aws-sam","codepipeline","serverless","terraform","terraform-module"],"created_at":"2024-11-05T23:27:41.955Z","updated_at":"2025-04-06T17:31:53.351Z","avatar_url":"https://github.com/rpstreef.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terraform AWS CodePipeline for AWS SAM Applications\n\n## About:\n\nDeploys an AWS CodePipeline specifically designed for AWS SAM.\n\nIt requires these artifacts, amongst code obviously, in the source repository:\n- AWS SAM template file (e.g. template.yaml), contains a description of your stack in CFL.\n- CloudFormation Template configuration file (e.g. configuration.json), contains the parameter configuration you want to deploy your stack with. This is used during the CloudFormation Change Set, as part of the deployment stage.\n\n## How to use:\n\nThis 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.\n\nThe ``stack_name`` is what you configured as a SAM stack name.\n\n```hcl\ndata \"template_file\" \"buildspec\" {\n  template = file(\"${path.module}/codebuild/buildspec.yml\")\n}\n\nmodule \"codepipeline\" {\n  source = \"github.com/rpstreef/terraform-aws-codepipeline-sam?ref=v1.1\"\n\n  resource_tag_name = var.resource_tag_name\n  environment       = var.environment\n  region            = var.region\n\n  github_token        = var.github_token\n  github_owner        = var.github_owner\n  github_repo         = var.github_repo\n  poll_source_changes = var.poll_source_changes\n\n  build_image = \"aws/codebuild/standard:4.0\"\n  buildspec   = data.template_file.buildspec.rendered\n\n  stack_name = var.stack_name\n\n  environment_variable_map = [\n    {\n      name  = \"REGION\"\n      value = var.region\n      type  = \"PLAINTEXT\"\n    },\n    {\n      name  = \"COGNITO_USER_POOL_ID\"\n      value = module.cognito.cognito_user_pool_id\n      type  = \"PLAINTEXT\"\n    }\n  ]\n}\n```\n\n## Changelog\n\n### V1.3\n- Added ``codepipeline_sam_module_enabled`` on/off module switch\n\n### V1.2\n - Added Environment variables support for CodeBuild templates.\n\n### v1.1\n - Separated Buildspec YML file from module. See the ``./codebuild/buildspec.yml`` file for an example.\n\n### v1.0\n - Initial release","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frpstreef%2Fterraform-aws-codepipeline-sam","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frpstreef%2Fterraform-aws-codepipeline-sam","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frpstreef%2Fterraform-aws-codepipeline-sam/lists"}