From 068df6eba4c9bce7499a734597b0b67aa0836af1 Mon Sep 17 00:00:00 2001 From: pnadolny13 Date: Wed, 12 Oct 2022 09:17:13 -0400 Subject: [PATCH] add squared/hub users with access to S3 bucket --- deploy/infrastructure/iam.tf | 80 ++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 deploy/infrastructure/iam.tf diff --git a/deploy/infrastructure/iam.tf b/deploy/infrastructure/iam.tf new file mode 100644 index 00000000..3348866d --- /dev/null +++ b/deploy/infrastructure/iam.tf @@ -0,0 +1,80 @@ +### Squared User - S3 Read Access + +resource "aws_iam_user" "hub_system_user" { + name = "hub_system_user" +} + +resource "aws_iam_access_key" "hub_system_user" { + user = aws_iam_user.hub_system_user.name +} + +resource "aws_iam_user_policy" "hub_system_user_policy" { + name = "hub_system_user_policy" + user = aws_iam_user.hub_system_user.name + + policy = <