Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change deprecated resources #498

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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