codepipeline-demo

This commit is contained in:
Edward Viaene
2020-02-18 18:14:40 +01:00
parent aa4e3dbb7b
commit cc37d59c87
15 changed files with 646 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
#
# cache s3 bucket
#
resource "aws_s3_bucket" "codebuild-cache" {
bucket = "demo-codebuild-cache-${random_string.random.result}"
acl = "private"
}
resource "aws_s3_bucket" "demo-artifacts" {
bucket = "demo-artifacts-${random_string.random.result}"
acl = "private"
lifecycle_rule {
id = "clean-up"
enabled = "true"
expiration {
days = 30
}
}
}
resource "random_string" "random" {
length = 8
special = false
upper = false
}