From 36278286811d0d07dfab88d552094ff79c188228 Mon Sep 17 00:00:00 2001 From: rpoluri <38321430+rpoluri@users.noreply.github.com> Date: Tue, 21 Sep 2021 10:19:56 -0500 Subject: [PATCH] Feature/fix data island (#202) * fix service account in s3 inventory job * s3 inventory service account * fix * update cronjob name * update changelog * Update CHANGELOG.md Co-authored-by: Raj Poluri Co-authored-by: Patrick Duin --- CHANGELOG.md | 5 +++ iam.tf | 74 +++++++++++++++++++++++++++++++++++++++++ k8s-cronjobs.tf | 14 ++++---- k8s-service-accounts.tf | 12 +++++++ 4 files changed, 99 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f1122bb..90c112d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## [6.10.4] - 2021-09-21 +### Changed +- Attach service account to s3_inventory job when using IRSA. +- Rename s3_inventory cronjob to match service account name, required on new internal clusters. + ## [6.10.3] - 2021-08-30 ### Fixed - Fixed problem with s3_inventory_repair cronjob when apiary instance_name is not empty. diff --git a/iam.tf b/iam.tf index f04db2c..9f0c1db 100644 --- a/iam.tf +++ b/iam.tf @@ -132,3 +132,77 @@ EOF create_before_destroy = true } } + +resource "aws_iam_role" "apiary_s3_inventory" { + name = "${local.instance_alias}-s3-inventory-${var.aws_region}" + + assume_role_policy = <