chore(infrastructure): change the AWS account used for tests
All checks were successful
main / test (push) Successful in 55s

This commit is contained in:
Julien Dessaux 2025-04-17 16:50:33 +02:00
parent 959edc9d00
commit db0c8fd8d4
Signed by: adyxax
GPG key ID: F92E51B86E07177E
2 changed files with 9 additions and 25 deletions

View file

@ -11,28 +11,12 @@ module "aws_iam_ci_user" {
source = "git::ssh://git@git.adyxax.org/adyxax/tofu-module-aws-iam-ci-user?depth=1&ref=1.0.1" source = "git::ssh://git@git.adyxax.org/adyxax/tofu-module-aws-iam-ci-user?depth=1&ref=1.0.1"
name = local.name name = local.name
} tests_policy_statements = jsonencode([{
Action = "iam:*"
resource "aws_iam_policy" "tftest" { Effect = "Allow"
provider = aws.all["root"] Resource = [
"arn:aws:iam::*:user/tftest-user",
name = "${local.name}-tftest" "arn:aws:iam::*:policy/${local.name}-tftest",
policy = jsonencode({ ]
Statement = [{ }])
Action = "iam:*"
Effect = "Allow"
Resource = [
"arn:aws:iam::*:user/tftest-user",
"arn:aws:iam::*:policy/${local.name}-tftest",
]
}]
Version = "2012-10-17"
})
}
resource "aws_iam_user_policy_attachment" "tftest" {
provider = aws.all["root"]
policy_arn = aws_iam_policy.tftest.arn
user = local.name
} }

View file

@ -1,5 +1,5 @@
provider "aws" { provider "aws" {
profile = "root" profile = "tests"
region = "eu-west-3" region = "eu-west-3"
} }