File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ resource "aws_launch_template" "default" {
7878 }
7979 }
8080
81- user_data = var. user_data_base64
81+ user_data = var. user_data != " " ? base64encode (var . user_data ) : var . user_data_base64
8282
8383 dynamic "iam_instance_profile" {
8484 for_each = var. iam_instance_profile_name != " " ? [var . iam_instance_profile_name ] : []
Original file line number Diff line number Diff line change @@ -57,6 +57,12 @@ variable "user_data_base64" {
5757 default = " "
5858}
5959
60+ variable "user_data" {
61+ type = string
62+ description = " The cleartext user data to be Base64-encoded to provide when launching the instances"
63+ default = " "
64+ }
65+
6066variable "enable_monitoring" {
6167 type = bool
6268 description = " Enable/disable detailed monitoring"
You can’t perform that action at this time.
0 commit comments