From 9833e4b01d47b7e6151310789822bc4f34b926ea Mon Sep 17 00:00:00 2001 From: tylerthome Date: Tue, 15 Oct 2024 17:23:15 -0700 Subject: [PATCH] add huu app user access key to secret --- terraform-incubator/home-unite-us/dev/iam.tf | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/terraform-incubator/home-unite-us/dev/iam.tf b/terraform-incubator/home-unite-us/dev/iam.tf index 91ddd08..cdf2b7c 100644 --- a/terraform-incubator/home-unite-us/dev/iam.tf +++ b/terraform-incubator/home-unite-us/dev/iam.tf @@ -189,3 +189,12 @@ resource "aws_iam_user_policy_attachment" "homeuniteus_app" { user = aws_iam_user.homeuniteus_app.name policy_arn = "arn:aws:iam::aws:policy/AmazonCognitoPowerUser" } + +resource "aws_secretsmanager_secret" "homeuniteus_app" { + name = "homeuniteus-app" +} + +resource "aws_secretsmanager_secret_version" "homeuniteus_app" { + secret_id = aws_secretsmanager_secret.homeuniteus_app.id + secret_string = aws_iam_access_key.homeuniteus_app.secret +}