forked from dannylinden/terraform-aws-website-serverless
-
Notifications
You must be signed in to change notification settings - Fork 0
/
codepipeline.tf
46 lines (38 loc) · 1.03 KB
/
codepipeline.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
resource "aws_codepipeline" "codepipeline" {
name = "codepipeline-${var.www_domain}"
role_arn = "${aws_iam_role.codepipeline_role.arn}"
artifact_store = {
location = "${aws_s3_bucket.codepipeline.bucket}"
type = "S3"
}
stage {
name = "Source"
action {
name = "Source"
category = "Source"
owner = "AWS"
provider = "CodeCommit"
version = "1"
output_artifacts = ["source"]
configuration {
RepositoryName = "${var.www_domain}"
BranchName = "${aws_codecommit_repository.git_repository.default_branch}"
}
}
}
stage {
name = "Package"
action {
name = "Package"
category = "Build"
owner = "AWS"
provider = "CodeBuild"
input_artifacts = ["source"]
output_artifacts = ["packaged"]
version = "1"
configuration {
ProjectName = "${aws_codebuild_project.codebuild.name}"
}
}
}
}