You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Terraform AWS CodePipeline for AWS SAM Applications
About:
Deploys an AWS CodePipeline specifically designed for AWS SAM.
It requires these artifacts, amongst code obviously, in the source repository:
AWS SAM template file (e.g. template.yaml), contains a description of your stack in CFL.
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.
How to use:
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_nameenvironment=var.environmentregion=var.regiongithub_token=var.github_tokengithub_owner=var.github_ownergithub_repo=var.github_repopoll_source_changes=var.poll_source_changesbuild_image="aws/codebuild/standard:4.0"buildspec=data.template_file.buildspec.renderedstack_name=var.stack_nameenvironment_variable_map=[
{
name ="REGION"
value = var.region
type ="PLAINTEXT"
},
{
name ="COGNITO_USER_POOL_ID"
value = module.cognito.cognito_user_pool_id
type ="PLAINTEXT"
}
]
}