Ao executar o terraform plan recebi o seguine alerta:
Warning: Quoted references are deprecated
on main.tf line 45, in resource "aws_instance" "dev6":
45: provider = "aws.us-east-2"
In this context, references are expected literally rather than in quotes.
Terraform 0.11 and earlier required quotes, but quoted references are now
deprecated and will be removed in a future version of Terraform. Remove the
quotes surrounding this reference to silence this warning.
(and one more similar warning elsewhere)
Para retirar o Warning basta retirar as aspas.
1) Na instância DEV 6 Arquivo main.tf / recurso: resource "aws_instance" "dev6"
2)Na security group acesso-ssh-us-east-2 Arquivo security-group.tf/ recurso: resource "aws_security_group" "acesso-ssh-us-east-2"
Substituir:
provider = "aws.us-east-2"
Por:
provider = aws.us-east-2
Versões que estou utilizando:
pedro@phantro MINGW64 /d/curso/terraform (master)
$ terraform --version
Terraform v0.12.26
+ provider.aws v2.66.0
pedro@phantro MINGW64 /d/curso/terraform (master)
$ aws --version
aws-cli/2.0.23 Python/3.7.7 Windows/7 botocore/2.0.0dev27