test(module): really test the generated access key
All checks were successful
main / test (push) Successful in 2m49s

This commit is contained in:
Julien Dessaux 2025-04-26 00:31:19 +02:00
parent 00ee290f29
commit 37534f83da
Signed by: adyxax
GPG key ID: F92E51B86E07177E
5 changed files with 63 additions and 6 deletions

View file

@ -5,11 +5,10 @@ provider "aws" {
run "main" {
assert {
condition = output.access_key_id != null
error_message = "invalid IAM access key ID"
condition = data.external.main.result.Arn == local.expected_arn
error_message = "user ARN mismatch"
}
module {
source = "./test"
}
}
variables {
name = "tftest-user"
}