Skip to content

Conversation

@mahaputrailhamawal
Copy link

@mahaputrailhamawal mahaputrailhamawal commented Nov 19, 2024

The code includes the deprecated resource. For example, in the const.tf file, I changed the value "string" to string.
Source: https://developer.hashicorp.com/terraform/language/values/variables
tg-1

In the s3.tf file, I change it resource to set a file to the bucket from aws_s3_bucket_object to aws_s3_object
Source: https://library.tf/providers/hashicorp/aws/latest/docs/resources/s3_bucket_object#resource-aws_s3_bucket_object
tg-2

In lambda.tf, I changed the lambda runtime configuration from nodejs12.x to nodejs18.x. NodeJs 12.x in lambda function has been deprecated.
Source: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html
tg-3

Next, in the rds.tf file, I added the engine configuration to each rds_cluster created because the latest version of Terraform requires an engine declaration in the rds_cluster.
Source: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/rds_cluster
tg-4

In the db-app.tf file, I changed name to db_name in the rds resource configuration.
Source: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/db_instance
tg-5

Related issue: #497

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant