Closed Mayeu closed 4 years ago
Oh, interesting... You can't set user data to an empty string anymore? That would be a recent change...
Does it work if you set the default to null
?
Same issue, using terraform 0.12.6 and provider.aws 2.28.1.
Setting the default for user_data in the asg-rolling-deploy module to null instead of the empty string does work, and no user_data hash is present in the apply/plan output for the asg resource.
According to https://github.com/terraform-providers/terraform-provider-aws/pull/4037, the minimum length validation requirement when the user_data resource is present was added last year in the v1.12 release.
Thx for pointing this out! I fixed it in a few places in: https://github.com/brikis98/terraform-up-and-running-code/commit/ddb296550c83bd85fc42028a9e842c9aa4f07808.
Thank you for the fix, I did not thought of trying null
instead of an empty string :+1:
Hello :wave:
When running the ASG example in the chapter 6 I am getting an error on the length of the
user_data
:This error also shows up using your version of the code so I assumed this was not due to typos on my side.
I have fixed this error replacing the default value of this variable with
"Hello World"
.