AlexsLemonade / refinebio

Refine.bio harmonizes petabytes of publicly available biological data into ready-to-use datasets for cancer researchers and AI/ML scientists.
https://www.refine.bio/
Other
126 stars 19 forks source link

Fix terraform deploy error #3269

Closed arkid15r closed 1 year ago

arkid15r commented 1 year ago

Context

In order to complete restoring staging deploy process the CI/CD errors need to be fixed.

Problem or idea

Terraform has been successfully initialized!

You may now begin working with Terraform. Try running "terraform plan" to see
any changes that are required for your infrastructure. All Terraform commands
should now work.

If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your working directory. If you forget, other
commands will detect it and remind you to do so if necessary.
Resource instance module.batch.aws_launch_template.data_refinery_worker has been marked as tainted.
Resource instance module.batch.aws_launch_template.data_refinery_compendia has been marked as tainted.
Resource instance module.batch.aws_batch_job_queue.data_refinery_compendia_queue has been marked as tainted.
Resource instance module.batch.aws_batch_job_queue.data_refinery_smasher_queue has been marked as tainted.
Resource instance module.batch.aws_batch_job_queue.data_refinery_workers_queues[0] has been marked as tainted.
Deploying with ingress..
data.local_file.foreman_environment: Refreshing state... [id=75c17776d3942738de059f73ab85707cebea8da7]
data.local_file.api_nginx_config: Refreshing state... [id=0f7507e126a4b200493ad42c3931b802fea45300]
data.local_file.api_environment: Refreshing state... [id=dbfec055dbdc2f7cee6e31389c47a714e3060d4b]

Warning: Argument is deprecated

  on disk.tf line 3, in resource "aws_s3_bucket" "data_refinery_bucket":
   3:   acl = "private"

Use the aws_s3_bucket_acl resource instead

(and 6 more similar warnings elsewhere)

Error: configuring Terraform AWS Provider: failed to get shared config profile, default

  on networking.tf line 4, in provider "aws":
   4: provider "aws" {

Error: configuring Terraform AWS Provider: failed to get shared config profile, default

  on batch/job_queue.tf line 2, in provider "aws":
   2: provider "aws" {

Solution or next step

Troubleshoot and fix the terraform configuration.