The documentation states that the environment variables MYSQL_ENDPOINT and MYSQL_USERNAME can be used to set those values for the provider. However, I can't find a way to actually get them to work.
Omitting the username and endpoint fields from the provider block yields:
The argument "username" is required, but no definition was found.
The argument "endpoint" is required, but no definition was found.
Setting the field values to null yields:
Error: "endpoint": required field is not set
Error: "username": required field is not set
MySQL provider v1.9.0, Terraform 0.12.29
The documentation states that the environment variables MYSQL_ENDPOINT and MYSQL_USERNAME can be used to set those values for the provider. However, I can't find a way to actually get them to work.
Omitting the
username
andendpoint
fields from theprovider
block yields:Setting the field values to
null
yields:Setting the field values to empty strings yields: