Hello evryone, really needing your brains. I believe AWS upgraded its version recently. For the last 2-3 days I’ve been having all kinda errors when I do ‘tf plan’ or ‘tf apply’. I did upgrade my TF Cloud version and AWS version as well. This is the error I’m getting mostly.
╷
│ Warning: Deprecated attribute
│
│ on cloudfront.tf line 3, in resource “aws_cloudfront_distribution” “www_neuropharmmagen”:
│ 3: domain_name = aws_s3_bucket.www_neuropharmagen_com.website_endpoint
│
│ The attribute “website_endpoint” is deprecated. Refer to the provider
│ documentation for details.
╵
╷
│ Warning: Deprecated attribute
│
│ on route53.tf line 59, in resource “aws_route53_record” “www_neurofarmagen_es”:
│ 59: name = aws_s3_bucket.www_neurofarmagen_es.website_endpoint
│
│ The attribute “website_endpoint” is deprecated. Refer to the provider
│ documentation for details.
╵
╷
│ Warning: Argument is deprecated
│
│ with module.production.aws_eip.nat_eip,
│ on .terraform/modules/production/pgx/vpc.tf line 45, in resource “aws_eip” “nat_eip”:
│ 45: vpc = true
│
│ use domain attribute instead
╵
╷
│ Warning: Argument is deprecated
│
│ with aws_s3_bucket.www_neuropharmagen_com,
│ on s3.tf line 20, in resource “aws_s3_bucket” “www_neuropharmagen_com”:
│ 20: resource “aws_s3_bucket” “www_neuropharmagen_com” {
│
│ Use the aws_s3_bucket_website_configuration resource instead
╵
╷
│ Warning: Argument is deprecated
│
│ with aws_s3_bucket.www_neuropharmagen_com,
│ on s3.tf line 22, in resource “aws_s3_bucket” “www_neuropharmagen_com”:
│ 22: acl = “private”
│
│ Use the aws_s3_bucket_acl resource instead
╵
╷
│ Warning: Argument is deprecated
│
│ with module.nfg-prod.aws_eip.nat_eip,
│ on .terraform/modules/nfg-prod/nfg/vpc.tf line 44, in resource “aws_eip” “nat_eip”:
│ 44: vpc = true
│
│ use domain attribute instead
╵
╷
│ Warning: Argument is deprecated
│
│ with aws_s3_bucket.neurofarmagen_es,
│ on s3.tf line 31, in resource “aws_s3_bucket” “neurofarmagen_es”:
│ 31: acl = “private”
│
│ Use the aws_s3_bucket_acl resource instead
╵
╷
│ Warning: Argument is deprecated
│
│ with aws_s3_bucket.neurofarmagen_es,
│ on s3.tf line 29, in resource “aws_s3_bucket” “neurofarmagen_es”:
│ 29: resource “aws_s3_bucket” “neurofarmagen_es” {
│
│ Use the aws_s3_bucket_website_configuration resource instead
╵
╷
│ Warning: Deprecated attribute
│
│ on route53.tf line 48, in resource “aws_route53_record” “neurofarmagen_es”:
│ 48: name = aws_s3_bucket.neurofarmagen_es.website_endpoint
│
│ The attribute “website_endpoint” is deprecated. Refer to the provider
│ documentation for details.
╵
╷
│ Warning: Argument is deprecated
│
│ with aws_s3_bucket.neuropharmagen_com,
│ on s3.tf line 11, in resource “aws_s3_bucket” “neuropharmagen_com”:
│ 11: resource “aws_s3_bucket” “neuropharmagen_com” {
│
│ Use the aws_s3_bucket_website_configuration resource instead
╵
╷
│ Warning: Argument is deprecated
│
│ with aws_s3_bucket.neuropharmagen_com,
│ on s3.tf line 13, in resource “aws_s3_bucket” “neuropharmagen_com”:
│ 13: acl = “private”
│
│ Use the aws_s3_bucket_acl resource instead
╵
╷
│ Warning: Argument is deprecated
│
│ with aws_s3_bucket.www_neurofarmagen_es,
│ on s3.tf line 38, in resource “aws_s3_bucket” “www_neurofarmagen_es”:
│ 38: resource “aws_s3_bucket” “www_neurofarmagen_es” {
│
│ Use the aws_s3_bucket_website_configuration resource instead
╵
╷
│ Warning: Argument is deprecated
│
│ with aws_s3_bucket.www_neurofarmagen_es,
│ on s3.tf line 40, in resource “aws_s3_bucket” “www_neurofarmagen_es”:
│ 40: acl = “private”
│
│ Use the aws_s3_bucket_acl resource instead
╵
╷
│ Warning: Deprecated attribute
│
│ on cloudfront.tf line 50, in resource “aws_cloudfront_distribution” “neuropharmagen”:
│ 50: domain_name = aws_s3_bucket.neuropharmagen_com.website_endpoint
│
│ The attribute “website_endpoint” is deprecated. Refer to the provider
│ documentation for details.
╵
╷
│ Warning: Resource targeting is in effect
│
│ You are creating a plan with the -target option, which means that the
│ result of this plan may not represent all of the changes requested by the
│ current configuration.
│
│ The -target option is not for routine use, and is provided only for
│ exceptional situations such as recovering from errors or mistakes, or when
│ Terraform specifically suggests to use it as part of an error message.
╵
╷
│ Warning: Argument is deprecated
│
│ with module.production.aws_s3_bucket.aina-labs_com,
│ on .terraform/modules/production/pgx/s3.tf line 113, in resource “aws_s3_bucket” “aina-labs_com”:
│ 113: resource “aws_s3_bucket” “aina-labs_com” {
│
│ Use the aws_s3_bucket_website_configuration resource instead
╵
╷
│ Warning: Argument is deprecated
│
│ with module.production.aws_eip.nat_eip,
│ on .terraform/modules/production/pgx/vpc.tf line 45, in resource “aws_eip” “nat_eip”:
│ 45: vpc = true
│
│ use domain attribute instead
╵
╷
│ Warning: Failed to decode resource from state
│
│ Error decoding “module.nfg-prod.module.ecs.aws_ecs_cluster.this[0]” from
│ prior state: unsupported attribute “capacity_providers”
╵
╷
│ Warning: Failed to decode resource from state
│
│ Error decoding “module.nfg-prod.module.vpc.aws_route_table.public[0]” from
│ prior state: unsupported attribute “instance_id”
╵
╷
│ Warning: Failed to decode resource from state
│
│ Error decoding “module.nfg-prod.module.vpc.aws_vpc.this[0]” from prior
│ state: unsupported attribute “enable_classiclink”
╵
╷
│ Warning: Failed to decode resource from state
│
│ Error decoding “module.nfg-prod.module.vpc.aws_route_table.private[0]” from
│ prior state: unsupported attribute “instance_id”
╵
╷
│ Warning: Failed to decode resource from state
│
│ Error decoding “module.transit_vpc.aws_route_table.private[0]” from prior
│ state: unsupported attribute “instance_id”
╵
╷
│ Warning: Failed to decode resource from state
│
│ Error decoding “module.transit_vpc.aws_route_table.public[0]” from prior
│ state: unsupported attribute “instance_id”
╵
╷
│ Warning: Failed to decode resource from state
│
│ Error decoding “aws_iam_role.musc” from prior state: unsupported attribute
│ “role_last_used”
╵
╷
│ Warning: Failed to decode resource from state
│
│ Error decoding “module.nfg-prod.aws_iam_role.rds_enhanced_monitoring” from
│ prior state: unsupported attribute “role_last_used”
╵
╷
│ Warning: Failed to decode resource from state
│
│ Error decoding “module.nfg-prod.aws_secretsmanager_secret.db_password” from
│ prior state: unsupported attribute “rotation_enabled”
╵
╷
│ Warning: Failed to decode resource from state
│
│ Error decoding “module.nfg-prod.aws_iam_role.nfg_ec2_role” from prior
│ state: unsupported attribute “role_last_used”
╵
╷
│ Warning: Failed to decode resource from state
│
│ Error decoding “module.nfg-prod.aws_autoscaling_group.app_asg” from prior
│ state: unsupported attribute “tags”
╵
╷
│ Warning: Failed to decode resource from state
│
│ Error decoding “module.nfg-prod.aws_secretsmanager_secret.app_creds” from
│ prior state: unsupported attribute “rotation_enabled”
╵
╷
│ Warning: Failed to decode resource from state
│
│ Error decoding “module.nfg-prod.aws_iam_role.nfg_ecs_role” from prior
│ state: unsupported attribute “role_last_used”
╵
Failed generating plan JSON
Exit code: 1
Failed to marshal plan to json: error marshaling prior state: unsupported attribute “role_last_used”
Operation failed: failed generating plan JSON: failed running command (exit 1)
My TF version:
Terraform v1.7.0
on darwin_amd64
- provider Terraform Registry v5.33.0
- provider Terraform Registry v3.6.0
Please help and thank you!