We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can/should we automate the creation of the ECR container images using Terraform? CI/CD? Probably.
Becca has done some preliminary work on this:
/* resource aws_ecr_repository repo { name = local.ecr_repository_name } */ /resource null_resource ecr_image { triggers = { python_file = var.python docker_file = var.docker } } / /* resource "aws_instance" "exec" { #provisioner "local-exec" { command = <<EOF aws ecr get-login-password --region ${var.region} | docker login --username AWS --password-stdin ${local.account_id}.dkr.ecr.${var.region}.amazonaws.com cd ${path.module}/lambdas/git_client docker build -t ${aws_ecr_repository.repo.repository_url}:${local.ecr_image_tag} . docker push ${aws_ecr_repository.repo.repository_url}:${local.ecr_image_tag} EOF } #do I need to include a path to requirements.txt? */ /* data aws_ecr_image lambda_image { depends_on = [ null_resource.ecr_image ] repository_name = local.ecr_repository_name image_tag = local.ecr_image_tag } */ /* data "aws_iam_policy_document" "lambda_docx" { statement { actions = [ "logs:CreateLogGroup", "logs:CreateLogStream", "logs:PutLogEvents" ] effect = "Allow" resources = [""] sid = "Create WatchLogs" } statement { actions = [ "codecommit:GitPull", "codecommit:GitPush", "codecommit:GetBranch", "codecommit:ListBranches", "codecommit:CreateCommit", "codecommit:GetCommit", "codecommit:GetCommitHistory", "codecommit:GetDifferences", "codecommit:GetReferences", "codecommit:BatchGetCommits", "codecommit:GetTree", "codecommit:GetObjectIdentifier", "codecommit:GetMergeCommit" ] effect = "Allow" resources = [""] sid = "CodeCommit" } } resource "aws_iam_policy" "lambda_docx" { name = "${local.prefix}-lambda-policy" path = "/" policy = data.aws_iam_policy_document.lambda.json } */ /* environment { variables = { #BUCKET = "aws_s3_bucket.upload.id", MPLCONFIGDIR = "/tmp", WEBHOOK_URL = "https://indiana.webhook.office.com/webhookb2/xxxxxxxxxxx...", BUCKET = "aws_s3_bucket.download.id" } } */
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Can/should we automate the creation of the ECR container images using Terraform? CI/CD? Probably.
Becca has done some preliminary work on this:
The text was updated successfully, but these errors were encountered: