mirror of
https://github.com/farcasclaudiu/terraform-course.git
synced 2026-06-29 03:02:04 +03:00
codepipeline-demo
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user