Skip to content

Commit c35156d

Browse files
committed
added the random provider to auto generate auth
1 parent 2f99788 commit c35156d

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

provider.tf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ terraform {
44
source = "hashicorp/aws"
55
version = "5.20.1"
66
}
7+
random = {
8+
source = "hashicorp/random"
9+
version = "3.5.1"
10+
}
711
}
812
}
913

@@ -16,4 +20,7 @@ provider "aws" {
1620
Source = "https://github.com/kunduso/add-asg-elb-terraform"
1721
}
1822
}
23+
}
24+
provider "random" {
25+
# Configuration options
1926
}

random.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/auth.html#auth-overview
2+
resource "random_password" "auth" {
3+
length = 90
4+
special = true
5+
override_special = "!&#$^<>-"
6+
}

0 commit comments

Comments
 (0)