Your company recently adopted a hybrid cloud architecture which requires them to migrate some of their on- premises web applications to Oracle Cloud Infrastructure OCI). You created a Terraform template which automatically provisions OCI resources such as compute instances, load balancer, and a database instance. After running the stack using the terraform apply command, it successfully launched the compute Instances and the load balancer, but it failed to create a new database Instance with the following error:
Service error:NotAuthorizedOrNotFound. shape VM.Standard2.4 not found, http status code: 404 You discovered that the resource quotas assigned to your compartment prevent you from using VM.Standard2.4 instance shapes available in your tenancy. You edit the Terraform script and replace the shape with VM.Standard2.2.
Which option would you recommend to re-run the terraform command to have required OCI resources provisioned with the least effort?
- A: terraform apply -target=ocl_database_db_system.db_system
- B: terraform refresh -target=oci_database_db_system.db_system
- C: terraform apply -auto-approve
- D: terraform plan -target=oci_database_db_system.db_system