123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- # #ecr.tf is for the basic building blocks for ECR. Not for individual images.
- # # individual images are in separate files
- # # with the naming scheme project-container.tf
- # #TODO: add codebuild image for codebuild to use when building images
- # # centos7 - customer portal
- # # rhel - syslog-ng
- # #Base RHEL repository used for building XDR images like syslog-ng in CodeBuild
- # resource "aws_ecr_repository" "codebuild-rhel7" {
- # name = "codebuild-rhel7"
- # tags = merge(var.standard_tags, var.tags)
- # }
- # #Allow codebuild to access the ECR Repository
- # resource "aws_ecr_repository_policy" "codebuild-rhel7" {
- # repository = aws_ecr_repository.codebuild-rhel7.name
- # policy = <<EOF
- # {
- # "Version": "2008-10-17",
- # "Statement": [
- # {
- # "Sid": "new statement",
- # "Effect": "Allow",
- # "Principal": {
- # "Service": "codebuild.amazonaws.com"
- # },
- # "Action": [
- # "ecr:GetDownloadUrlForLayer",
- # "ecr:BatchGetImage",
- # "ecr:BatchCheckLayerAvailability"
- # ]
- # }
- # ]
- # }
- # EOF
- # }
- # #base centos7 image used for building portal
- # resource "aws_ecr_repository" "codebuild-centos7" {
- # name = "codebuild-centos7"
- # tags = merge(var.standard_tags, var.tags)
- # }
- # #Allow codebuild to access the ECR Repository
- # resource "aws_ecr_repository_policy" "codebuild-centos7" {
- # repository = aws_ecr_repository.codebuild-centos7.name
- # policy = <<EOF
- # {
- # "Version": "2008-10-17",
- # "Statement": [
- # {
- # "Sid": "new statement",
- # "Effect": "Allow",
- # "Principal": {
- # "Service": "codebuild.amazonaws.com"
- # },
- # "Action": [
- # "ecr:GetDownloadUrlForLayer",
- # "ecr:BatchGetImage",
- # "ecr:BatchCheckLayerAvailability"
- # ]
- # }
- # ]
- # }
- # EOF
- # }
|