rdp(test): Change password retrieval for race condition (#6327)
* rdp(test): Change password retrieval for race condition
This commit is contained in:
1 parent
4c9b0553f3
commit
ed1bfe4380
8 files changed
+6
-11
No files matched your search
@@ -439,10 +439,6 @@ resource "aws_instance" "domain_controller" {
|
||||
}
|
||||
}
|
||||
|
||||
locals {
|
||||
password = rsadecrypt(aws_instance.domain_controller.password_data, tls_private_key.rsa_4096_key.private_key_pem)
|
||||
}
|
||||
|
||||
resource "local_sensitive_file" "private_key" {
|
||||
depends_on = [tls_private_key.rsa_4096_key]
|
||||
|
||||
|
||||
@@ -24,7 +24,8 @@ output "admin_username" {
|
||||
|
||||
output "password" {
|
||||
description = "This is the decrypted administrator password for the EC2 instance"
|
||||
value = nonsensitive(local.password)
|
||||
value = nonsensitive(rsadecrypt(aws_instance.domain_controller.password_data, tls_private_key.rsa_4096_key.private_key_pem))
|
||||
|
||||
}
|
||||
|
||||
output "ssh_private_key" {
|
||||
|
||||
Reference in new issue
Block a user