diff --git a/infra/static-vultr/output.tf b/infra/static-vultr/output.tf index 556065d..1d553ad 100644 --- a/infra/static-vultr/output.tf +++ b/infra/static-vultr/output.tf @@ -2,3 +2,9 @@ output host_ssh_key { sensitive = true value = tls_private_key.host.private_key_pem } + +output vultr_keys { + sensitive = true + value = aws_iam_access_key.vultr.secret +} + diff --git a/infra/static-vultr/s3-reader.tf b/infra/static-vultr/s3-reader.tf index f6cfc34..0c96000 100644 --- a/infra/static-vultr/s3-reader.tf +++ b/infra/static-vultr/s3-reader.tf @@ -47,5 +47,14 @@ resource aws_iam_role_policy_attachment vultr { policy_arn = aws_iam_policy.vultr.arn } +resource aws_iam_user_policy_attachment vultr { + user = aws_iam_user.vultr.name + policy_arn = aws_iam_policy.vultr.arn +} +# Keys for the user to do stuff +resource aws_iam_access_key vultr { + user = aws_iam_user.vultr.name +} +