1
resposta

nao estou conseguindo criar o bucket com os comandos da aula

[fabioalvaropereira@thundercat terraform ]$ terraform apply
╷
│ Warning: Version constraints inside provider configuration blocks are deprecated
│ 
│   on main.tf line 13, in provider "aws":
│   13:   version = "~> 2.0"
│ 
│ Terraform 0.13 and earlier allowed provider version constraints inside the provider configuration block, but that is now deprecated and will be removed
│ in a future version of Terraform. To silence this warning, move the provider version constraint into the required_providers block.
╵
╷
│ Error: Invalid resource type
│ 
│   on main.tf line 77, in resource "aws_s3_bucket_acl" "s3_dev4_bucket_acl":
│   77: resource "aws_s3_bucket_acl" "s3_dev4_bucket_acl" {
│ 
│ The provider hashicorp/aws does not support resource type "aws_s3_bucket_acl".
1 resposta

Olá Fábio, tudo bem?

Segundo a issue desse link: https://github.com/hashicorp/terraform-provider-aws/issues/23676

parece que o bug que você está tendo foi corrigido na versão 4.6.0 do terraform-provider-aws: https://github.com/hashicorp/terraform-provider-aws/blob/v4.6.0/CHANGELOG.md

Outra solução é não utilizar "_" no nome do seu bucket s3